The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
ArithmeticalOperation.cs
Go to the documentation of this file.
1 using TypeSystem;
2 using AST;
3 using ErrorManagement;
4 
5 namespace TypeSystem.Operations {
6 
12  public abstract class ArithmeticalOperation : TypeSystemOperation {
23  public static ArithmeticalOperation Create(UnaryOperator unaryOperator, MethodType methodAnalyzed, bool showErrorMessage, Location location) {
24  return new UnaryArithmeticalOperation(unaryOperator, methodAnalyzed, showErrorMessage, location);
25 
26  }
38  public static ArithmeticalOperation Create(TypeExpression secondOperand, System.Enum binaryOperator, MethodType methodAnalyzed, bool showErrorMessage, Location location) {
39 
40  return new BinaryArithmeticalOperation(secondOperand, binaryOperator, methodAnalyzed, showErrorMessage, location);
41  }
42 
43  }
44 
45 }
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.
Definition: Location.cs:24
This class represent the entry wnen sending a message to an operation object derived from TypeExpress...
Class Unary AritmethicalOperation Implements: Factory method Role:
Abstract class that represents all different types.
static ArithmeticalOperation Create(TypeExpression secondOperand, System.Enum binaryOperator, MethodType methodAnalyzed, bool showErrorMessage, Location location)
A factory Method to create BinaryAritmeticaslOperation objects Implements a factory method...
UnaryOperator
Unary operators
This class instantiates elements of type UnaryArithmeticalOperation, and BinaryArithmeticalOperation...
Representa a method type.
Definition: MethodType.cs:37
static ArithmeticalOperation Create(UnaryOperator unaryOperator, MethodType methodAnalyzed, bool showErrorMessage, Location location)
A factory Method to create UnaryAritmeticaslOperation objects Implements a factory method...