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