help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: too many gotos


From: Nick Chapman
Subject: Re: too many gotos
Date: Wed, 13 Oct 2004 12:17:14 +0000


> Since the `gotos' occur in the actions rather than the grammar rules,
> they are a matter of semantics rather than syntax.  Therefore,
> it's quite likely that eliminating them won't be too tricky.
>
> I've found that it's always possible to eliminate `gotos' by
> putting code into functions, wrapping it in conditionals, or
> both.


Thank you for your answer. But you misunderstand my problem.

There are no gotos in the actions. In fact I have no actions yet.
The gotos I am referring to are the LR-parsing table gotos, automatically
generated by bison.

If you have the sources for bison 1.875, see lalr.c
My grammar is triggering the abort() in set_goto_map().

Nick.


-- 
Nick Chapman, Amadido Limited. address@hidden
34, St. Mary's Road, Harefield, Middlesex, UB9 6AD, UK.
+44 1895 473691 (work)  +44 7966 421391 (mobile)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]