
|
If you were logged in you would be able to see more operations.
|
|
|
ANTLR v3
Created: 28/Dec/07 02:08 PM
Updated: 01/May/08 03:11 PM
|
|
| Component/s: |
ANTLR Core
|
| Affects Version/s: |
3.0.1
|
| Fix Version/s: |
3.1
|
|
|
tree grammar T;
options {
output=AST;
}
poly: ^('+' poly INT) // NO WARNING THAT $poly is AMBIG!!!
| INT
;
example:
parser grammar U;
a : A a {$a.text} | B ;
is it rule text or ref to a's text? It's the enclosing text not rule ref's.
|
|
Description
|
tree grammar T;
options {
output=AST;
}
poly: ^('+' poly INT) // NO WARNING THAT $poly is AMBIG!!!
| INT
;
example:
parser grammar U;
a : A a {$a.text} | B ;
is it rule text or ref to a's text? It's the enclosing text not rule ref's.
|
Show » |
|
a : ID a -> $a | INT ;