Ignore:
Timestamp:
Aug 5, 2010, 8:47:21 AM (14 years ago)
Author:
george
Message:

Modified parsing mechanism of some blocks.
Error messages rewrited as resource strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DelphiToC/UPascalSource.pas

    r36 r38  
    66
    77uses
    8   Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
     8  SysUtils, Variants, Classes, Graphics, Controls, Forms,
    99  Dialogs, StdCtrls, Contnrs;
    1010
     
    4545
    4646  TCommand = class
    47     Parent: TObject;
    48 
     47    CommonBlock: TCommonBlock;
    4948  end;
    5049
     
    6261  TBeginEnd = class(TCommand)
    6362    Commands: TCommandList;
     63    CommonBlock: TCommonBlock;
    6464    procedure Clear;
    6565    constructor Create;
     
    201201
    202202  TExpression = class
     203    CommonBlock: TCommonBlock;
    203204    NodeType: TNodeType;
    204205    Variable: TVariable;
     
    377378  Methods.Parent := Self;
    378379  Code := TBeginEnd.Create;
     380  Code.CommonBlock := Self;
    379381end;
    380382
     
    580582constructor TCaseOfEnd.Create;
    581583begin
     584  inherited;
    582585  Branches := TObjectList.Create
    583586end;
Note: See TracChangeset for help on using the changeset viewer.