C# Class Antlr4.Codegen.OutputModelController

Afficher le fichier Open project: sharwell/antlr4cs Class Usage Examples

Méthodes publiques

Свойство Type Description
@delegate OutputModelFactory
codeBlockLevel int
currentBlock Antlr4.Codegen.Model.Decl.CodeBlock
currentOuterMostAlt Antlr4.Tool.Alternative
currentOuterMostAlternativeBlock Antlr4.Codegen.Model.CodeBlockForOuterMostAlt
currentRule Stack
extensions IList
root Antlr4.Codegen.Model.OutputModelObject
treeLevel int
walker SourceGenTriggers

Méthodes publiques

Méthode Description
Action ( ActionAST ast ) : IList
AddExtension ( CodeGeneratorExtension ext ) : void
Alternative ( Alternative alt, bool outerMost ) : CodeBlockForAlt
BuildBaseListenerOutputModel ( bool header ) : OutputModelObject
BuildBaseVisitorOutputModel ( bool header ) : OutputModelObject
BuildLeftRecursiveRuleFunction ( LeftRecursiveRule r, LeftRecursiveRuleFunction function ) : void
BuildLexerOutputModel ( bool header ) : OutputModelObject
BuildLexerRuleActions ( Lexer lexer, Rule r ) : void
BuildListenerOutputModel ( bool header ) : OutputModelObject
BuildNormalRuleFunction ( Rule r, RuleFunction function ) : void
BuildParserOutputModel ( bool header ) : OutputModelObject
BuildRuleFunction ( Parser parser, Rule r ) : void
BuildVisitorOutputModel ( bool header ) : OutputModelObject
Epsilon ( Alternative alt, bool outerMost ) : CodeBlockForAlt
FinishAlternative ( CodeBlockForAlt blk, IList ops, bool outerMost ) : CodeBlockForAlt
GetChoiceBlock ( BlockAST blkAST, IList alts, GrammarAST label ) : Choice
GetCodeBlockLevel ( ) : int
GetCurrentBlock ( ) : CodeBlock
GetCurrentOuterMostAlt ( ) : Alternative
GetCurrentOuterMostAlternativeBlock ( ) : CodeBlockForOuterMostAlt
GetCurrentRuleFunction ( ) : RuleFunction
GetEBNFBlock ( GrammarAST ebnfRoot, IList alts ) : Choice
GetGenerator ( ) : CodeGenerator
GetGrammar ( ) : Grammar
GetRoot ( ) : OutputModelObject
Lexer ( LexerFile file ) : Lexer
LexerFile ( string fileName ) : LexerFile
NeedsImplicitLabel ( GrammarAST ID, LabeledOp op ) : bool
OutputModelController ( OutputModelFactory factory ) : System.Collections.Generic
Parser ( ParserFile file ) : Parser
ParserFile ( string fileName ) : ParserFile
PopCurrentRule ( ) : RuleFunction
PushCurrentRule ( RuleFunction r ) : void
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 labelAST, bool invert ) : IList
SetCurrentBlock ( CodeBlock blk ) : void
SetCurrentOuterMostAlt ( Alternative currentOuterMostAlt ) : void
SetCurrentOuterMostAlternativeBlock ( CodeBlockForOuterMostAlt currentOuterMostAlternativeBlock ) : void
SetRoot ( OutputModelObject root ) : void
StringRef ( GrammarAST ID, GrammarAST label ) : IList
TokenRef ( GrammarAST ID, GrammarAST label, GrammarAST args ) : IList
Wildcard ( GrammarAST ast, GrammarAST labelAST ) : IList

Method Details

Action() public méthode

public Action ( ActionAST ast ) : IList
ast Antlr4.Tool.Ast.ActionAST
Résultat IList

AddExtension() public méthode

public AddExtension ( CodeGeneratorExtension ext ) : void
ext CodeGeneratorExtension
Résultat void

Alternative() public méthode

public Alternative ( Alternative alt, bool outerMost ) : CodeBlockForAlt
alt Antlr4.Tool.Alternative
outerMost bool
Résultat Antlr4.Codegen.Model.CodeBlockForAlt

BuildBaseListenerOutputModel() public méthode

public BuildBaseListenerOutputModel ( bool header ) : OutputModelObject
header bool
Résultat Antlr4.Codegen.Model.OutputModelObject

BuildBaseVisitorOutputModel() public méthode

