Class ParserFactory
java.lang.Object
org.antlr.v4.codegen.BlankOutputModelFactory
org.antlr.v4.codegen.DefaultOutputModelFactory
org.antlr.v4.codegen.ParserFactory
- All Implemented Interfaces:
OutputModelFactory
-
Field Summary
Fields inherited from class DefaultOutputModelFactory
controller, g, gen -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalternative(Alternative alt, boolean outerMost) voiddefineImplicitLabel(GrammarAST ast, LabeledOp op) epsilon(Alternative alt, boolean outerMost) finishAlternative(CodeBlockForAlt blk, List<SrcOp> ops) getAddToListOpIfListLabelPresent(LabeledOp op, GrammarAST label) getChoiceBlock(BlockAST blkAST, List<CodeBlockForAlt> alts, GrammarAST labelAST) getComplexChoiceBlock(BlockAST blkAST, List<CodeBlockForAlt> alts) getComplexEBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts) getEBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts) getLL1ChoiceBlock(BlockAST blkAST, List<CodeBlockForAlt> alts) getLL1EBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts) getLL1Test(IntervalSet look, GrammarAST blkAST) getTokenLabelDecl(String label) getTokenListLabelDecl(String label) booleanneedsImplicitLabel(GrammarAST ID, LabeledOp op) parser(ParserFile file) parserFile(String fileName) ruleRef(GrammarAST ID, GrammarAST label, GrammarAST args) set(GrammarAST setAST, GrammarAST labelAST, boolean invert) tokenRef(GrammarAST ID, GrammarAST labelAST, GrammarAST args) wildcard(GrammarAST ast, GrammarAST labelAST) Methods inherited from class DefaultOutputModelFactory
getCodeBlockLevel, getController, getCurrentBlock, getCurrentOuterMostAlt, getCurrentOuterMostAlternativeBlock, getCurrentRuleFunction, getGenerator, getGrammar, getRoot, getTreeLevel, list, list, rulePostamble, setControllerMethods inherited from class BlankOutputModelFactory
lexer, lexerFile, stringRef
-
Constructor Details
-
ParserFactory
-
-
Method Details
-
parserFile
- Specified by:
parserFilein interfaceOutputModelFactory- Overrides:
parserFilein classBlankOutputModelFactory
-
parser
- Specified by:
parserin interfaceOutputModelFactory- Overrides:
parserin classBlankOutputModelFactory
-
rule
- Specified by:
rulein interfaceOutputModelFactory- Overrides:
rulein classBlankOutputModelFactory
-
epsilon
- Specified by:
epsilonin interfaceOutputModelFactory- Overrides:
epsilonin classBlankOutputModelFactory
-
alternative
- Specified by:
alternativein interfaceOutputModelFactory- Overrides:
alternativein classBlankOutputModelFactory
-
finishAlternative
- Specified by:
finishAlternativein interfaceOutputModelFactory- Overrides:
finishAlternativein classBlankOutputModelFactory
-
action
- Specified by:
actionin interfaceOutputModelFactory- Overrides:
actionin classBlankOutputModelFactory
-
sempred
- Specified by:
sempredin interfaceOutputModelFactory- Overrides:
sempredin classBlankOutputModelFactory
-
ruleRef
- Specified by:
ruleRefin interfaceOutputModelFactory- Overrides:
ruleRefin classBlankOutputModelFactory
-
tokenRef
- Specified by:
tokenRefin interfaceOutputModelFactory- Overrides:
tokenRefin classBlankOutputModelFactory
-
getTokenLabelDecl
-
getTokenListLabelDecl
-
set
- Specified by:
setin interfaceOutputModelFactory- Overrides:
setin classBlankOutputModelFactory
-
wildcard
- Specified by:
wildcardin interfaceOutputModelFactory- Overrides:
wildcardin classBlankOutputModelFactory
-
getChoiceBlock
- Specified by:
getChoiceBlockin interfaceOutputModelFactory- Overrides:
getChoiceBlockin classBlankOutputModelFactory
-
getEBNFBlock
- Specified by:
getEBNFBlockin interfaceOutputModelFactory- Overrides:
getEBNFBlockin classBlankOutputModelFactory
-
getLL1ChoiceBlock
- Specified by:
getLL1ChoiceBlockin interfaceOutputModelFactory- Overrides:
getLL1ChoiceBlockin classBlankOutputModelFactory
-
getComplexChoiceBlock
- Specified by:
getComplexChoiceBlockin interfaceOutputModelFactory- Overrides:
getComplexChoiceBlockin classBlankOutputModelFactory
-
getLL1EBNFBlock
- Specified by:
getLL1EBNFBlockin interfaceOutputModelFactory- Overrides:
getLL1EBNFBlockin classBlankOutputModelFactory
-
getComplexEBNFBlock
- Specified by:
getComplexEBNFBlockin interfaceOutputModelFactory- Overrides:
getComplexEBNFBlockin classBlankOutputModelFactory
-
getLL1Test
- Specified by:
getLL1Testin interfaceOutputModelFactory- Overrides:
getLL1Testin classBlankOutputModelFactory
-
needsImplicitLabel
- Specified by:
needsImplicitLabelin interfaceOutputModelFactory- Overrides:
needsImplicitLabelin classBlankOutputModelFactory
-
defineImplicitLabel
-
getAddToListOpIfListLabelPresent
-