C# Class Antlr4.Codegen.BlankOutputModelFactory

Inheritance: OutputModelFactory
Show file Open project: sharwell/antlr4cs

Public Methods

Method Description
Action ( ActionAST ast ) : IList
Alternative ( Alternative alt, bool outerMost ) : CodeBlockForAlt
Epsilon ( Alternative alt, bool outerMost ) : CodeBlockForAlt
FinishAlternative ( CodeBlockForAlt blk, IList ops ) : CodeBlockForAlt
GetChoiceBlock ( BlockAST blkAST, IList alts, GrammarAST label ) : Choice
GetCodeBlockLevel ( ) : int
GetComplexChoiceBlock ( BlockAST blkAST, IList alts ) : Choice
GetComplexEBNFBlock ( GrammarAST ebnfRoot, IList alts ) : Choice
GetController ( ) : OutputModelController
GetCurrentBlock ( ) : CodeBlock
GetCurrentOuterMostAlt ( ) : Alternative
GetCurrentOuterMostAlternativeBlock ( ) : CodeBlockForOuterMostAlt
GetCurrentRuleFunction ( ) : RuleFunction
GetEBNFBlock ( GrammarAST ebnfRoot, IList alts ) : Choice
GetGrammar ( ) : Grammar
GetLL1ChoiceBlock ( BlockAST blkAST, IList alts ) : Choice
GetLL1EBNFBlock ( GrammarAST ebnfRoot, IList alts ) : Choice
GetLL1Test ( Antlr4.Runtime.Misc.IntervalSet look, GrammarAST blkAST ) : IList
GetRoot ( ) : OutputModelObject
GetTreeLevel ( ) : int
Lexer ( LexerFile file ) : Lexer
LexerFile ( string fileName ) : LexerFile
NeedsImplicitLabel ( GrammarAST ID, LabeledOp op ) : bool
Parser ( ParserFile file ) : Parser
ParserFile ( string fileName ) : ParserFile
Rule ( Rule r ) : RuleFunction
RulePostamble ( RuleFunction function, Rule r ) : IList
RuleRef ( GrammarAST ID, GrammarAST label, GrammarAST args ) : IList
Sempred ( ActionAST ast ) : IList
Set ( GrammarAST setAST, GrammarAST label, bool invert ) : IList
SetController ( OutputModelController controller ) : void
StringRef ( GrammarAST ID, GrammarAST label ) : IList
TokenRef ( GrammarAST ID, GrammarAST label, GrammarAST args ) : IList
Wildcard ( GrammarAST ast, GrammarAST labelAST ) : IList

Private Methods

Method Description
GetGenerator ( ) : CodeGenerator
GetTarget ( ) : AbstractTarget

Method Details

Action() public method

public Action ( ActionAST ast ) : IList
ast Antlr4.Tool.Ast.ActionAST
return IList

Alternative() public method

public Alternative ( Alternative alt, bool outerMost ) : CodeBlockForAlt
alt Antlr4.Tool.Alternative
outerMost bool
return Antlr4.Codegen.Model.CodeBlockForAlt

Epsilon() public method

public Epsilon ( Alternative alt, bool outerMost ) : CodeBlockForAlt
alt Antlr4.Tool.Alternative
outerMost bool
return Antlr4.Codegen.Model.CodeBlockForAlt

FinishAlternative() public method

public FinishAlternative ( CodeBlockForAlt blk, IList ops ) : CodeBlockForAlt
blk Antlr4.Codegen.Model.CodeBlockForAlt
ops IList
return Antlr4.Codegen.Model.CodeBlockForAlt

GetChoiceBlock() public method

public GetChoiceBlock ( BlockAST blkAST, IList alts, GrammarAST label ) : Choice
blkAST Antlr4.Tool.Ast.BlockAST
alts IList
label Antlr4.Tool.Ast.GrammarAST
return Antlr4.Codegen.Model.Choice

GetCodeBlockLevel() public abstract method

public abstract GetCodeBlockLevel ( ) : int
return int

GetComplexChoiceBlock() public method

public GetComplexChoiceBlock ( BlockAST blkAST, IList alts ) : Choice
blkAST Antlr4.Tool.Ast.BlockAST
alts IList
return Antlr4.Codegen.Model.Choice

GetComplexEBNFBlock() public method

public GetComplexEBNFBlock ( GrammarAST ebnfRoot, IList alts ) : Choice
ebnfRoot Antlr4.Tool.Ast.GrammarAST
alts IList
return Antlr4.Codegen.Model.Choice

GetController() public abstract method

public abstract GetController ( ) : OutputModelController
return OutputModelController

GetCurrentBlock() public abstract method

public abstract GetCurrentBlock ( ) : CodeBlock
return Antlr4.Codegen.Model.Decl.CodeBlock

