Skip to content

How to build and distribute fuc compiler

Frank Zechert edited this page Jun 4, 2013 · 4 revisions

Stable version of FUC Compiler is found in the Master Branch.

FUC Compiler is build using ant. You need a version of ant installed on your system Apache Ant.

Contents
  1. Build
  2. Documentation
  3. Distribute
  4. Test
  5. Clean

Build

To build FUC Compiler open the /code directory in your console and type ant build.

Documentation

To create JavaDoc documentation run ant doc. A doc directory will be created inside each component. Find more documentation in this wiki!

Distribute

To distribute FUC Compiler open the /code directory in your console and type ant dist.

The components will be distributed as JAR files into the /code/dist directory.

The distributed JAR files contain the compiled class files only. If you want to create JAR files with JavaDoc documentation and source files run ant dist-full.

The following compiler components will be distributed

Also a numerous number of other packages is generated that are used in one or more of the components.

  • Common-Interfaces.jar
  • FUC-AST.jar
  • FUC-ErrorLog.jar
  • FUC-SymbolTable.jar

To run the FUC compiler see Using The Console Controller or Using The GUI IDE. The controllers can be found inside the following JAR Files

  • FUC-Controller.jar and all FUC-VISU* jars
  • Fuc-Ide.jar and all Fuc-Gui-* jars

Test

To build the JUnit tests run ant build-tests from inside the /code directory. Or use ant run-tests to run all JUnit tests.

Clean

To clean FUC Compiler generated files use ant clean from inside the /code directory.