This project is a simple calculator compiler implemented in Node.js using Jison. It can parse and evaluate basic arithmetic expressions.
- Supports addition, subtraction, multiplication, and division operations.
- Handles parentheses for grouping expressions.
- Parses and evaluates arithmetic expressions.
Make sure you have Node.js installed on your machine.
Create a text file for ex : input.txt and your calcution
For Ex :
2 + 3 (4 - 1)
- Intall node :
npm i
- Run :
node cal input.txt