[antlr-interest] c target - rhow can i obtain retval values

Jim Idle jimi at temporal-wave.com
Sun Sep 20 08:36:15 PDT 2009


Returns and so on must be pointers to things as the return of a rule  
is a struct. You must use $ to access them.

Please search for many past posts about this.

Jim

On Sep 20, 2009, at 8:12 AM, Юрушкин Михаил  
<yurushkin at rambler.ru> wrote:

> Good day,
> I use C target:
>
>
>> char_selector[FortranDeclarations *decls]
> returns [TypeParam *len, TypeParam *kind]
>
> len, kind - return values.
> but how can i obtain them vaues in grammar?
>
> i.e.
>> len = new TypeParam
>
> is not correct, because result .C file contains only "retval" variable
> (not len).
>
>
> -- 
> Best regards,
> Michael
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address


More information about the antlr-interest mailing list