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

Key: ANTLR-15
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

tree construction problem

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


 Description  « Hide
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)

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Terence Parr - 10/Apr/07 06:15 PM
Added a unit test, but it's apparently no longer a problem.