Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
This is a (subset of a) SmallC compiler written in Java
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
grammar
lib
pmachine
src
test
README
build.xml
c2p
class_diagram.png

README

Project Compilers
by Philip De Smedt & Gino Wuytjens

Compiling

Using the c2p shell command, it's possible to compile a SmallC source file. The execution of the compilation process is powered by Ant. In the Ant build file build.xml, there's two executable targets, c2p and unittests. The c2p target will execute the compiler. The target unittests provides some regression tests on the compiler features.

Grammar

The grammar was build using the ANTLR Tools. You can find it in the subdirectory ./grammar

Class Diagram

An overview of the compiler can be found in the class diagram.

Something went wrong with that request. Please try again.