/// <summary>
 /// Initialize a new instance of <see cref="MethodInterpreter"/>
 /// </summary>
 /// <param name="methodDeclaration">the method declaration</param>
 /// <param name="debugMode">Defines if the debug mode is enabled</param>
 internal MethodInterpreter(AlgorithmObject methodDeclaration, bool debugMode)
     : base(debugMode)
 {
     MethodDeclaration = methodDeclaration;
 }
 public TokenEvaluatorResult(SyntaxTreeTokenType currentSyntaxTreeTokenType, AlgorithmObject algorithmObject)
     : this(currentSyntaxTreeTokenType, TokenType.Unknow, algorithmObject)
 {
 }
 public TokenEvaluatorResult(SyntaxTreeTokenType currentSyntaxTreeTokenType, TokenType nextExpectedToken, AlgorithmObject algorithmObject)
 {
     CurrentSyntaxTreeTokenType = currentSyntaxTreeTokenType;
     NextExpectedToken          = nextExpectedToken;
     AlgorithmObject            = algorithmObject;
 }
Esempio n. 4
0
 /// <summary>
 /// Initialize a new instance of <see cref="Error"/>
 /// </summary>
 /// <param name="exception">The exception thrown</param>
 /// <param name="algorithmObject">The algorithm object where the problem comes</param>
 public Error(Exception exception, AlgorithmObject algorithmObject)
     : this(exception)
 {
     AlgorithmObjectId = algorithmObject.Id;
 }