8.3 Lex and Yacc


8.3 Lex and Yacc

You may encounter lex and yacc when compiling programs that read configuration files or commands.

  • Lex is a tokenizer that transforms text into numbered tags with labels. The Linux version of lex is named flex . You may need a -ll or -lfl linker flag in conjunction with lex.

  • Yacc is a parser that attempts to read tokens according to a grammar . The GNU parser is bison ; to get yacc compatibility, run bison -y . You may need the -ly linker flag.




How Linux Works
How Linux Works: What Every Superuser Should Know
ISBN: 1593270356
EAN: 2147483647
Year: 2004
Pages: 189
Authors: Brian Ward

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net