Changeset 107 for branches/interpreter/interpreter4/Execute.pas
- Timestamp:
- Jul 18, 2017, 12:53:15 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/interpreter/interpreter4/Execute.pas
r104 r107 301 301 end else 302 302 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; 305 305 end else 306 306 if Execution^.Func^.Name = 'Eof' then begin 307 307 ExecuteBuildInSetResult(Execution, 'Boolean'); 308 ExecutionContextCurrent^.VariableValues.GetByName('Result')^.ValueBoolean := InnerTextPos > Length(InnerText);308 ExecutionContextCurrent^.VariableValues.GetByName('Result')^.ValueBoolean := InnerTextPos.Index > Length(InnerText); 309 309 end else ShowError('Unsupported build-in function.'); 310 310 end;
Note:
See TracChangeset
for help on using the changeset viewer.