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

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

rule labels generate void type when no return type

Created: 06/Nov/06 06:08 PM   Updated: 30/Mar/07 03:22 PM
Component/s: Java target, ANTLR Core
Affects Version/s: 3.0
Fix Version/s: 3.0b7


 Description  « Hide
tokensSpecOptions
: OPEN_ELEMENT_OPTION
o=id '=' v=optionValue
...
generates

    public void tokensSpecOptions() throws RecognitionException {
        void o = null;

        void v = null;
...

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Terence Parr - 30/Mar/07 03:22 PM
made ANTLR do a quick pass over all labels to remove labels on rules w/o return values. Added unit test.