Changeset 46 for branches/DelphiToC/Analyze/UPascalParser.pas
- Timestamp:
- Aug 9, 2010, 11:22:45 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DelphiToC/Analyze/UPascalParser.pas
r45 r46 95 95 96 96 // Recovery: try to find nearest same code 97 while FNextToken <> Codedo97 while (FNextToken <> Code) and (FNextTokenType <> ttEndOfFile) do 98 98 GetNextToken; 99 99 end; … … 482 482 ErrorMessage(SUnknownIdentifier, [ReadCode]); 483 483 end; 484 end else begin 484 end else 485 if FNextToken = ';' then 486 else begin 485 487 Result := nil; 486 488 ErrorMessage(SIllegalExpression, [ReadCode]); … … 576 578 with SourceCode do begin 577 579 Expect('begin'); 578 while FNextToken <> 'end'do begin580 while (FNextToken <> 'end') and (FNextTokenType <> ttEndOfFile) do begin 579 581 Commands.Add(nil); 580 582 NewCommand := ParseCommand(CommonBlock);
Note:
See TracChangeset
for help on using the changeset viewer.