org.ourgrid.common.spec.syntactical
Class CommonSyntacticalAnalyzer

java.lang.Object
  extended by org.ourgrid.common.spec.syntactical.CommonSyntacticalAnalyzer
All Implemented Interfaces:
SyntacticalAnalyzer

public class CommonSyntacticalAnalyzer
extends java.lang.Object
implements SyntacticalAnalyzer

See Also:
Created on 21/05/2004

Field Summary
static int MODE_NORMAL
           
static int MODE_READLINE
           
static int MODE_READSTRING
           
 
Constructor Summary
CommonSyntacticalAnalyzer(LexicalAnalyzer lexical, Grammar grammar, SemanticAnalyzer semantic)
          The constructor.
 
Method Summary
 void startCompilation()
          This is the "main" method then it will start the compilation process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODE_NORMAL

public static final int MODE_NORMAL
See Also:
Constant Field Values

MODE_READLINE

public static final int MODE_READLINE
See Also:
Constant Field Values

MODE_READSTRING

public static final int MODE_READSTRING
See Also:
Constant Field Values
Constructor Detail

CommonSyntacticalAnalyzer

public CommonSyntacticalAnalyzer(LexicalAnalyzer lexical,
                                 Grammar grammar,
                                 SemanticAnalyzer semantic)
The constructor.

Parameters:
lexical - A lexical analyzer from where will be gotten the tokens from source.
grammar - The grammar entity that knows validat the language sources.
semantic - A semantic analyzer that will handle the execution of the semantic actions found as special token at grammar.
Method Detail

startCompilation

public void startCompilation()
                      throws SyntacticalException
Description copied from interface: SyntacticalAnalyzer
This is the "main" method then it will start the compilation process. Here will be made the syntactical compilation of source that is: given a source, will be checked if it is or not valid according to the rules of the grammar's language.

Specified by:
startCompilation in interface SyntacticalAnalyzer
Throws:
SyntacticalException
See Also:
SyntacticalAnalyzer.startCompilation()