I am trying to add name and type to ObjC.stg as attributes of return type. But
I keep getting an error saying that java.util.ArrayList has no such attribute:
type in template context[headerFile if(PARSER)_subtemplate
parserHeaderFile(...) anonymous anonymous
returnScopeInterface if(!ruleDescriptor.isSynPred)_subtemplate
if(ruledescriptor.hasMultipleReturnValues)_subtemplate
if(scope.attributes:{<it.type>;};_subtemplate
So where is it that I need to add type that I haven't done.
I added it here:
ruleDeclarations() ::= <<
<ruleDescriptor.returnScope.attributes:{ a |
<a.type> <a.name>; }>
<if(ruleDescriptor.hasMultipleReturnValues)>
<returnType()> _retval = [[<returnTypeName()> alloc] init];
[_retval setStart:[input LT:1]];<\n>
<else>
<if(ruleDescriptor.hasSingleReturnValue)>
<returnType()> _<ruleDescriptor.singleValueReturnName> =
<initValue(typeName=returnType())>;
<endif>
<endif>
Thanks in advance,
Alan
---
Alan Condit
1085 Tierra Ct.
Woodburn, OR 97071
Email -- [email protected]
Home-Office (503) 982-0906
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.