marf.nlp.Parsing
Class Compiler

java.lang.Object
  extended by marf.nlp.Parsing.Compiler

public class Compiler
extends java.lang.Object

General Compiler Class. This class instantiates the parser with the given command-line arguments and invokes it then. Afterwards, it collects the results of lexical and syntax analysis and outputs them out.

TODO: complete review.

(C) 2001 - 2008 Serguei Mokhov, mokhov@cs.concordia.ca

$Id: Compiler.java,v 1.17 2008/01/03 03:21:57 mokhov Exp $

Since:
0.3.0.2
Version:
$Revision: 1.17 $
Author:
Serguei Mokhov

Field Summary
protected  Parser oParser
          Instance of our parser.
 
Constructor Summary
Compiler()
          Default compiler.
 
Method Summary
 void compile(java.lang.String[] argv)
          Main compilation method.
static java.lang.String getMARFSourceCodeRevision()
          Retrieves class' revision.
static void main(java.lang.String[] argv)
          Main Function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oParser

protected Parser oParser
Instance of our parser.

Constructor Detail

Compiler

public Compiler()
Default compiler.

Since:
0.3.0.5
Method Detail

compile

public void compile(java.lang.String[] argv)
             throws CompilerError
Main compilation method. TODO: employ OptionProcessor. TODO: move option processing to main().

Parameters:
argv - command-line arguments
Throws:
CompilerError - in case of any lexical, syntax, semantic, or otherwise errors
Since:
0.3.0.5

main

public static final void main(java.lang.String[] argv)
Main Function.

Parameters:
argv - command-line arguments

getMARFSourceCodeRevision

public static java.lang.String getMARFSourceCodeRevision()
Retrieves class' revision.

Returns:
revision string


SourceForge Logo