A small working language of your own (a calculator with variables is a great scope; a little config or domain language is another): a lexer (text -> tokens), a parser (tokens -> AST), and a tree-walking interpreter that runs it, with a few example programs it executes correctly. Plus a short note on your language's design (what it's for, what makes writing in it feel good) and what you learned. Reading larzcalc and larzscript first is strongly encouraged.
Steps
- Design your language: write a few example programs first.
- Build the lexer: source text -> tokens.
- Build the parser: tokens -> a tree (recursive descent).
- Build the interpreter: walk the tree and run it.
- Grow it a little (variables, then maybe control flow).
- Run your example programs; note the design and what you learned.
๐งฉ Build it with LarzOS
The exact free tools for this project:
You've completed How Programming Languages Work (PL-101)
Sessions, assignments and a real project โ done. Take these skills into the LarzOS tools and workflows.
Explore the tools โ