CS Assignment - scientific calculator using Bison & Flex, with additonal functionality implemented in C
- Basic arithmetic following BODMAS rules e.g, 4 * (3 + 2) = 20
- Standard functions (modulo, ceil, abs, floor)
- Logarithmic functions (log2, log10)
- Trig functions (cos, sin, tan)
- Hyperbolic functions (cosh, sinh, tanh)
- Conversions (currency, temperature, distance)
- Variable stores (create and use your own variables. See example)
- Can read input the command line or a file
- Bison (needs adding to PATH on windows)
- Flex (needs adding to PATH on windows)
- gcc compiler
- bison -d gram.y
- flex lex.l
- gcc gram.tab.c lex.yy.c -lm -o scientific-calc
- scientific-calc