Ejemplo n.º 1
0
        private void EvaluateExpressionReference(T1RuntimeVairableReference expression)
        {
            if (expression.Scope.VariableTable[expression.VariableId].VariableType != expression.VariableType)
            {
                throw new Exception("Runtime error: type mismatch");
            }

            ExpressionType   = expression.VariableType;
            ExpressionResult = expression.Scope.VariableTable[expression.VariableId].Value;
        }
Ejemplo n.º 2
0
 public T1InstructionAssignment(T1RuntimeVairableReference variable, T1ExpressionItem expression) : base(T1InstructionType.Assignment, variable)
 {
     this.variable   = variable;
     this.expression = expression;
 }