Project setup (Setup)
Compiler Project
- Create your project in GitHub Classroom (see webcourses for the invite link)
- (Optional, but recommended) Create a virtual machine to work on the compiler project
Clone your repository, which should look like
https://github.com/cop5621/compiler-project-USERNAME
where `USERNAME` is your GitHub username. Do not make the code public or store in your personal or other github organization.
Follow the "One-time setup" instructions in the README.md.
Note if you shut down your machine, you will need to reconfigure your environment. From the root of your source directory, run
source .env/bin/activate export CLASSPATH=$PWD/lib/antlr-4.13.1-complete.jar:$CLASSPATH
Test your setup by running `compiler tests/fact.while`. Here is what the terminal log should look like, though USERNAME should be your own GitHub username.
(.env) vagrant@ubuntu2204:/vagrant/compiler-project-USERNAME$ compiler tests/fact.while INFO:root:writing tests/fact.s
- In webcourses, answer "yes" if you had successfully set it up.
- Reach out on Ed Discussions (see webcourses for the invite link) if you have issues with any of the steps above.