Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/yerlanyr/flaparser
- Owner: yerlanyr
- Created: 2018-12-20T06:06:35.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-20T10:11:33.000Z (about 6 years ago)
- Last Synced: 2024-11-22T17:51:34.387Z (2 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`