C# 클래스 Antlr4.Codegen.OutputModelController

파일 보기 프로젝트 열기: sharwell/antlr4cs 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
@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

공개 메소드들

메소드 설명
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

메소드 상세

Action() 공개 메소드

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

AddExtension() 공개 메소드

public AddExtension ( CodeGeneratorExtension ext ) : void
ext CodeGeneratorExtension
리턴 void

Alternative() 공개 메소드

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

BuildBaseListenerOutputModel() 공개 메소드

public BuildBaseListenerOutputModel ( bool header ) : OutputModelObject
header bool
리턴 Antlr4.Codegen.Model.OutputModelObject

BuildBaseVisitorOutputModel() 공개 메소드

public BuildBaseVisitorOutputModel ( bool header ) : OutputModelObject
header bool
리턴 Antlr4.Codegen.Model.OutputModelObject

BuildLeftRecursiveRuleFunction() 공개 메소드

public BuildLeftRecursiveRuleFunction ( LeftRecursiveRule r, LeftRecursiveRuleFunction function ) : void
r Antlr4.Tool.LeftRecursiveRule
function Antlr4.Codegen.Model.LeftRecursiveRuleFunction
리턴 void

BuildLexerOutputModel() 공개 메소드

public BuildLexerOutputModel ( bool header ) : OutputModelObject
header bool
리턴 Antlr4.Codegen.Model.OutputModelObject

BuildLexerRuleActions() 공개 메소드

public BuildLexerRuleActions ( Lexer lexer, Rule r ) : void
lexer Antlr4.Codegen.Model.Lexer
r Antlr4.Tool.Rule
리턴 void

BuildListenerOutputModel() 공개 메소드

public BuildListenerOutputModel ( bool header ) : OutputModelObject
header bool
리턴 Antlr4.Codegen.Model.OutputModelObject

BuildNormalRuleFunction() 공개 메소드

public BuildNormalRuleFunction ( Rule r, RuleFunction function ) : void
r Antlr4.Tool.Rule
function Antlr4.Codegen.Model.RuleFunction
리턴 void

BuildParserOutputModel() 공개 메소드

public BuildParserOutputModel ( bool header ) : OutputModelObject
header bool
리턴 Antlr4.Codegen.Model.OutputModelObject

BuildRuleFunction() 공개 메소드

public BuildRuleFunction ( Parser parser, Rule r ) : void
parser Antlr4.Codegen.Model.Parser
r Antlr4.Tool.Rule
리턴 void

BuildVisitorOutputModel() 공개 메소드

public BuildVisitorOutputModel ( bool header ) : OutputModelObject
header bool
리턴 Antlr4.Codegen.Model.OutputModelObject

Epsilon() 공개 메소드

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

FinishAlternative() 공개 메소드

public FinishAlternative ( CodeBlockForAlt blk, IList ops, bool outerMost ) : CodeBlockForAlt
blk Antlr4.Codegen.Model.CodeBlockForAlt
ops IList
outerMost bool
리턴 Antlr4.Codegen.Model.CodeBlockForAlt

GetChoiceBlock() 공개 메소드

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

GetCodeBlockLevel() 공개 메소드

public GetCodeBlockLevel ( ) : int
리턴 int

GetCurrentBlock() 공개 메소드

public GetCurrentBlock ( ) : CodeBlock
리턴 Antlr4.Codegen.Model.Decl.CodeBlock

GetCurrentOuterMostAlt() 공개 메소드

public GetCurrentOuterMostAlt ( ) : Alternative
리턴 Antlr4.Tool.Alternative

GetCurrentOuterMostAlternativeBlock() 공개 메소드

public GetCurrentOuterMostAlternativeBlock ( ) : CodeBlockForOuterMostAlt
리턴 Antlr4.Codegen.Model.CodeBlockForOuterMostAlt

GetCurrentRuleFunction() 공개 메소드

public GetCurrentRuleFunction ( ) : RuleFunction
리턴 Antlr4.Codegen.Model.RuleFunction

GetEBNFBlock() 공개 메소드

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

GetGenerator() 공개 메소드

public GetGenerator ( ) : CodeGenerator
리턴 CodeGenerator

GetGrammar() 공개 메소드

public GetGrammar ( ) : Grammar
리턴 Antlr4.Tool.Grammar

