bugGrammatica - Bugs: bug #3929, Parser: Unexpected token error...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #3929: Parser: Unexpected token error messages may be misleading

Submitter:  Per Cederberg <cederberg>
Submitted:  Tue 10 Jun 2003 08:53:43 AM UTC
   
 
Severity:  1 - Minor Priority:  1 - Later
Item Group:  Software Status:  Fixed
Assigned to:  cederberg Open/Closed:  Closed

Discussion

Tue 10 Jun 2003 04:53:42 PM UTC, comment #2: 

Version 1.2 has now been released. Closing this bug.

Per Cederberg <cederberg>
Group administrator
Tue 10 Jun 2003 12:32:15 PM UTC, comment #1: 

This has been fixed by adding a check for the lookahead token also for the fallback alternative. The fix has been added to both the Java and C# parsers.

Per Cederberg <cederberg>
Group administrator
Tue 10 Jun 2003 08:53:43 AM UTC, original submission:  

The unexpected token error messages may be misleading in some cases. When a production has a fallback alternative, it will always be selected whether or not it matches the current token or not. This will result in a unexpected token error (which is correct) but with only the expected tokens from the fallback alternative listed (which is incorrect).

This can be easily rectified by checking the next tokens also for the fallback alternative. This error is present in both the Java and C# parsers.

Per Cederberg <cederberg>
Group administrator

 

Attached Files

This item currently has no attached files.

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

History

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2003-06-10 cederberg Open/ClosedOpen None
2003-06-10 cederberg StatusNone None

Back to the top

Powered by Savane 3.16-ed84.
Corresponding source code