Esempio n. 1
0
 static SyntaxTreeNode UnaryOperation(Operator op, SyntaxTreeNode argumentExpression)
 {
     return(new ArithmeticOperation(op.Name, argumentExpression));
 }
Esempio n. 2
0
 static bool LookingAtOperator(TextReader input)
 {
     return(Operator.IsOperator(PeekOperator(input)));
 }
Esempio n. 3
0
 static Operator ReadOperator(TextReader input)
 {
     SwallowWhitespace(input);
     return(Operator.Lookup(new string((char)input.Read(), 1)));
 }
Esempio n. 4
0
 static int NextOperatorPrecedence(TextReader input)
 {
     return(Operator.Lookup(PeekOperator(input)).Precedence);
 }