Skip to content

vermotr/eval-expr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eval expr

A LL Mathematical Parser written in C.

How to use

make
./eval-expr "3 + 42 * (1 - 2 / (3 + 4) - 1 % 21) + 1"

BNF grammar

S         ::= op_low
op_low    ::= op_high[['+'|'-']op_high]*
op_high   ::= path[['*'|'/'|'%']path]*
path      ::= '('S')'|number
number    ::= ['0'|'1'|'2'|'3'|'4'|'5'|'6'|'7'|'8'|'9']+

License

The MIT License (MIT) - see LICENSE for more details

About

A LL Mathematical Parser written in C.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published