A compiler for nested multi mathematical operations (Addition, Subtraction, multiplication, division, exponentiation)
- added Lexer file (compiled with GNU::Flex)
- added Parser file (compiled with GNU::Bison)
- edited grammar production rules (now operations have the right precedence and associativity)
- added support for floating point operations
- added hexadecimal support
- parentheses precedence adjustment
- 3 unresolved shift/reduce conflicts from GNU::Bison
flex lexer.l
bison -d parser.y
gcc lex.yy.c parser.tab.c -o bin.exe
bin.exe < input.txt
or justbin.exe
if you prefer to work from standard input stream