C# Class Antlr4.Codegen.ParserFactory

Inheritance: DefaultOutputModelFactory
Show file Open project: sharwell/antlr4cs Class Usage Examples

Public Methods

Method Description
Action ( ActionAST ast ) : IList
Alternative ( Alternative alt, bool outerMost ) : CodeBlockForAlt
DefineImplicitLabel ( GrammarAST ast, LabeledOp op ) : void
Epsilon ( Alternative alt, bool outerMost ) : CodeBlockForAlt
FinishAlternative ( CodeBlockForAlt blk, IList ops ) : CodeBlockForAlt
GetAddToListOpIfListLabelPresent ( LabeledOp op, GrammarAST label ) : AddToLabelList
GetChoiceBlock ( BlockAST blkAST, IList alts, GrammarAST labelAST ) : Choice
GetComplexChoiceBlock ( BlockAST blkAST, IList alts ) : Choice
GetComplexEBNFBlock ( GrammarAST ebnfRoot, IList alts ) : Choice
GetEBNFBlock ( GrammarAST ebnfRoot, IList alts ) : Choice
GetLL1ChoiceBlock ( BlockAST blkAST, IList alts ) : Choice
GetLL1EBNFBlock ( GrammarAST ebnfRoot, IList alts ) : Choice
GetLL1Test ( Antlr4.Runtime.Misc.IntervalSet look, GrammarAST blkAST ) : IList
GetTokenLabelDecl ( string label ) : Decl
GetTokenListLabelDecl ( string label ) : TokenListDecl
NeedsImplicitLabel ( GrammarAST ID, LabeledOp op ) : bool
Parser ( ParserFile file ) : Parser
ParserFactory ( CodeGenerator gen ) : System.Collections.Generic
ParserFile ( string fileName ) : ParserFile
Rule ( Rule r ) : RuleFunction
RuleRef ( GrammarAST ID, GrammarAST label, GrammarAST args ) : IList
Sempred ( ActionAST ast ) : IList
Set ( GrammarAST setAST, GrammarAST labelAST, bool invert ) : IList
TokenRef ( GrammarAST ID, GrammarAST labelAST, GrammarAST args ) : IList
Wildcard ( GrammarAST ast, GrammarAST labelAST ) : IList

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

DefineImplicitLabel() public method

public DefineImplicitLabel ( GrammarAST ast, LabeledOp op ) : void
ast Antlr4.Tool.Ast.GrammarAST
op LabeledOp
return void

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

GetAddToListOpIfListLabelPresent() public method

public GetAddToListOpIfListLabelPresent ( LabeledOp op, GrammarAST label ) : AddToLabelList
op LabeledOp
label Antlr4.Tool.Ast.GrammarAST
return Antlr4.Codegen.Model.AddToLabelList

GetChoiceBlock() public method

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

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

GetEBNFBlock() public method

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

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

GetTokenLabelDecl() public method

public GetTokenLabelDecl ( string label ) : Decl
label string
return Antlr4.Codegen.Model.Decl.Decl

GetTokenListLabelDecl() public method

public GetTokenListLabelDecl ( string label ) : TokenListDecl
label string
return Antlr4.Codegen.Model.Decl.TokenListDecl

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

ParserFactory() public method

public ParserFactory ( CodeGenerator gen ) : System.Collections.Generic
gen CodeGenerator
return System.Collections.Generic

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

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 labelAST, bool invert ) : IList
setAST Antlr4.Tool.Ast.GrammarAST
labelAST Antlr4.Tool.Ast.GrammarAST
invert bool
return IList

TokenRef() public method

public TokenRef ( GrammarAST ID, GrammarAST labelAST, GrammarAST args ) : IList
ID Antlr4.Tool.Ast.GrammarAST
labelAST 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