Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/yerlanyr/flaparser

Example of BNF specification based parser nearley JS. Minimalistic language to create simple math operations and functions.
https://github.com/yerlanyr/flaparser

Last synced: 2 days ago
JSON representation

Example of BNF specification based parser nearley JS. Minimalistic language to create simple math operations and functions.

Awesome Lists containing this project

README

        

# Readme
Example of BNF specification based parser nearley JS. Minimalistic language to create simple math operations and functions.
Before start it need to be build so write `npm run build` and then.

To start app write `npm start` in cli.

To run tests write `npm test` in cli.

Example code
```
>a=3
>b=4
>a+b
```
Output will be like
```
7
```
also there is feature to create a functions
```
fun a(b,c)=>b+c
a(3,4)
```
output will be `7`