public class CodeGeneratorExtension extends Object
Modifier and Type | Field | Description |
---|---|---|
OutputModelFactory |
factory |
Constructor | Description |
---|---|
CodeGeneratorExtension(OutputModelFactory factory) |
Modifier and Type | Method | 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–2019 ANTLR. All rights reserved.