/Yacc_Calc

Calculator written in flex/yacc.

Primary LanguageYaccGNU General Public License v3.0GPL-3.0

Yacc Calculator

Yacc_Calc

A simple Calculator written in flex/yacc with multiple arithmetic operators and operator precedence support.

Compiling

You can compile this project by running the following commands:

$ flex lexical.l
$ yacc -d parser.y
$ gcc lex.yy.c y.tab.c

Then run the compiled executable:

$ ./a.out