¶
A calculator from scratch in Python
¶
Introduction
¶
Prerequisites
¶
What you will learn
¶
Introducing calc-lang
¶
Fundamentals
¶
Architecture overview
¶
Defining calc-lang syntax
¶
Understanding tokens
¶
Expressions as tree
¶
Building calc-lang
¶
Handling errors
¶
A lexer to scan plain text
¶
A parser to build the AST
¶
A calc-lang interpreter
¶
Adding a REPL
¶
Conclusion
¶
Limitations
¶
Improving calc-lang
¶
Going further