repl.cr
exp_parser
This is a project that demonstrates how to create a tree-walker interpreter. It now can only evaluate simple expressions including add, subtract, division, exponent and unary.
Installation
- Clones this repository:
$ git clone https://github.com/TheEEs/expression_repl.git
- Navigates into the cloned directory then run:
crystal run -Drepl ./src/repl.cr
Usage
- Evalutes single expression.
1 * (6 + 10 / 2)
- Evalutes multiple expression.
1 * (6 + 10 / 2); 8 ** 3
- Types
exit
to terminate the program
Repository
repl.cr
Owner
Statistic
- 3
- 0
- 0
- 0
- 0
- over 3 years ago
- July 12, 2021
License
MIT License
Links
Synced at
Thu, 07 Nov 2024 06:51:33 GMT
Languages