19 using System.Collections.Generic;
23 using ErrorManagement;
108 get {
return operand; }
109 set { this.operand = value; }
135 this.operand = operand;
151 return v.Visit(
this, o);
158 return this.op.ToString();
Abstract class encapsulate a programming language expression.
Postfix increment operator: i++
This class encapsulates a location in a specific file. Implements an Inmutable pattern. So it can be used in any context, that is his internal fields never change.
Expression Operand
Gets the operand expression of the unary operation
Prefix increment operator: ++i
Bitwise complement operator: ~i
override string ToString()
Location location
Location: Encapsulates in one object the line, column and filename
Encapsulates a unary expression of our programming language.
UnaryOperator
Unary operators
Prefix decrement operator: –i
Logical negation operator: !i
UnaryExpression(Expression operand, UnaryOperator op, Location location)
Constructor of UnaryExpression.
UnaryOperator Operator
Gets the operator of the unary operation
Postfix decrement operator: i–
override Object Accept(Visitor v, Object o)
Accept method of a concrete visitor.