Skip to content
Some tutorials for COMP 520 Compilers
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Some tutorials for COMP 520 Compilers

Setting up the environment

Feel free to use any existing java environment on your computer, but make sure to use Java SE (Standard Edition) version 8.

for 64-bit windows users

you can download the portable version, unzip it, and run the eclipse.exe.

for ubuntu users

install jdk and eclipse

# the version of eclipse in the official repositories is too old
sudo apt-add-repository ppa:mmk2410/eclipse-ide-java 
sudo apt-get update
sudo apt-get install openjdk-8-jdk
sudo apt install eclipse-ide-java

import the examples

  1. Download the Archive Files
  2. Open Eclipse IDE, go to the workbench and create a Java project (say simpleScannerParser).
  3. Right click the project you created, and select "import..."
  4. The import source should be "General -> Archive File"


Why there is nothing happened when I press the "run" button?

Try "windows" -> "Show View" -> Console, when you see the console, enter some expressions like 1+2, and hopefully you will see the output.

You can’t perform that action at this time.