Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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