Skip to content
SWP-Comp-Ch3ck3r edited this page Apr 26, 2013 · 6 revisions

All of our code is found within the /code folder.

Project Components

For every componet of the compiler one project folder exists. The project folders are:

  • ast - Implementation of the AST data structure
  • backend - Implementation of the backend
  • controller - Implementation of the controller
  • intermediateCodeGenerator - Implementation of the intermediate code generator
  • lexer - Implementation of the lexer
  • parser - Implementation of the parser
  • semanticAnalyzer - Implementation of the semantic analyzer
  • symbolTable - Implementation of the symbol table

Project Folders

Every project folder contains the following subdirectories and files

  • src - This folder is for your source files
  • test - This folder is for your JUnit tests
  • build.xml - Your ant build file

Warning: When you use the ant file, the folders bin and doc will be generated. Do not add these directories and files to the git repository!

The folder test

There is a folder test. This is not a component specific folder but the location for tests that run test cases across multiple components. Therefore this folder does not contain the subfolder src but only test and build.xml.

The folder lib

The lib folder contains external libraries like the JUnit4 framework.

The folder etc

The etc folder contains configuration files.