Compiler Construction Lab Manual / LALR Using YACC Compiler

Program Name

Write a Compiler Construction Program for LALR Using YACC Compiler.
Theory
LALR Using YACC Compiler.
Program Code


Saving: vi lalr.l

Compiling and Running
yacc -d lalr.y
lex.yy.c y.tab.c
./a.out
Input
2+3
2++

Output
5
Syntax Error


Home     Back