Introduction - If you have any usage issues, please Google them yourself
Lex and Yacc tutorial concise book will teach you how to use lex and yacc to construct a compiler. lex and yacc are used to generate lexical analyzer and parser tools. Introductory section describes the compiler to build the basic parts, as well as lex and yacc interaction between. Behind the two chapters of a more detailed description of the lex and yacc. Construction of a classic calculator program. The calculator supports the common arithmetic symbols and control structure, for example, realize like ifelse and while such a control structure. After small modifications, so the calculator can run into a stack-based computer compiler.
Packet : 55593411study_lex_yacc.zip filelist
Lex 和Yacc 简明教程.PDF