LR(0)analyzer analysis and structural realized Abstract:grammar analysis is the core of the translation process part of grammar analysis method study, have quite practical value. This paper introduces the design and implementation of the grammar analyzer. This paper first briefly compiler work generally divided into five stages: lexical analysis, grammatical analysis, semantic analysis and code generation, optimization, among target code generation, and describe the grammar analyzer function and it throughout the compiler's role in the work. Second, focused on the research methods of constructing grammar analyzer. Finally, in c + + language implement a small language (here is to point to Pascal language a subset of the) grammar analysis of structure. Keywords: grammar analyzer, context-free grammar, top-down analysis, bottom-up analysis, forecast analysis form