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

Key: ANTLR-202
Type: Bug Bug
Status: Closed Closed
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

no warning on ambiguous reference to self-recursive rule reference

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


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



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Terence Parr - 30/Apr/08 04:06 PM
also warn on:

a : ID a -> $a | INT ;