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 Item Group:  Software
Status:  Fixed Assigned to:  cederberg
Open/Closed:  Closed

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

Version 1.2 has now been released. Closing this bug.

Per Cederberg <cederberg>
Project 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>
Project 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>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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.

 

 

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2003-06-10 cederberg Open/ClosedOpen (Error - Not Found)
2003-06-10 cederberg StatusNone (Error - Not Found)

Back to the top


Powered by Savane 3.9