Ignore:
Timestamp:
Jul 18, 2017, 12:53:15 AM (7 years ago)
Author:
chronos
Message:
  • Added: Calculate source X,Y position. Show that position in error message.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/interpreter/interpreter4/Execute.pas

    r104 r107  
    301301  end else
    302302  if Execution^.Func^.Name = 'Read' then begin
    303     ExecutionContextCurrent^.VariableValues.GetByName('Output')^.ValueChar := InnerText[InnerTextPos];
    304     InnerTextPos := InnerTextPos + 1;
     303    ExecutionContextCurrent^.VariableValues.GetByName('Output')^.ValueChar := InnerText[InnerTextPos.Index];
     304    InnerTextPos.Index := InnerTextPos.Index + 1;
    305305  end else
    306306  if Execution^.Func^.Name = 'Eof' then begin
    307307    ExecuteBuildInSetResult(Execution, 'Boolean');
    308     ExecutionContextCurrent^.VariableValues.GetByName('Result')^.ValueBoolean := InnerTextPos > Length(InnerText);
     308    ExecutionContextCurrent^.VariableValues.GetByName('Result')^.ValueBoolean := InnerTextPos.Index > Length(InnerText);
    309309  end else ShowError('Unsupported build-in function.');
    310310end;
Note: See TracChangeset for help on using the changeset viewer.