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

Key: ANTLR-111
Type: Improvement Improvement
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

improve return value, parameter action parsing; can't do generics for example

Created: 17/Apr/07 11:00 AM   Updated: 26/Dec/07 12:26 PM
Component/s: None
Affects Version/s: 3.0b7
Fix Version/s: 3.1


 Description  « Hide
Elan Feingold said:

can't seem to use generics in my return parameters, as in:

error_case returns [HashMap<String,String> errorCase]

This generates code like:

public static class error_case_return extends ParserRuleReturnScope {
        public HashMap<String;
        public String> errorCase;
    };

Which, obviously, doesn't compile.


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Terence Parr - 26/Dec/07 12:26 PM
getListOfArgumentsFromAction() fixes this. handles actual and concrete args.