A simple calculator as explained in the book Compilers: Principles, Techniques, and Tools by Alfred V. Aho. , Monica S. Lam. , Ravi Sethi. Avaya. using a LEX file.
A simple calculator as explained in the book Compilers: Principles, Techniques, and Tools by Alfred V. Aho. , Monica S. Lam. , Ravi Sethi. Avaya. without using a LEX file but declaring yylex() on the auxiliary functions section on the YACC file calc.y
Recognizes the grammar for the lenguage L = {anbn | n>0}
Note: It is not case sensitive therefore a = A and b = B
A simple calculator with more functions or features than the one from bookExample and bookExampleNoLEX
lex myLex.l
yacc myYacc.y
cc y.tab.c -ly -ll
or:
lex myLex.l
yacc myYacc.y
cc lex.yy.c y.tab.c -ly -ll