Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 314 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 314 Bytes

Math-expr

Evaluate basic mathematical expressions.

Regex

Notice

"xyz": Uses POSIX basic regex

Those of the language

input -> EMPTY | line input

line -> expr "\n|\r"

expr -> NUM | VAR | (paren -> '(' expr ')') | expr '+' expr | expr '-' expr | expr '*' expr | expr '/' expr | expr '^' expr