source: branches/dcomp/CmdLine/Compiler/USourceCodePascal.pas

Last change on this file was 94, checked in by chronos, 8 years ago
  • Added: Source code class.
File size: 498 bytes
Line 
1unit USourceCodePascal;
2
3interface
4
5uses
6 Generics.Collections, USourceCode;
7
8type
9 TCommand = class
10 Name: string;
11 end;
12
13 TFunctionCall = class(TCommand)
14
15 end;
16
17 TBeginEnd = class(TCommand)
18 Commands: TObjectList<TCommand>;
19 constructor Create;
20 end;
21
22 TSourceCodePascal = class(TSourceCode)
23 Code: TBeginEnd;
24 end;
25
26implementation
27
28{ TBeginEnd }
29
30constructor TBeginEnd.Create;
31begin
32 Commands := TObjectList<TCommand>.Create;
33end;
34
35end.
Note: See TracBrowser for help on using the repository browser.