When I have a rule of the form

"rule returns [std::vector<int> foo]
..."

the generated code for that rule will start with

"std::vector<int> foo = NULL;"

which will (obviously) not compile. I've modified the relevant .stg to 
prevent it generating initialisation code for return values (declaration 
only), and not encountered any issues in my grammars thus far.

Richard

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to