[antlr-interest] Memory explosion

David Holroyd dave at badgers-in-foil.co.uk
Tue Sep 25 08:13:30 PDT 2007


On Tue, Sep 25, 2007 at 04:47:11PM +0200, Dominique.Duflos at alcatel-lucent.fr wrote:
> Hi all,
> The parser eats all available memory when parsing the three-character 
> string "N A" using this three-line grammar:
> 
> grammar mml;
> mml     : 'R' ;
> SPACE   : (' ')* ;

What if you have,
  SPACE   : ' '+ ;

?

-- 
http://david.holroyd.me.uk/


More information about the antlr-interest mailing list