##Usage -
- Install flex or a compatible yacc parser software
- To run the file type these commands in order
lex proj.l
yacc -d proj.y
cc lex.yy.c y.tab.c -ll
./a.out
- This yacc parser would validate a SWIFT language assignment operation like
var x=5
or arithmetic operations likevar z=5+9
Also validate afor index in 1...5
statement and a repeat while statement