Ignore:
Timestamp:
Nov 5, 2010, 7:24:45 AM (14 years ago)
Author:
george
Message:
  • Modified: Reorganize parser code to use logical separated functions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/USourceCode.pas

    r2 r4  
    2525  TVariableList = class;
    2626  TFunctionList = class;
    27   TExpressionList = class;
     27  TListExpression = class;
    2828  TExpression = class;
    2929  TFunction = class;
     
    331331    Value: TValue;
    332332    OperatorName: string;
    333     SubItems: TExpressionList;
     333    SubItems: TListExpression;
    334334    Associated: Boolean;
    335335    constructor Create;
    336336    destructor Destroy; override;
    337337    procedure Assign(Source: TExpression);
    338   end;
    339 
    340   TExpressionList = class(TListExpression)
    341     destructor Destroy; override;
    342338  end;
    343339
     
    789785constructor TExpression.Create;
    790786begin
    791   SubItems := TExpressionList.Create;
     787  SubItems := TListExpression.Create;
    792788  SubItems.Count := 2;
    793789  SubItems.OwnsObjects := False;
     
    810806  Variable := Source.Variable;
    811807  SubItems.Assign(Source.SubItems);
    812 end;
    813 
    814 { TExpressionList }
    815 
    816 destructor TExpressionList.Destroy;
    817 begin
    818   inherited;
    819808end;
    820809
Note: See TracChangeset for help on using the changeset viewer.