Exemplo n.º 1
0
 /// <summary>
 /// Creates a Node containing the specified Operator and argument.
 /// This will automatically mark this Node as a TYPE_EXPRESSION
 /// </summary>
 /// <param name="parser"></param>
 /// <param name="op">the string representing an operator</param>
 /// <param name="arg1">the argument to the specified operator</param>
 internal OperatorNode(Operator op, Node arg1)
 {
     _arg1 = arg1;
     _operator = op;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a Node containing the specified Operator and arguments.
 /// This will automatically mark this Node as a TYPE_EXPRESSION
 /// </summary>
 /// <param name="parser"></param>
 /// <param name="op">the string representing an operator</param>
 /// <param name="arg1">the first argument to the specified operator</param>
 /// <param name="arg2">the second argument to the specified operator</param>
 internal OperatorNode(Operator op, Node arg1, Node arg2)
 {
     _arg1 = arg1;
     _arg2 = arg2;
     _operator = op;
 }