public BuildBaseVisitorOutputModel ( bool header ) : OutputModelObject
header bool
Résultat Antlr4.Codegen.Model.OutputModelObject

BuildLeftRecursiveRuleFunction() public méthode

public BuildLeftRecursiveRuleFunction ( LeftRecursiveRule r, LeftRecursiveRuleFunction function ) : void
r Antlr4.Tool.LeftRecursiveRule
function Antlr4.Codegen.Model.LeftRecursiveRuleFunction
Résultat void

BuildLexerOutputModel() public méthode

public BuildLexerOutputModel ( bool header ) : OutputModelObject
header bool
Résultat Antlr4.Codegen.Model.OutputModelObject

BuildLexerRuleActions() public méthode

public BuildLexerRuleActions ( Lexer lexer, Rule r ) : void
lexer Antlr4.Codegen.Model.Lexer
r Antlr4.Tool.Rule
Résultat void

BuildListenerOutputModel() public méthode

public BuildListenerOutputModel ( bool header ) : OutputModelObject
header bool
Résultat Antlr4.Codegen.Model.OutputModelObject

BuildNormalRuleFunction() public méthode

public BuildNormalRuleFunction ( Rule r, RuleFunction function ) : void
r Antlr4.Tool.Rule
function Antlr4.Codegen.Model.RuleFunction
Résultat void

BuildParserOutputModel() public méthode

public BuildParserOutputModel ( bool header ) : OutputModelObject
header bool
Résultat Antlr4.Codegen.Model.OutputModelObject

BuildRuleFunction() public méthode

public BuildRuleFunction ( Parser parser, Rule r ) : void
parser Antlr4.Codegen.Model.Parser
r Antlr4.Tool.Rule
Résultat void

BuildVisitorOutputModel() public méthode

public BuildVisitorOutputModel ( bool header ) : OutputModelObject
header bool
Résultat Antlr4.Codegen.Model.OutputModelObject

Epsilon() public méthode

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

FinishAlternative() public méthode

public FinishAlternative ( CodeBlockForAlt blk, IList ops, bool outerMost ) : CodeBlockForAlt
blk Antlr4.Codegen.Model.CodeBlockForAlt
ops IList
outerMost bool
Résultat Antlr4.Codegen.Model.CodeBlockForAlt

GetChoiceBlock() public méthode

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

GetCodeBlockLevel() public méthode

public GetCodeBlockLevel ( ) : int
Résultat int

GetCurrentBlock() public méthode

public GetCurrentBlock ( ) : CodeBlock
Résultat Antlr4.Codegen.Model.Decl.CodeBlock

GetCurrentOuterMostAlt() public méthode

public GetCurrentOuterMostAlt ( ) : Alternative
Résultat Antlr4.Tool.Alternative

GetCurrentOuterMostAlternativeBlock() public méthode

public GetCurrentOuterMostAlternativeBlock ( ) : CodeBlockForOuterMostAlt
Résultat Antlr4.Codegen.Model.CodeBlockForOuterMostAlt

GetCurrentRuleFunction() public méthode

public GetCurrentRuleFunction ( ) : RuleFunction
Résultat Antlr4.Codegen.Model.RuleFunction

GetEBNFBlock() public méthode

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

GetGenerator() public méthode

public GetGenerator ( ) : CodeGenerator
Résultat CodeGenerator

GetGrammar() public méthode

public GetGrammar ( ) : Grammar
Résultat Antlr4.Tool.Grammar

GetRoot() public méthode

public GetRoot ( ) : OutputModelObject
Résultat Antlr4.Codegen.Model.OutputModelObject

Lexer() public méthode

public Lexer ( LexerFile file ) : Lexer
file Antlr4.Codegen.Model.LexerFile
Résultat Antlr4.Codegen.Model.Lexer

LexerFile() public méthode

public LexerFile ( string fileName ) : LexerFile
fileName string
Résultat Antlr4.Codegen.Model.LexerFile

NeedsImplicitLabel() public méthode

public NeedsImplicitLabel ( GrammarAST ID, LabeledOp op ) : bool
ID Antlr4.Tool.Ast.GrammarAST
op LabeledOp
Résultat bool

OutputModelController() public méthode

public OutputModelController ( OutputModelFactory factory ) : System.Collections.Generic
factory OutputModelFactory
Résultat System.Collections.Generic

Parser() public méthode

