Wordy is a toy programming language. We will do science to it.
This project contains the beginning of a Wordy implementation in Java. The starter code provides you with a parser that translates Wordy source code into an AST. You will use that AST to implement an interpreter and a compiler for the language.
- Understand the difference between interpreters and compilers.
- Understand how AST data structures relate to source code.
- Practice writing code that processes code.
- Think in detail about the semantics of basic language constructs.
- Get a taste of the work involved in implementing a programming language.
Fork this repository, then clone it using the Git tool of your choice (such as GitHub Desktop, GitUp, SourceTree, Fork (Paul’s current favorite, but not free), GitKraken, or the git
command line).
Now set up your development environment, using the Java development tool of your choice:
Any one of these tools will work fine — or if it doesn’t, contact Paul! Pick the one you are most comfortable with, or the one you most want to learn more about.
- Part 0: Understand your starting point
- Part 1: Implement an interpreter
- Part 2: Implement a compiler
- Bonus challenges