public class CodeGeneratorExtension extends Object
Modifier and Type | Field and Description |
---|---|
OutputModelFactory |
factory |
Constructor and Description |
---|
CodeGeneratorExtension(OutputModelFactory factory) |
Modifier and Type | Method and Description |
---|---|
List<SrcOp> |
action(List<SrcOp> ops) |
CodeBlockForAlt |
alternative(CodeBlockForAlt blk,
boolean outerMost) |
CodeBlockForAlt |
epsilon(CodeBlockForAlt blk) |
CodeBlockForAlt |
finishAlternative(CodeBlockForAlt blk,
boolean outerMost) |
Choice |
getChoiceBlock(Choice c) |
Choice |
getEBNFBlock(Choice c) |
Lexer |
lexer(Lexer l) |
LexerFile |
lexerFile(LexerFile f) |
boolean |
needsImplicitLabel(GrammarAST ID,
LabeledOp op) |
Parser |
parser(Parser p) |
ParserFile |
parserFile(ParserFile f) |
RuleFunction |
rule(RuleFunction rf) |
List<SrcOp> |
rulePostamble(List<SrcOp> ops) |
List<SrcOp> |
ruleRef(List<SrcOp> ops) |
List<SrcOp> |
sempred(List<SrcOp> ops) |
List<SrcOp> |
set(List<SrcOp> ops) |
List<SrcOp> |
stringRef(List<SrcOp> ops) |
List<SrcOp> |
tokenRef(List<SrcOp> ops) |
List<SrcOp> |
wildcard(List<SrcOp> ops) |
public OutputModelFactory factory
public CodeGeneratorExtension(OutputModelFactory factory)
public ParserFile parserFile(ParserFile f)
public RuleFunction rule(RuleFunction rf)
public CodeBlockForAlt alternative(CodeBlockForAlt blk, boolean outerMost)
public CodeBlockForAlt finishAlternative(CodeBlockForAlt blk, boolean outerMost)
public CodeBlockForAlt epsilon(CodeBlockForAlt blk)
public boolean needsImplicitLabel(GrammarAST ID, LabeledOp op)
Copyright © 1992–2020 ANTLR. All rights reserved.