[antlr-interest] Returning an array type

Gavin Lambert antlr at mirality.co.nz
Mon Oct 15 12:10:16 PDT 2007


At 19:43 15/10/2007, Gavin Lambert wrote:
 > >foo returns [byte[] outBytes] : ... ;
 >
 >Not at the moment, no.  ANTLR currently swallows the brackets.

I just came across something in the wiki that suggested the 
following, which might work for you:

   foo returns [byte\[\] outBytes] : ... ;



More information about the antlr-interest mailing list