Changeset 78 for branches/Transpascal/Compiler/Analyze/UParser.pas
- Timestamp:
- Oct 22, 2010, 11:34:06 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Transpascal/Compiler/Analyze/UParser.pas
r77 r78 58 58 function IsIdentificator(Text: string): boolean; 59 59 function IsKeyword(Text: string): boolean; 60 function IsString(Text: string): Boolean; 60 61 function IsOperator(Text: string): boolean; 61 function Read Code: string;62 function ReadToken: string; 62 63 function NextToken: string; 63 64 function NextTokenType: TTokenType; … … 97 98 // Recovery: try to find nearest same code 98 99 while (NextToken <> Code) and (NextTokenType <> ttEndOfFile) do 99 Read Code;100 end; 101 Read Code;100 ReadToken; 101 end; 102 ReadToken; 102 103 end; 103 104 … … 141 142 if Keywords[I] = Text then 142 143 Result := True; 144 end; 145 146 function TBaseParser.IsString(Text: string): Boolean; 147 begin 148 143 149 end; 144 150 … … 364 370 end; 365 371 366 function TBaseParser.Read Code: string;372 function TBaseParser.ReadToken: string; 367 373 begin 368 374 if TokenIndex < Tokens.Count then begin
Note:
See TracChangeset
for help on using the changeset viewer.