Skip to content

Instantly share code, notes, and snippets.

View t-eckert's full-sized avatar
🧠
Messing with Nix, Claude, and Rust

Thomas Eckert t-eckert

🧠
Messing with Nix, Claude, and Rust
View GitHub Profile
@t-eckert
t-eckert / rpn.py
Created June 18, 2018 04:02
Reverse Polish Calculator for the command line. Written in Python.
end_scripts = {"quit", "end", "q"}
help_scripts = {"help", "h"}
help_doc = """
A reverse polish or postfix calculator evaluates two numbers by the next opertion.
For example, the sum of 4 and 5 can be found by entering: 5 4 +
Available operations include
+ addition