interpreter
Class Assembler

java.lang.Object
  extended by interpreter.Assembler

public class Assembler
extends Object

Assembler.java is the master-class of the interpreter structure. It instantiates and manipulates the parser, instantiates the LangDef and passes it the Parser's results, then finally outputs the LangDef code with the appropriate file names.


Constructor Summary
Assembler()
           
 
Method Summary
 String generateCode(ErrorHandler errorHandler, String inputFileName, String languageName, boolean executable, boolean suppressModifiers)
          generateCode activates the assembler from an external class, outputting the generated code into their files and then returning the string corresponding to the main generated class.
static void main(String... args)
          Run the Elvis compiler from the command line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Assembler

public Assembler()
Method Detail

main

public static void main(String... args)
                 throws Throwable
Run the Elvis compiler from the command line.

Parameters:
args - Run the program with no arguments for usage information.
Throws:
Throwable

generateCode

public String generateCode(ErrorHandler errorHandler,
                           String inputFileName,
                           String languageName,
                           boolean executable,
                           boolean suppressModifiers)
                    throws Throwable
generateCode activates the assembler from an external class, outputting the generated code into their files and then returning the string corresponding to the main generated class.

Parameters:
errorHandler -
inputFileName -
languageName -
executable -
suppressModifiers -
Returns:
outputCodeName - the name of the file associated with the main class
Throws:
Throwable