GetRoot() 공개 메소드

public GetRoot ( ) : OutputModelObject
리턴 Antlr4.Codegen.Model.OutputModelObject

Lexer() 공개 메소드

public Lexer ( LexerFile file ) : Lexer
file Antlr4.Codegen.Model.LexerFile
리턴 Antlr4.Codegen.Model.Lexer

LexerFile() 공개 메소드

public LexerFile ( string fileName ) : LexerFile
fileName string
리턴 Antlr4.Codegen.Model.LexerFile

NeedsImplicitLabel() 공개 메소드

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

OutputModelController() 공개 메소드

public OutputModelController ( OutputModelFactory factory ) : System.Collections.Generic
factory OutputModelFactory
리턴 System.Collections.Generic

Parser() 공개 메소드

public Parser ( ParserFile file ) : Parser
file Antlr4.Codegen.Model.ParserFile
리턴 Antlr4.Codegen.Model.Parser

ParserFile() 공개 메소드

public ParserFile ( string fileName ) : ParserFile
fileName string
리턴 Antlr4.Codegen.Model.ParserFile

PopCurrentRule() 공개 메소드

public PopCurrentRule ( ) : RuleFunction
리턴 Antlr4.Codegen.Model.RuleFunction

PushCurrentRule() 공개 메소드

public PushCurrentRule ( RuleFunction r ) : void
r Antlr4.Codegen.Model.RuleFunction
리턴 void

Rule() 공개 메소드

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

RulePostamble() 공개 메소드

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

RuleRef() 공개 메소드

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

Sempred() 공개 메소드

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

Set() 공개 메소드

public Set ( GrammarAST setAST, GrammarAST labelAST, bool invert ) : IList
setAST Antlr4.Tool.Ast.GrammarAST
labelAST Antlr4.Tool.Ast.GrammarAST
invert bool
리턴 IList

SetCurrentBlock() 공개 메소드

public SetCurrentBlock ( CodeBlock blk ) : void
blk Antlr4.Codegen.Model.Decl.CodeBlock
리턴 void

SetCurrentOuterMostAlt() 공개 메소드

public SetCurrentOuterMostAlt ( Alternative currentOuterMostAlt ) : void
currentOuterMostAlt Antlr4.Tool.Alternative
리턴 void

SetCurrentOuterMostAlternativeBlock() 공개 메소드

public SetCurrentOuterMostAlternativeBlock ( CodeBlockForOuterMostAlt currentOuterMostAlternativeBlock ) : void
currentOuterMostAlternativeBlock Antlr4.Codegen.Model.CodeBlockForOuterMostAlt
리턴 void

SetRoot() 공개 메소드

public SetRoot ( OutputModelObject root ) : void
root Antlr4.Codegen.Model.OutputModelObject
리턴 void

StringRef() 공개 메소드

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

TokenRef() 공개 메소드

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

Wildcard() 공개 메소드

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

프로퍼티 상세

@delegate 공개적으로 프로퍼티

public OutputModelFactory @delegate
리턴 OutputModelFactory

codeBlockLevel 공개적으로 프로퍼티

public int codeBlockLevel
리턴 int

currentBlock 공개적으로 프로퍼티

public CodeBlock,Antlr4.Codegen.Model.Decl currentBlock
리턴 Antlr4.Codegen.Model.Decl.CodeBlock

currentOuterMostAlt 공개적으로 프로퍼티

public Alternative,Antlr4.Tool currentOuterMostAlt
리턴 Antlr4.Tool.Alternative

currentOuterMostAlternativeBlock 공개적으로 프로퍼티

public CodeBlockForOuterMostAlt,Antlr4.Codegen.Model currentOuterMostAlternativeBlock
리턴 Antlr4.Codegen.Model.CodeBlockForOuterMostAlt

currentRule 공개적으로 프로퍼티

public Stack currentRule
리턴 Stack

extensions 공개적으로 프로퍼티

public IList extensions
리턴 IList

root 공개적으로 프로퍼티

public OutputModelObject,Antlr4.Codegen.Model root
리턴 Antlr4.Codegen.Model.OutputModelObject

treeLevel 공개적으로 프로퍼티

public int treeLevel
리턴 int

walker 공개적으로 프로퍼티

public SourceGenTriggers walker
리턴 SourceGenTriggers