yerlanyr / flaparser

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:JavaScript 79.2%Language:Nearley 20.8%