Description
Compiler Lab – UCS 1602
Programming Assignment-6 – Implementation of Syntax checker using Lex and Yacc Tools
Develop a Syntax checker to recognize the following statements by writing suitable grammars
Assignment statement
Conditional statement Looping statement
Declaration statement
INPUT
int i, a;
i = 0; a=5; while (i < 10)
{ if (i<a) i = i + 1;
else
i = i – 1;
}
Output
Syntactically correct




Reviews
There are no reviews yet.