public Parser ( ParserFile file ) : Parser
file Antlr4.Codegen.Model.ParserFile
Résultat Antlr4.Codegen.Model.Parser

ParserFile() public méthode

public ParserFile ( string fileName ) : ParserFile
fileName string
Résultat Antlr4.Codegen.Model.ParserFile

PopCurrentRule() public méthode

public PopCurrentRule ( ) : RuleFunction
Résultat Antlr4.Codegen.Model.RuleFunction

PushCurrentRule() public méthode

public PushCurrentRule ( RuleFunction r ) : void
r Antlr4.Codegen.Model.RuleFunction
Résultat void

Rule() public méthode

public Rule ( Rule r ) : RuleFunction
r Antlr4.Tool.Rule
Résultat Antlr4.Codegen.Model.RuleFunction

RulePostamble() public méthode

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

RuleRef() public méthode

public RuleRef ( GrammarAST ID, GrammarAST label, GrammarAST args ) : IList
ID Antlr4.Tool.Ast.GrammarAST
label Antlr4.Tool.Ast.GrammarAST
args Antlr4.Tool.Ast.GrammarAST
Résultat IList

Sempred() public méthode

public Sempred ( ActionAST ast ) : IList
ast Antlr4.Tool.Ast.ActionAST
Résultat IList

Set() public méthode

public Set ( GrammarAST setAST, GrammarAST labelAST, bool invert ) : IList
setAST Antlr4.Tool.Ast.GrammarAST
labelAST Antlr4.Tool.Ast.GrammarAST
invert bool
Résultat IList

SetCurrentBlock() public méthode

public SetCurrentBlock ( CodeBlock blk ) : void
blk Antlr4.Codegen.Model.Decl.CodeBlock
Résultat void

SetCurrentOuterMostAlt() public méthode

public SetCurrentOuterMostAlt ( Alternative currentOuterMostAlt ) : void
currentOuterMostAlt Antlr4.Tool.Alternative
Résultat void

SetCurrentOuterMostAlternativeBlock() public méthode

public SetCurrentOuterMostAlternativeBlock ( CodeBlockForOuterMostAlt currentOuterMostAlternativeBlock ) : void
currentOuterMostAlternativeBlock Antlr4.Codegen.Model.CodeBlockForOuterMostAlt
Résultat void

SetRoot() public méthode

public SetRoot ( OutputModelObject root ) : void
root Antlr4.Codegen.Model.OutputModelObject
Résultat void

StringRef() public méthode

public StringRef ( GrammarAST ID, GrammarAST label ) : IList
ID Antlr4.Tool.Ast.GrammarAST
label Antlr4.Tool.Ast.GrammarAST
Résultat IList

TokenRef() public méthode

public TokenRef ( GrammarAST ID, GrammarAST label, GrammarAST args ) : IList
ID Antlr4.Tool.Ast.GrammarAST
label Antlr4.Tool.Ast.GrammarAST
args Antlr4.Tool.Ast.GrammarAST
Résultat IList

Wildcard() public méthode

public Wildcard ( GrammarAST ast, GrammarAST labelAST ) : IList
ast Antlr4.Tool.Ast.GrammarAST
labelAST Antlr4.Tool.Ast.GrammarAST
Résultat IList

Property Details

@delegate public_oe property

public OutputModelFactory @delegate
Résultat OutputModelFactory

codeBlockLevel public_oe property

public int codeBlockLevel
Résultat int

currentBlock public_oe property

public CodeBlock,Antlr4.Codegen.Model.Decl currentBlock
Résultat Antlr4.Codegen.Model.Decl.CodeBlock

currentOuterMostAlt public_oe property

public Alternative,Antlr4.Tool currentOuterMostAlt
Résultat Antlr4.Tool.Alternative

currentOuterMostAlternativeBlock public_oe property

public CodeBlockForOuterMostAlt,Antlr4.Codegen.Model currentOuterMostAlternativeBlock
Résultat Antlr4.Codegen.Model.CodeBlockForOuterMostAlt

currentRule public_oe property

public Stack currentRule
Résultat Stack

extensions public_oe property

public IList extensions
Résultat IList

root public_oe property

public OutputModelObject,Antlr4.Codegen.Model root
Résultat Antlr4.Codegen.Model.OutputModelObject

treeLevel public_oe property

public int treeLevel
Résultat int

walker public_oe property

public SourceGenTriggers walker
Résultat SourceGenTriggers