Package org.antlr.v4.codegen
Interface OutputModelFactory
-
- All Known Implementing Classes:
BlankOutputModelFactory
,DefaultOutputModelFactory
,LexerFactory
,ParserFactory
public interface OutputModelFactory
-
-
Method Summary
-
-
-
Method Detail
-
getGrammar
Grammar getGrammar()
-
getGenerator
CodeGenerator getGenerator()
-
setController
void setController(OutputModelController controller)
-
getController
OutputModelController getController()
-
parserFile
ParserFile parserFile(String fileName)
-
parser
Parser parser(ParserFile file)
-
rule
RuleFunction rule(Rule r)
-
rulePostamble
List<SrcOp> rulePostamble(RuleFunction function, Rule r)
-
alternative
CodeBlockForAlt alternative(Alternative alt, boolean outerMost)
-
finishAlternative
CodeBlockForAlt finishAlternative(CodeBlockForAlt blk, List<SrcOp> ops)
-
epsilon
CodeBlockForAlt epsilon(Alternative alt, boolean outerMost)
-
ruleRef
List<SrcOp> ruleRef(GrammarAST ID, GrammarAST label, GrammarAST args)
-
tokenRef
List<SrcOp> tokenRef(GrammarAST ID, GrammarAST label, GrammarAST args)
-
stringRef
List<SrcOp> stringRef(GrammarAST ID, GrammarAST label)
-
set
List<SrcOp> set(GrammarAST setAST, GrammarAST label, boolean invert)
-
wildcard
List<SrcOp> wildcard(GrammarAST ast, GrammarAST labelAST)
-
getChoiceBlock
Choice getChoiceBlock(BlockAST blkAST, List<CodeBlockForAlt> alts, GrammarAST label)
-
getEBNFBlock
Choice getEBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)
-
getLL1ChoiceBlock
Choice getLL1ChoiceBlock(BlockAST blkAST, List<CodeBlockForAlt> alts)
-
getComplexChoiceBlock
Choice getComplexChoiceBlock(BlockAST blkAST, List<CodeBlockForAlt> alts)
-
getLL1EBNFBlock
Choice getLL1EBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)
-
getComplexEBNFBlock
Choice getComplexEBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)
-
getLL1Test
List<SrcOp> getLL1Test(IntervalSet look, GrammarAST blkAST)
-
needsImplicitLabel
boolean needsImplicitLabel(GrammarAST ID, LabeledOp op)
-
getRoot
OutputModelObject getRoot()
-
getCurrentRuleFunction
RuleFunction getCurrentRuleFunction()
-
getCurrentOuterMostAlt
Alternative getCurrentOuterMostAlt()
-
getCurrentBlock
CodeBlock getCurrentBlock()
-
getCurrentOuterMostAlternativeBlock
CodeBlockForOuterMostAlt getCurrentOuterMostAlternativeBlock()
-
getCodeBlockLevel
int getCodeBlockLevel()
-
getTreeLevel
int getTreeLevel()
-
-