Changeset 71 for branches/Transpascal/Compiler/Analyze/UParser.pas
- Timestamp:
- Oct 19, 2010, 1:11:59 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Transpascal/Compiler/Analyze/UParser.pas
r70 r71 35 35 CodeStreamPosition: integer; 36 36 CodePosition: TPoint; 37 LastTokenPosition: TPoint; 37 LastTokenEnd: TPoint; 38 LastTokenStart: TPoint; 38 39 SourceCodeText: TStringList; 39 40 function IsAlphanumeric(Character: char): boolean; … … 74 75 begin 75 76 if Assigned(FOnErrorMessage) then 76 FOnErrorMessage(Format(Text, Arguments), LastToken Position, FileName);77 FOnErrorMessage(Format(Text, Arguments), LastTokenStart, FileName); 77 78 end; 78 79 … … 80 81 begin 81 82 Log('Expected: ' + Code + ' Readed: ' + FNextToken); 82 if FNextToken <> Code then 83 begin83 if FNextToken <> Code then begin 84 //ReadCode; 84 85 ErrorMessage(SExpectedButFound, [Code, FNextToken]); 85 86 … … 185 186 DoubleSpecChar: array[0..6] of string = (':=', '..', '<=', '>=', '<>', '+=', '-='); 186 187 begin 187 LastTokenPosition := CodePosition; 188 LastTokenStart := LastTokenEnd; 189 LastTokenEnd := CodePosition; 188 190 FNextToken := ''; 189 191 FNextTokenType := ttNone;
Note:
See TracChangeset
for help on using the changeset viewer.