Skip to content

geremachek/basil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

basil

An RPN calculator with a simple terminal interface

Basil

Commands:

Pop off the stack: "pop", "p", "."
Swap: "swap", "s", ","
Push memory value to stack: "recall", "r", "]"
Set memory value: "store", "S", "["
Clear the stack: "clear", "c", ";" 
Switch between degrees and radians: "angle", "a", "<"
+
-
*
/
%
^
square
cube
sqrt
log
ln
logb
root
flip
sin
cos
tan
asin
acos
atan
fact

Key bindings:

ESC: Exit

To do:

  • Big Nums (not of much use to me, although I would like to add them at some point the future)

Built using Go version 1.16+