lots of additions

- added Makefile for building
- added math constant support
- added many more calc operators and functions
- added more stack manipulation functions
This commit is contained in:
2023-10-30 19:13:24 +01:00
parent 3b48674f2b
commit 4ace2b4385
5 changed files with 286 additions and 7 deletions

View File

@@ -55,7 +55,7 @@ func main() {
rl, err := readline.NewEx(&readline.Config{
Prompt: "\033[31m»\033[0m ",
HistoryFile: os.Getenv("HOME") + ".rpn-history",
HistoryFile: os.Getenv("HOME") + "/.rpn-history",
HistoryLimit: 500,
AutoComplete: calc.completer,
InterruptPrompt: "^C",