|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CompilerModulesFactory
Is a central factory for the compiler modules.
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. |
Method Detail |
---|
LexicalAnalyzer createLexicalAnalyzer(java.lang.String sourceFile) throws LexicalException
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.SyntacticalAnalyzer createSyntacticalAnalyzer(LexicalAnalyzer lexicalAnalyzer, Grammar languageGrammar, SemanticAnalyzer semantic) throws SyntacticalException
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.SemanticAnalyzer createSemanticAnalyzer(SemanticActions actionsContainer) throws SemanticException
actionsContainer
- The class that has the actions to be executed by
introspection.
SemanticException
- If happens some problem at the creations
process.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |