
|
If you were logged in you would be able to see more operations.
|
|
|
ANTLR v3
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
|
|
|
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
|
|
Description
|
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
|
Show » |
|