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, Юрушкин Михаил <[email protected]> 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 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 -~----------~----~----~----~------~----~------~--~---
