Skip to content
CycloctanePublic

About

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

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

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

6 stars

Watchers

1 watching

Forks

Contributors

Languages