
|
If you were logged in you would be able to see more operations.
|
|
|
ANTLR v3
Created: 06/Nov/06 06:25 PM
Updated: 10/Apr/07 06:15 PM
|
|
| Component/s: |
ANTLR Core
|
| Affects Version/s: |
3.0
|
| Fix Version/s: |
3.0b7
|
|
|
tree building problem. When I build a rule like this in ANTLR3:
A^^ (B C^^ D)+
And feed it with:
A B C D B C D
I get the following ast:
(C (C A B D) B D)
However when I do a similar thing in ANTLR2:
A^ (B C^ D)+
And feed it with:
A B C D B C D
I get the following ast:
(C (C (A B) D B) D)
|
|
Description
|
tree building problem. When I build a rule like this in ANTLR3:
A^^ (B C^^ D)+
And feed it with:
A B C D B C D
I get the following ast:
(C (C A B D) B D)
However when I do a similar thing in ANTLR2:
A^ (B C^ D)+
And feed it with:
A B C D B C D
I get the following ast:
(C (C (A B) D B) D) |
Show » |
|