https://github.com/simonewebdesign/expression-parser
A command-line Ruby algebraic equation tokenizer / solver.
https://github.com/simonewebdesign/expression-parser
Last synced: over 1 year ago
JSON representation
A command-line Ruby algebraic equation tokenizer / solver.
- Host: GitHub
- URL: https://github.com/simonewebdesign/expression-parser
- Owner: simonewebdesign
- Created: 2013-03-18T14:37:46.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2015-05-16T08:54:53.000Z (about 11 years ago)
- Last Synced: 2025-01-08T20:29:38.121Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 148 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ruby Expression Parser
This program calculates the value of an expression
consisting of numbers, arithmetic operators, and parentheses.
## Give it a try
```
$ ruby main.rb
Enter an expression: 2 + 2
=> 4
```