GetCurrentOuterMostAlt() public abstract method

public abstract GetCurrentOuterMostAlt ( ) : Alternative
return Antlr4.Tool.Alternative

GetCurrentOuterMostAlternativeBlock() public abstract method

public abstract GetCurrentOuterMostAlternativeBlock ( ) : CodeBlockForOuterMostAlt
return Antlr4.Codegen.Model.CodeBlockForOuterMostAlt

GetCurrentRuleFunction() public abstract method

public abstract GetCurrentRuleFunction ( ) : RuleFunction
return Antlr4.Codegen.Model.RuleFunction

GetEBNFBlock() public method

public GetEBNFBlock ( GrammarAST ebnfRoot, IList alts ) : Choice
ebnfRoot Antlr4.Tool.Ast.GrammarAST
alts IList
return Antlr4.Codegen.Model.Choice

GetGrammar() public abstract method

public abstract GetGrammar ( ) : Grammar
return Antlr4.Tool.Grammar

GetLL1ChoiceBlock() public method

public GetLL1ChoiceBlock ( BlockAST blkAST, IList alts ) : Choice
blkAST Antlr4.Tool.Ast.BlockAST
alts IList
return Antlr4.Codegen.Model.Choice

GetLL1EBNFBlock() public method

public GetLL1EBNFBlock ( GrammarAST ebnfRoot, IList alts ) : Choice
ebnfRoot Antlr4.Tool.Ast.GrammarAST
alts IList
return Antlr4.Codegen.Model.Choice

GetLL1Test() public method

public GetLL1Test ( Antlr4.Runtime.Misc.IntervalSet look, GrammarAST blkAST ) : IList
look Antlr4.Runtime.Misc.IntervalSet
blkAST Antlr4.Tool.Ast.GrammarAST
return IList

GetRoot() public abstract method

public abstract GetRoot ( ) : OutputModelObject
return Antlr4.Codegen.Model.OutputModelObject

GetTreeLevel() public abstract method

public abstract GetTreeLevel ( ) : int
return int

Lexer() public method

public Lexer ( LexerFile file ) : Lexer
file Antlr4.Codegen.Model.LexerFile
return Antlr4.Codegen.Model.Lexer

LexerFile() public method

public LexerFile ( string fileName ) : LexerFile
fileName string
return Antlr4.Codegen.Model.LexerFile

NeedsImplicitLabel() public method

public NeedsImplicitLabel ( GrammarAST ID, LabeledOp op ) : bool
ID Antlr4.Tool.Ast.GrammarAST
op LabeledOp
return bool

Parser() public method

public Parser ( ParserFile file ) : Parser
file Antlr4.Codegen.Model.ParserFile
return Antlr4.Codegen.Model.Parser

ParserFile() public method

public ParserFile ( string fileName ) : ParserFile
fileName string
return Antlr4.Codegen.Model.ParserFile

Rule() public method

public Rule ( Rule r ) : RuleFunction
r Antlr4.Tool.Rule
return Antlr4.Codegen.Model.RuleFunction

RulePostamble() public method

public RulePostamble ( RuleFunction function, Rule r ) : IList
function Antlr4.Codegen.Model.RuleFunction
r Antlr4.Tool.Rule
return IList

RuleRef() public method

public RuleRef ( GrammarAST ID, GrammarAST label, GrammarAST args ) : IList
ID Antlr4.Tool.Ast.GrammarAST
label Antlr4.Tool.Ast.GrammarAST
args Antlr4.Tool.Ast.GrammarAST
return IList

Sempred() public method

public Sempred ( ActionAST ast ) : IList
ast Antlr4.Tool.Ast.ActionAST
return IList

Set() public method

public Set ( GrammarAST setAST, GrammarAST label, bool invert ) : IList
setAST Antlr4.Tool.Ast.GrammarAST
label Antlr4.Tool.Ast.GrammarAST
invert bool
return IList

SetController() public abstract method

public abstract SetController ( OutputModelController controller ) : void
controller OutputModelController
return void

StringRef() public method

public StringRef ( GrammarAST ID, GrammarAST label ) : IList
ID Antlr4.Tool.Ast.GrammarAST
label Antlr4.Tool.Ast.GrammarAST
return IList

TokenRef() public method

public TokenRef ( GrammarAST ID, GrammarAST label, GrammarAST args ) : IList
ID Antlr4.Tool.Ast.GrammarAST
label Antlr4.Tool.Ast.GrammarAST
args Antlr4.Tool.Ast.GrammarAST
return IList

Wildcard() public method

public Wildcard ( GrammarAST ast, GrammarAST labelAST ) : IList
ast Antlr4.Tool.Ast.GrammarAST
labelAST Antlr4.Tool.Ast.GrammarAST
return IList