[antlr-interest] Memory explosion

Martin Probst mail at martin-probst.com
Tue Sep 25 08:12:40 PDT 2007


The SPACE token can be zero length, i.e. it probably produces _a lot_ of
tokens for that rule.

On Tue, 25 Sep 2007 16:47:11 +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 is wrong ?



More information about the antlr-interest mailing list