public abstract class BlankOutputModelFactory extends Object implements OutputModelFactory
Constructor and Description |
---|
BlankOutputModelFactory() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCodeBlockLevel, getController, getCurrentBlock, getCurrentOuterMostAlt, getCurrentOuterMostAlternativeBlock, getCurrentRuleFunction, getGenerator, getGrammar, getRoot, getTreeLevel, setController
public ParserFile parserFile(String fileName)
parserFile
in interface OutputModelFactory
public Parser parser(ParserFile file)
parser
in interface OutputModelFactory
public RuleFunction rule(Rule r)
rule
in interface OutputModelFactory
public List<SrcOp> rulePostamble(RuleFunction function, Rule r)
rulePostamble
in interface OutputModelFactory
public LexerFile lexerFile(String fileName)
lexerFile
in interface OutputModelFactory
public Lexer lexer(LexerFile file)
lexer
in interface OutputModelFactory
public CodeBlockForAlt alternative(Alternative alt, boolean outerMost)
alternative
in interface OutputModelFactory
public CodeBlockForAlt finishAlternative(CodeBlockForAlt blk, List<SrcOp> ops)
finishAlternative
in interface OutputModelFactory
public CodeBlockForAlt epsilon(Alternative alt, boolean outerMost)
epsilon
in interface OutputModelFactory
public List<SrcOp> ruleRef(GrammarAST ID, GrammarAST label, GrammarAST args)
ruleRef
in interface OutputModelFactory
public List<SrcOp> tokenRef(GrammarAST ID, GrammarAST label, GrammarAST args)
tokenRef
in interface OutputModelFactory
public List<SrcOp> stringRef(GrammarAST ID, GrammarAST label)
stringRef
in interface OutputModelFactory
public List<SrcOp> set(GrammarAST setAST, GrammarAST label, boolean invert)
set
in interface OutputModelFactory
public List<SrcOp> wildcard(GrammarAST ast, GrammarAST labelAST)
wildcard
in interface OutputModelFactory
public List<SrcOp> action(ActionAST ast)
action
in interface OutputModelFactory
public List<SrcOp> sempred(ActionAST ast)
sempred
in interface OutputModelFactory
public Choice getChoiceBlock(BlockAST blkAST, List<CodeBlockForAlt> alts, GrammarAST label)
getChoiceBlock
in interface OutputModelFactory
public Choice getEBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)
getEBNFBlock
in interface OutputModelFactory
public Choice getLL1ChoiceBlock(BlockAST blkAST, List<CodeBlockForAlt> alts)
getLL1ChoiceBlock
in interface OutputModelFactory
public Choice getComplexChoiceBlock(BlockAST blkAST, List<CodeBlockForAlt> alts)
getComplexChoiceBlock
in interface OutputModelFactory
public Choice getLL1EBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)
getLL1EBNFBlock
in interface OutputModelFactory
public Choice getComplexEBNFBlock(GrammarAST ebnfRoot, List<CodeBlockForAlt> alts)
getComplexEBNFBlock
in interface OutputModelFactory
public List<SrcOp> getLL1Test(IntervalSet look, GrammarAST blkAST)
getLL1Test
in interface OutputModelFactory
public boolean needsImplicitLabel(GrammarAST ID, LabeledOp op)
needsImplicitLabel
in interface OutputModelFactory
Copyright © 1992–2020 ANTLR. All rights reserved.