Changeset 52 for trunk/Compiler/Target/Interpretter/UTargetInterpretter.pas
- Timestamp:
- Jun 25, 2012, 2:07:44 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/Target/Interpretter/UTargetInterpretter.pas
r51 r52 6 6 7 7 uses 8 Classes, SysUtils, UTarget, UExecutor, USourceCode, Dialogs ;8 Classes, SysUtils, UTarget, UExecutor, USourceCode, Dialogs, SpecializedList; 9 9 10 10 type … … 20 20 TExecutorInterpretter = class(TExecutor) 21 21 private 22 //procedure SystemAdd(FunctionCall: TFunctionCall); 23 //procedure SystemSub(FunctionCall: TFunctionCall); 24 //procedure SystemMove(FunctionCall: TFunctionCall); 25 //procedure SystemFillChar(FunctionCall: TFunctionCall); 26 22 27 procedure RunCommand(Command: TCommand); 23 28 procedure RunBeginEnd(BeginEnd: TBeginEnd); … … 31 36 function Evaluate(Expression: TExpression): Boolean; 32 37 public 38 Variables: TListObject; 33 39 procedure Run; override; 40 constructor Create; 41 destructor Destroy; override; 34 42 end; 35 43 … … 127 135 procedure TExecutorInterpretter.Run; 128 136 begin 129 ShowMessage(TModuleProgram(TCompiler(TTarget(Target).Compiler).Analyzer.ProgramCode.MainModule).Name);130 137 with TModuleProgram(TCompiler(TTarget(Target).Compiler).Analyzer.ProgramCode.MainModule) do begin 131 138 RunBeginEnd(Body.Code); 132 139 end; 140 end; 141 142 constructor TExecutorInterpretter.Create; 143 begin 144 Variables := TListObject.Create; 145 end; 146 147 destructor TExecutorInterpretter.Destroy; 148 begin 149 Variables.Free; 150 inherited Destroy; 133 151 end; 134 152
Note:
See TracChangeset
for help on using the changeset viewer.