History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ANTLR-213
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Terence Parr
Reporter: Terence Parr
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ANTLR v3

Do single token insertion and deletion only on those tokens not referenced in actions or rewrite rules

Created: 12/Jan/08 11:58 AM   Updated: 10/May/08 02:28 PM
Component/s: ANTLR Core
Affects Version/s: 3.0.1
Fix Version/s: 3.1


 Description  « Hide
Do single token insertion and deletion only on those tokens not referenced in actions or rewrite rules. This handles nicely literals such as ';' that are never referenced in actions but users sometimes forget them on the input string. These can be handled directly in line in the rule without having to bail out of the rule. Do this later.

As a part of this optimization, do not create rewrites stream objects for tokens and rules not referenced in the rewrites.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Terence Parr - 10/May/08 02:28 PM
Actually,I found a way to do code generation and support code so that labels like x=ID still hold a valid token even if the ID was missing.