Esempio n. 1
0
 public static OperatorDefinition CreateIndex([Localizable(false)] string startText, TokenType secondaryTokenType, TokenType argSeperator, TokenType endText, int precedence)
 {
     return(SpecialOperatorDefinition.Create(startText, secondaryTokenType, precedence, SpecialOperatorType.Index, argSeperator, endText, 1, int.MaxValue));
 }
Esempio n. 2
0
 public static OperatorDefinition CreatePipeline([Localizable(false)] string text, int precedence)
 {
     return(SpecialOperatorDefinition.Create(text, precedence, SpecialOperatorType.Pipeline));
 }
Esempio n. 3
0
 public static OperatorDefinition CreateMethod([Localizable(false)] string startText, TokenType argSeperator, TokenType endText, int precedence)
 {
     return(SpecialOperatorDefinition.Create(startText, precedence, SpecialOperatorType.MethodCall, argSeperator, endText, 0, int.MaxValue));
 }
Esempio n. 4
0
 public static OperatorDefinition CreateMemberAccess([Localizable(false)] string text, int precedence)
 {
     return(SpecialOperatorDefinition.Create(text, precedence, SpecialOperatorType.PropertyAccess));
 }