Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 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

Stars

Watchers

Forks

Contributors

Languages