Peter Norvig describes a small subset of the Scheme language
that works as a calculator—before he explains lis.py
in (How to Write a (Lisp) Interpreter (in Python)).
The calc.py
program is derived from the Python 3.10
version of lis.py
,
keeping only the code needed for the calculator language.
LR
São Paulo, June 19, 2021