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