Skip to content

HENRDS/calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Calc

A simple CLI calculator implemented as an exercise to learn Pratt parsing and virtual machine contruction.

Running

  • Install Nim
  • Clone this repo
  • Run nimble run -- "<expr>". Eg.
$ nimble run -- "2+2"
4.0
$ nimble run -- "4+8" "2/3"
12.0
1.5

About

A simple CLI calculator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages