Skip to content

Simple math expression evaluator written in C99. Based on Pratt Parsing.

License

Notifications You must be signed in to change notification settings

Cycloctane/cyclocalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cyclocalc

Simple mathematical expression evaluator based on Pratt Parsing.

Supported operators:

  • Arithmetic: + - * / %
  • Bitwise: | & ^ << >>
  • Parentheses: ( )

build

make cyclocalc

usage

./cyclocalc "6 * (3 + 4)"

repl:

$ ./cyclocalc
(calc)> 6 * (3 + 4)
42
(calc)>

About

Simple math expression evaluator written in C99. Based on Pratt Parsing.

Topics

Resources

License

Stars

Watchers

Forks