|
Last change
on this file was 11, checked in by george, 16 years ago |
- Modified: Definition tree is now separated from data. This was needed for implementation of repeated fields.
|
|
File size:
496 bytes
|
| Line | |
|---|
| 1 | unit UParser;
|
|---|
| 2 |
|
|---|
| 3 | {$mode delphi}{$H+}
|
|---|
| 4 |
|
|---|
| 5 | interface
|
|---|
| 6 |
|
|---|
| 7 | uses
|
|---|
| 8 | Classes, DateUtils;
|
|---|
| 9 |
|
|---|
| 10 | type
|
|---|
| 11 | { TParser }
|
|---|
| 12 | TParser = class
|
|---|
| 13 | WhiteSpaces: string;
|
|---|
| 14 | Text: string;
|
|---|
| 15 | Index: Integer;
|
|---|
| 16 | function CheckNext(Text: string; Shift: Boolean = False): Boolean;
|
|---|
| 17 | constructor Create;
|
|---|
| 18 | end;
|
|---|
| 19 |
|
|---|
| 20 | implementation
|
|---|
| 21 |
|
|---|
| 22 | { TParser }
|
|---|
| 23 |
|
|---|
| 24 | function TParser.CheckNext(Text: string; Shift: Boolean): Boolean;
|
|---|
| 25 | begin
|
|---|
| 26 |
|
|---|
| 27 | end;
|
|---|
| 28 |
|
|---|
| 29 | constructor TParser.Create;
|
|---|
| 30 | begin
|
|---|
| 31 | WhiteSpaces := ' '#9#10#13;
|
|---|
| 32 | end;
|
|---|
| 33 |
|
|---|
| 34 | end.
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.