Although separate programs, you'll often see the two tied together. From the Bugs section of the Lex Man Page:
The asteroid to kill this dinosaur is still in orbit.
Lex is "A Lexical Analyzer Generator". It recognizes regular expressions, and generates simple output based on what it is fed. Yacc (Yet Another Compiler Compiler) depends upon that type of lexical parsing to produce a C program that will interpret the input. See https://www.tldp.org/HOWTO/Lex-YACC-HOWTO.html
The Linux version of Lex is Flex and Bison has a yacc compatibility flag.
Got something to add? Send me email.
More Articles by Tony Lawrence © 2011-07-06 Tony Lawrence
Show me your flowchart and conceal your tables, and I shall continue to be mystified. Show me your tables, and I won't usually need your flowchart; it'll be obvious. (Fred Brooks, The Mythical Man Month)
Printer Friendly Version
Yacc Copyright © May 2004 Tony Lawrence
Have you tried Searching this site?
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.
Contact us
Printer Friendly Version