|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.common.spec.CommonCModulesFactory
public class CommonCModulesFactory
CompilerModulesFactory
Constructor Summary | |
---|---|
CommonCModulesFactory()
The constructor. |
Method Summary | |
---|---|
LexicalAnalyzer |
createLexicalAnalyzer(java.lang.String sourceFile)
Makes an instance of the Lexical Module. |
SemanticAnalyzer |
createSemanticAnalyzer(SemanticActions actionsContainer)
Makes an instance of the Syntactical Module. |
SyntacticalAnalyzer |
createSyntacticalAnalyzer(LexicalAnalyzer lexicalAnalyzer,
Grammar languageGrammar,
SemanticAnalyzer semantic)
Makes an instance of the Syntactical Module. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommonCModulesFactory()
Method Detail |
---|
public LexicalAnalyzer createLexicalAnalyzer(java.lang.String sourceFile) throws LexicalException
CompilerModulesFactory
createLexicalAnalyzer
in interface CompilerModulesFactory
sourceFile
- The file constaining the source to be compiled.
LexicalException
- If happens some problem at the creations
process, for example, the file could not be found.CompilerModulesFactory.createLexicalAnalyzer(String)
public SyntacticalAnalyzer createSyntacticalAnalyzer(LexicalAnalyzer lexicalAnalyzer, Grammar languageGrammar, SemanticAnalyzer semantic) throws SyntacticalException
CompilerModulesFactory
createSyntacticalAnalyzer
in interface CompilerModulesFactory
lexicalAnalyzer
- The lexical module that will give tokens to this
module.languageGrammar
- The grammar entity that knows how is the language.semantic
- The semanic module that will execute with the
compilation. Can be null if there is no intention of run it.
SyntacticalException
- If happens some problem at the creations
process.CompilerModulesFactory.createSyntacticalAnalyzer(org.ourgrid.common.spec.lexical.LexicalAnalyzer,
org.ourgrid.common.spec.grammar.Grammar,
org.ourgrid.common.spec.semantic.SemanticAnalyzer)
public SemanticAnalyzer createSemanticAnalyzer(SemanticActions actionsContainer) throws SemanticException
CompilerModulesFactory
createSemanticAnalyzer
in interface CompilerModulesFactory
actionsContainer
- The class that has the actions to be executed by
introspection.
SemanticException
- If happens some problem at the creations
process.CompilerModulesFactory.createSemanticAnalyzer(org.ourgrid.common.spec.semantic.SemanticActions)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |