| Line | |
|---|
| 1 | unit USourceCodePascal;
|
|---|
| 2 |
|
|---|
| 3 | interface
|
|---|
| 4 |
|
|---|
| 5 | uses
|
|---|
| 6 | Generics.Collections, USourceCode;
|
|---|
| 7 |
|
|---|
| 8 | type
|
|---|
| 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 |
|
|---|
| 26 | implementation
|
|---|
| 27 |
|
|---|
| 28 | { TBeginEnd }
|
|---|
| 29 |
|
|---|
| 30 | constructor TBeginEnd.Create;
|
|---|
| 31 | begin
|
|---|
| 32 | Commands := TObjectList<TCommand>.Create;
|
|---|
| 33 | end;
|
|---|
| 34 |
|
|---|
| 35 | end.
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.