Ignore:
Timestamp:
Jun 25, 2012, 2:07:44 PM (12 years ago)
Author:
chronos
Message:
  • Modified: Updated Common package to version 0.7.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/Target/Interpretter/UTargetInterpretter.pas

    r51 r52  
    66
    77uses
    8   Classes, SysUtils, UTarget, UExecutor, USourceCode, Dialogs;
     8  Classes, SysUtils, UTarget, UExecutor, USourceCode, Dialogs, SpecializedList;
    99
    1010type
     
    2020  TExecutorInterpretter = class(TExecutor)
    2121  private
     22    //procedure SystemAdd(FunctionCall: TFunctionCall);
     23    //procedure SystemSub(FunctionCall: TFunctionCall);
     24    //procedure SystemMove(FunctionCall: TFunctionCall);
     25    //procedure SystemFillChar(FunctionCall: TFunctionCall);
     26
    2227    procedure RunCommand(Command: TCommand);
    2328    procedure RunBeginEnd(BeginEnd: TBeginEnd);
     
    3136    function Evaluate(Expression: TExpression): Boolean;
    3237  public
     38    Variables: TListObject;
    3339    procedure Run; override;
     40    constructor Create;
     41    destructor Destroy; override;
    3442  end;
    3543
     
    127135procedure TExecutorInterpretter.Run;
    128136begin
    129   ShowMessage(TModuleProgram(TCompiler(TTarget(Target).Compiler).Analyzer.ProgramCode.MainModule).Name);
    130137  with TModuleProgram(TCompiler(TTarget(Target).Compiler).Analyzer.ProgramCode.MainModule) do begin
    131138    RunBeginEnd(Body.Code);
    132139  end;
     140end;
     141
     142constructor TExecutorInterpretter.Create;
     143begin
     144  Variables := TListObject.Create;
     145end;
     146
     147destructor TExecutorInterpretter.Destroy;
     148begin
     149  Variables.Free;
     150  inherited Destroy;
    133151end;
    134152
Note: See TracChangeset for help on using the changeset viewer.