C# Class Antlr4.Codegen.ActionTranslator

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

Méthodes publiques

Свойство Type Description
rulePropToModelMap IDictionary>
thisRulePropToModelMap IDictionary>
tokenPropToModelMap IDictionary>

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

Attr() public méthode

public Attr ( string expr, Antlr.Runtime.IToken x ) : void
expr string
x Antlr.Runtime.IToken
Résultat void

GetRuleLabel() public méthode

public GetRuleLabel ( string x ) : string
x string
Résultat string

GetTokenLabel() public méthode

public GetTokenLabel ( string x ) : string
x string
Résultat string

NonLocalAttr() public méthode

public NonLocalAttr ( string expr, Antlr.Runtime.IToken x, Antlr.Runtime.IToken y ) : void
expr string
x Antlr.Runtime.IToken
y Antlr.Runtime.IToken
Résultat void

QualifiedAttr() public méthode

public QualifiedAttr ( string expr, Antlr.Runtime.IToken x, Antlr.Runtime.IToken y ) : void
expr string
x Antlr.Runtime.IToken
y Antlr.Runtime.IToken
Résultat void

SetAttr() public méthode

public SetAttr ( string expr, Antlr.Runtime.IToken x, Antlr.Runtime.IToken rhs ) : void
expr string
x Antlr.Runtime.IToken
rhs Antlr.Runtime.IToken
Résultat void

SetNonLocalAttr() public méthode

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
Résultat void

Text() public méthode

public Text ( string text ) : void
text string
Résultat void

ToString() public static méthode

public static ToString ( IList chunks ) : string
chunks IList
Résultat string

TranslateAction() public static méthode

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
Résultat IList

TranslateActionChunk() public static méthode

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
Résultat IList

Property Details

rulePropToModelMap public_oe static_oe property

public static IDictionary> rulePropToModelMap
Résultat IDictionary>

thisRulePropToModelMap public_oe static_oe property

public static IDictionary> thisRulePropToModelMap
Résultat IDictionary>

tokenPropToModelMap public_oe static_oe property

public static IDictionary> tokenPropToModelMap
Résultat IDictionary>