Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 324 Bytes

File metadata and controls

30 lines (21 loc) · 324 Bytes

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)>