source: trunk/Compiler/Modules/Delphi/ModuleDelphi.pas

Last change on this file was 75, checked in by chronos, 6 months ago
  • Modified: Removed U prefix from unit names.
  • Modified: Updated Common package.
File size: 929 bytes
Line 
1unit ModuleDelphi;
2
3interface
4
5uses
6 Classes, SysUtils, Target, Executor, ModularSystem;
7
8type
9
10 { TExecutorDelphi }
11
12 TExecutorDelphi = class(TExecutor)
13 procedure Run; override;
14 end;
15
16 { TModuleDelphi }
17
18 TModuleDelphi = class(TModule)
19 constructor Create(AOwner: TComponent); override;
20 procedure DoInstall; override;
21 procedure DoUninstall; override;
22 end;
23
24
25implementation
26
27uses
28 ProducerDelphi, CompilerAPI;
29
30resourcestring
31 SDelphi = 'Delphi';
32
33{ TModuleDelphi }
34
35constructor TModuleDelphi.Create(AOwner: TComponent);
36begin
37 inherited;
38 Identification := 'Delphi';
39 Title := SDelphi;
40end;
41
42procedure TModuleDelphi.DoInstall;
43begin
44 TCompilerAPI(API).RegisterConvertor(TProducerPascal);
45 inherited;
46end;
47
48procedure TModuleDelphi.DoUninstall;
49begin
50 TCompilerAPI(API).UnregisterConvertor(TProducerPascal);
51 inherited;
52end;
53
54{ TExecutorDelphi }
55
56procedure TExecutorDelphi.Run;
57begin
58
59end;
60
61end.
62
Note: See TracBrowser for help on using the repository browser.