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

Key: ANTLR-98
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
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

rewrite element ID list differs in size from other elements

Created: 23/Mar/07 01:43 PM   Updated: 20/Apr/07 12:58 PM
Component/s: ANTLR Core
Affects Version/s: 3.0b6
Fix Version/s: 3.0b8


 Description  « Hide
grammar:
--BEGIN
grammar T;
options {
    language = Java;
    output = AST;
}

r
    : 'int' ID (',' ID)* -> ^('int' ID)+
    ;

ID : 'a'..'z' + ;
WS: (' ' | '\n' | '\t')+ {$channel = HIDDEN;};
--END

input:
--BEGIN
int foo, bar, gnurz
--END

throws an
Exception in thread "main" java.lang.RuntimeException: rewrite element ID list
differs in size from other elements


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Terence Parr - 20/Apr/07 12:58 PM
Fixed with new rewrite mechanism.