com.agentfactory.common.compiler
Class AFCompiler
java.lang.Object
com.agentfactory.common.compiler.AFCompiler
public class AFCompiler
- extends java.lang.Object
This class implements a generic compiler that can be customised for different
programming languages. It is used as a base for the implementation of all the
core languages employed in Agent Factory.
The configuration of the compiler is passed in as the first argument (arg[0])
and should be compatible with the com.agentfactory.common.Configuration class
file format.
|
Constructor Summary |
AFCompiler(java.util.HashMap flagProperties,
java.lang.String resource)
Creates a new instance of Compiler |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AFCompiler
public AFCompiler(java.util.HashMap flagProperties,
java.lang.String resource)
- Creates a new instance of Compiler
main
public static void main(java.lang.String[] args)
load
public boolean load()
preProcess
public void preProcess()
compile
public java.util.List<Node> compile()
throws SemanticError
- Throws:
SemanticError
setProperty
public void setProperty(java.lang.String name,
java.lang.Object object)
getProperty
public java.lang.Object getProperty(java.lang.String name)