C# Class Antlr4.Codegen.ActionTranslator

Inheritance: ActionSplitterListener
Datei anzeigen Open project: sharwell/antlr4cs Class Usage Examples

Public Properties

Property Type Description
rulePropToModelMap IDictionary>
thisRulePropToModelMap IDictionary>
tokenPropToModelMap IDictionary>

Public Methods

Method Description
ActionTranslator ( OutputModelFactory factory, ActionAST node ) : System.Collections.Generic
Attr ( string expr, Antlr.Runtime.IToken x ) : void
GetRuleLabel ( string x ) : string
GetTokenLabel ( string x ) : string
NonLocalAttr ( string expr, Antlr.Runtime.IToken x, Antlr.Runtime.IToken y ) : void
QualifiedAttr ( string expr, Antlr.Runtime.IToken x, Antlr.Runtime.IToken y ) : void
SetAttr ( string expr, Antlr.Runtime.IToken x, Antlr.Runtime.IToken rhs ) : void
SetNonLocalAttr ( string expr, Antlr.Runtime.IToken x, Antlr.Runtime.IToken y, Antlr.Runtime.IToken rhs ) : void
Text ( string text ) : void
ToString ( IList chunks ) : string
TranslateAction ( OutputModelFactory factory, RuleFunction rf, Antlr.Runtime.IToken tokenWithinAction, ActionAST node ) : IList
TranslateActionChunk ( OutputModelFactory factory, RuleFunction rf, string action, ActionAST node ) : IList

Private Methods

Method Description
GetRulePropertyRef ( Antlr.Runtime.IToken prop ) : RulePropertyRef
GetRulePropertyRef ( Antlr.Runtime.IToken x, Antlr.Runtime.IToken prop ) : RulePropertyRef
GetTokenPropertyRef ( Antlr.Runtime.IToken x, Antlr.Runtime.IToken y ) : TokenPropertyRef

Method Details

ActionTranslator() public method

public ActionTranslator ( OutputModelFactory factory, ActionAST node ) : System.Collections.Generic
factory OutputModelFactory
node Antlr4.Tool.Ast.ActionAST
return System.Collections.Generic

Attr() public method

public Attr ( string expr, Antlr.Runtime.IToken x ) : void
expr string
x Antlr.Runtime.IToken
return void

GetRuleLabel() public method

public GetRuleLabel ( string x ) : string
x string
return string

GetTokenLabel() public method

public GetTokenLabel ( string x ) : string
x string
return string

NonLocalAttr() public method

public NonLocalAttr ( string expr, Antlr.Runtime.IToken x, Antlr.Runtime.IToken y ) : void
expr string
x Antlr.Runtime.IToken
y Antlr.Runtime.IToken
return void

QualifiedAttr() public method

public QualifiedAttr ( string expr, Antlr.Runtime.IToken x, Antlr.Runtime.IToken y ) : void
expr string
x Antlr.Runtime.IToken
y Antlr.Runtime.IToken
return void

SetAttr() public method

public SetAttr ( string expr, Antlr.Runtime.IToken x, Antlr.Runtime.IToken rhs ) : void
expr string
x Antlr.Runtime.IToken
rhs Antlr.Runtime.IToken
return void

SetNonLocalAttr() public method

public SetNonLocalAttr ( string expr, Antlr.Runtime.IToken x, Antlr.Runtime.IToken y, Antlr.Runtime.IToken rhs ) : void
expr string
x Antlr.Runtime.IToken
y Antlr.Runtime.IToken
rhs Antlr.Runtime.IToken
return void

Text() public method

public Text ( string text ) : void
text string
return void

ToString() public static method

public static ToString ( IList chunks ) : string
chunks IList
return string

TranslateAction() public static method

public static TranslateAction ( OutputModelFactory factory, RuleFunction rf, Antlr.Runtime.IToken tokenWithinAction, ActionAST node ) : IList
factory OutputModelFactory
rf Antlr4.Codegen.Model.RuleFunction
tokenWithinAction Antlr.Runtime.IToken
node Antlr4.Tool.Ast.ActionAST
return IList

TranslateActionChunk() public static method

public static TranslateActionChunk ( OutputModelFactory factory, RuleFunction rf, string action, ActionAST node ) : IList
factory OutputModelFactory
rf Antlr4.Codegen.Model.RuleFunction
action string
node Antlr4.Tool.Ast.ActionAST
return IList

Property Details

rulePropToModelMap public_oe static_oe property

public static IDictionary> rulePropToModelMap
return IDictionary>

thisRulePropToModelMap public_oe static_oe property

public static IDictionary> thisRulePropToModelMap
return IDictionary>

tokenPropToModelMap public_oe static_oe property

public static IDictionary> tokenPropToModelMap
return IDictionary>