/applu

Primary LanguageJava

Wordy

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.

Learning Goals

  • 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.

Project setup

Accept the assignment in GitHub classroom. Make sure that you do not just clone the template! Check the URL of this page, and make sure the path ends with wordy-YourGitHubUsername and not just wordy.

Clone your assignment repository using the Git tool of your choice (such as GitHub Desktop, GitUp, GitKraken, or the git command line).

⚠️ Make sure you clone the repository; do not just download the zip!

⚠️ When you clone the repository, pay attention to where you are cloning it on your computer’s file system. (In GitHub Desktop, you can use Repository → Show in Finder (Mac) / Repository → Show in Explorer (Windows) if you aren’t sure where you cloned it. Other Git GUIs have a similar feature.)

Now set up your development environment, using the Java development tool of your choice:

Any one of these tools will work fine. Pick the one you are most comfortable with (or the one you most want to learn more about!).

The assignment