public OperatorInfo(string lexeme, OperatorArity arity, int priority, OperatorAssociativity associativity = OperatorAssociativity.LeftToRight)
 {
     this.Lexeme        = lexeme;
     this.Arity         = arity;
     this.Priority      = priority;
     this.Associativity = associativity;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new instance of the Operator class.
 /// </summary>
 ///
 /// <param name="opArity">Arity of the operator.</param>
 /// <param name="symbol">Operator symbol.</param>
 /// <param name="opType">Operator type.</param>
 public Operator(OperatorArity opArity, string symbol, OperatorType opType)
 {
     this.arity  = opArity;
     this.symbol = symbol;
     this.type   = opType;
 }