Changeset 31 for trunk/Target


Ignore:
Timestamp:
Feb 18, 2012, 8:02:50 PM (13 years ago)
Author:
chronos
Message:
  • Modified: Renamed classes from Compiler to Target. Interpretter registred as possible and default target.
Location:
trunk/Target
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Target/UTarget.pas

    r30 r31  
    1111type
    1212  TCompilerOptimization = (coNone, coNormal);
     13
     14  TTargetCapability = (tcRun, tcPause, tcStop, tcStepOut, tsStepOver, tsStepInto,
     15    tsRunToCursor, tcCompile, tcBreakpoint);
     16  TTargetCapabilities = set of TTargetCapability;
    1317
    1418  { TTarget }
     
    2933    CompiledExtension: string;
    3034    ProjectFileName: string;
     35    Capabilities: TTargetCapabilities;
    3136    constructor Create; virtual;
    3237    procedure OptimizeSource;
     
    3439    procedure CompileToFile; virtual;
    3540    procedure Run; virtual;
     41    procedure Pause; virtual;
     42    procedure Stop; virtual;
     43    procedure StepOver; virtual;
     44    procedure StepInto; virtual;
     45    procedure StepOut; virtual;
     46    procedure RunToCursor; virtual;
    3647  end;
    3748
     
    168179end;
    169180
    170 
     181procedure TTarget.Pause;
     182begin
     183
     184end;
     185
     186procedure TTarget.Stop;
     187begin
     188
     189end;
     190
     191procedure TTarget.StepOver;
     192begin
     193
     194end;
     195
     196procedure TTarget.StepInto;
     197begin
     198
     199end;
     200
     201procedure TTarget.StepOut;
     202begin
     203
     204end;
     205
     206procedure TTarget.RunToCursor;
     207begin
     208
     209end;
    171210
    172211end.
  • trunk/Target/UTargetC.pas

    r30 r31  
    1919  end;
    2020
     21
    2122implementation
    2223
     
    2930  SourceExtension := '.c';
    3031  CompiledExtension := '.exe';
     32  Capabilities := [tcCompile, tcRun];
    3133  {$IFDEF Windows}
    3234  CompilerPath := 'c:\Program Files\MinGW\bin\gcc.exe -o %1:s';
  • trunk/Target/UTargetDelphi.pas

    r30 r31  
    2727  SourceExtension := '.pas';
    2828  CompiledExtension := '.exe';
     29  Capabilities := [tcCompile, tcRun];
    2930  {$IFDEF Windows}
    3031  CompilerPath := 'c:\Program Files\Embarcadero\RAD Studio\9.0\bin\DCC32.EXE';
  • trunk/Target/UTargetInterpretter.pas

    r30 r31  
    66
    77uses
    8   Classes, SysUtils, Dialogs, Forms, StrUtils;
     8  Classes, SysUtils, Dialogs, Forms, StrUtils, UTarget;
    99
    1010type
     
    2828  { TTargetInterpretter }
    2929
    30   TTargetInterpretter = class
     30  TTargetInterpretter = class(TTarget)
    3131  private
    3232    FCellSize: Integer;
     
    6464    procedure Reset;
    6565    procedure SingleStep;
    66     procedure Run;
    67     procedure Pause;
    68     procedure Stop;
     66    procedure Run; override;
     67    procedure Pause; override;
     68    procedure Stop; override;
    6969    constructor Create;
    7070    destructor Destroy; override;
     
    284284constructor TTargetInterpretter.Create;
    285285begin
     286  Name := 'Interpretter';
     287  Capabilities := [tcRun, tcPause, tcStop];
    286288  MemorySize := 30000;
    287289  CellSize := 256;
  • trunk/Target/UTargetPHP.pas

    r30 r31  
    2828  Name := 'PHP';
    2929  SourceExtension := '.php';
     30  Capabilities := [tcCompile, tcRun];
    3031  {$IFDEF Windows}
    3132  CompilerPath := 'c:\Program Files\PHP\php.exe';
Note: See TracChangeset for help on using the changeset viewer.