Practice code for examples in Lex and YACC primer/HOWTO of myself.
lex example1.l
cc lex.yy.c -o example1 -ll
lex example2.l
cc lex.yy.c -o example2 -ll
lex example3.l
cc lex.yy.c -o example3 -ll
cat example3.txt | ./example3
lex example4.l
yacc -d example4.y
cc lex.yy.c y.tab.c -o example4
lex example5.l
yacc -d example5.y
cc lex.yy.c y.tab.c -o example5
lex example6.l
yacc -d example6.y
cc lex.yy.c y.tab.c -o example6
cat example6.txt | ./example6
lex example7.l
yacc -d example7.y
cc lex.yy.c y.tab.c -o example7