[antlr-interest] Antlr could not analyze decision - intermittent

David Holroyd dave at badgers-in-foil.co.uk
Tue Jan 22 13:16:54 PST 2008


On Wed, Jan 23, 2008 at 07:53:07AM +1300, Gavin Lambert wrote:
> At 07:33 23/01/2008, Jon Schewe wrote:
> > I get the following error 5 out of 6 times when I run antlr on the
> > same grammar file without changing anything.  Why don't I get the
> > error everytime?  This makes it very hard to debug if my changes
> > will fix anything.
> 
> I could be wrong, but I think it has a timeout for 
> generating/processing the DFA.  If it hits the timeout without 
> finishing, then you get the error, otherwise it's able to 
> continue.

Indeed!

Use the

  -Xconversiontimeout <n>

command-line option to allow ANTLR work at the problem for longer.
(Sorry, I don't recall if the argument is in seconds or milliseconds.)


ta,
dave

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


More information about the antlr-interest mailing list