A simple Lexical Analyzer and a Syntax Analyzer for the language C-
defined as below.
lexer.l
is the Lexical Analyzer.parser.y
is the Parser (Syntax Analyzer)lex.yy.c
is the compiled file fromlexer.l
- Linux - Use
./compiler < testfile.c
A simple Parser and a Lexical Analyzer using Lex (Flex) and Yacc (Bison)
A simple Lexical Analyzer and a Syntax Analyzer for the language C-
defined as below.
lexer.l
is the Lexical Analyzer.parser.y
is the Parser (Syntax Analyzer)lex.yy.c
is the compiled file from lexer.l
./compiler < testfile.c
A simple Parser and a Lexical Analyzer using Lex (Flex) and Yacc (Bison)