-
Notifications
You must be signed in to change notification settings - Fork 1
How to build and distribute fuc compiler
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.
To build FUC Compiler open the /code
directory in your console and type ant build
.
To create JavaDoc documentation run ant doc
. A doc
directory will be created inside each component.
Find more documentation in this wiki!
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
- FUC-Lexer.jar : The Lexer
- FUC-Parser.jar : The Parser
- FUC-Semantic-Analyser.jar : The Semantic Analysis
- FUC-IRGen.jar : The Intermediate Code Generator
- FUC-Backend.jar : The Backend
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
To build the JUnit tests run ant build-tests
from inside the /code
directory. Or use ant run-tests
to run all JUnit tests.
To clean FUC Compiler generated files use ant clean
from inside the /code
directory.