Ignore:
Timestamp:
Aug 9, 2010, 3:05:26 PM (14 years ago)
Author:
george
Message:

Added support for loop for-to-do.
System types and functions are not generated to output code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DelphiToC/UPascalSource.pas

    r48 r50  
    9191  end;
    9292
     93  { TForToDo }
     94
    9395  TForToDo = class(TCommand)
    9496    ControlVariable: TVariable;
     
    9698    Stop: TExpression;
    9799    Command: TCommand;
     100    constructor Create;
     101    destructor Destroy; override;
    98102  end;
    99103
     
    149153
    150154  TType = class
     155    System: Boolean;
    151156    Parent: TTypeList;
    152157    Name: string;
     
    243248  TFunction = class(TCommonBlock)
    244249  public
     250    System: Boolean;
    245251    HaveResult: Boolean;
    246252    Parameters: TParameterList;
     
    641647end;
    642648
     649{ TForToDo }
     650
     651constructor TForToDo.Create;
     652begin
     653  inherited;
     654  Start := TExpression.Create;
     655  Stop := TExpression.Create;
     656end;
     657
     658destructor TForToDo.Destroy;
     659begin
     660  Start.Free;
     661  Stop.Free;;
     662  inherited Destroy;
     663end;
     664
    643665end.
    644666
Note: See TracChangeset for help on using the changeset viewer.