Ignore:
Timestamp:
Jan 18, 2018, 2:36:23 PM (7 years ago)
Author:
chronos
Message:
  • Added: Load/Save example source code from/to file instead of hardcoded text in application source code.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/easy compiler/USourceGenerator.pas

    r149 r150  
    9191    end else
    9292    if Name = 'assign' then begin
     93      if TSourceReference(Parameters[0]) is TSourceReferenceArray then
     94        Result := Result + IndentStr + 'SetLength(' + TSourceReferenceArray(Parameters[0]).ArrayRef.Name +
     95          ', ' + GenerateRef(TSourceReferenceArray(Parameters[0]).Index) + ' + 1);' + LineEnding;
    9396      Result := Result + IndentStr + GenerateRef(TSourceReference(Parameters[0])) + ' := ' +
    9497        GenerateRef(TSourceReference(Parameters[1])) + ';' + LineEnding;
Note: See TracChangeset for help on using the changeset viewer.