Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/storycraft/advanced-calculator
Predictive parser and interpreter from scratch
https://github.com/storycraft/advanced-calculator
Last synced: 22 days ago
JSON representation
Predictive parser and interpreter from scratch
- Host: GitHub
- URL: https://github.com/storycraft/advanced-calculator
- Owner: storycraft
- License: mit
- Created: 2021-07-06T04:55:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-06T05:08:58.000Z (over 3 years ago)
- Last Synced: 2024-10-30T01:47:01.625Z (2 months ago)
- Language: TypeScript
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Advanced calculator
Predictive LL parser and Expression interpreter written in Typescript.Many things (condition, loop) are not implemented yet.
## Sample code
```
func plus(a, b) {
ret a + b;
}let hex = 0x10;
let bin = 0b11;
let dec = 5;ret plus(hex, dec) + bin;
```
This code returns 24