Skip to content

Simple math expression parser based on XPE library

License

Notifications You must be signed in to change notification settings

smazur/xpe-math

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xpe-math

Simple math expression parser based on XPE library.

Following features are supported:

  • Binary operators: +, -, \*, /, %, ^
  • Unary operators: +, -
  • Expressions in parentheses: (2 + 2) * 2
  • Constants: const foo = 42
  • Variables: foo = 2 + 2 * 2
  • Functions: func inc(x) { x + 1 }; inc(1)

REPL

Run repl.php to play.

About

Simple math expression parser based on XPE library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages