[antlr-interest] Can "returns" return an aggregate?

Bob temporaryemail at comcast.net
Fri May 28 17:06:21 PDT 2010


Is there a way to return an aggregate ?

 

struct A { int m; double n; };

extern struct A foo(void);

 

myrule returns [struct A a] 

    : X

     { $a = foo(); }

  ;



More information about the antlr-interest mailing list