/flaparser

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

Primary LanguageJavaScript

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