|
Last change
on this file was 20, checked in by chronos, 13 years ago |
- Přidáno: Počáteční návrh editoru a kompilátoru pro i8051.
|
|
File size:
591 bytes
|
| Line | |
|---|
| 1 | unit USourceCode;
|
|---|
| 2 |
|
|---|
| 3 | {$mode delphi}{$H+}
|
|---|
| 4 |
|
|---|
| 5 | interface
|
|---|
| 6 |
|
|---|
| 7 | uses
|
|---|
| 8 | Classes, SysUtils, SpecializedList;
|
|---|
| 9 |
|
|---|
| 10 | type
|
|---|
| 11 | TSourceLine = class
|
|---|
| 12 | LabelName: string;
|
|---|
| 13 | Instruction: string;
|
|---|
| 14 | Parameters: string;
|
|---|
| 15 | Comment: string;
|
|---|
| 16 | end;
|
|---|
| 17 |
|
|---|
| 18 | { TSourceCode }
|
|---|
| 19 |
|
|---|
| 20 | TSourceCode = class
|
|---|
| 21 | Lines: TListObject;
|
|---|
| 22 | constructor Create;
|
|---|
| 23 | destructor Destroy; override;
|
|---|
| 24 | end;
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 | implementation
|
|---|
| 28 |
|
|---|
| 29 | { TSourceCode }
|
|---|
| 30 |
|
|---|
| 31 | constructor TSourceCode.Create;
|
|---|
| 32 | begin
|
|---|
| 33 | Lines := TListObject.Create;
|
|---|
| 34 | end;
|
|---|
| 35 |
|
|---|
| 36 | destructor TSourceCode.Destroy;
|
|---|
| 37 | begin
|
|---|
| 38 | Lines.Free;
|
|---|
| 39 | inherited Destroy;
|
|---|
| 40 | end;
|
|---|
| 41 |
|
|---|
| 42 | end.
|
|---|
| 43 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.