XML parsing and custom protocol parsing have been widely used recently.CodeThe automatic generation tool can generate code, which is of course more advantageous and saves time and effort. Therefore, we decided to use the free time to learn about gsoap, flex, Bison, and some XML parsing tools. So I bought a book and got this note.
Bytes ---------------------------------------------------------------------------------------------
Flex and bison are tools specifically designed for compiler and interpreter programmers, but any applicationProgramAs long as it looks for a specific mode in its input, or it uses the command language as the input, flex and bison are applicable.
The classic Lex and YACC were developed by Bell Labs in 1970s, while flex and bison were their modern versions.
YACC was developed by Stephen C. Johnson first.
Lex was designed by Mike lesk and Eric Schmidt (who is now leading Google) to work with bison.
Release of the GNU project of the Free Software FoundationBison, A forward compatible version of YACC.
BSD and GNU projects are also releasedFlex (quick lexical analysis generator)"It overwrites Lex to solve a large number of errors and defects in Lex ." Flex was originally written by Jef poskanzer and Vern Paxson and Van jacbson improved it quite a lot.
Obtain flex and bison
Http://www.gnu.org/software/bison
Http://flex.sourceforge.net
Ftp://ftp.iecc.com/pub/file/flexbision.zip