Pierre PICARD wrote:
I have a problem using bison 2.3, I read the documentation, but I did not found 
what I was searching for.
Here is my problem :
I'am writing a GLR parser, and I would like to do a semantic check in a 
semantic action that would have the following behavior if the check fails :
- while a deterministic analysis (with only 1 stack) : display a syntax error.
- while an analysis with multiple stacks : simply kills the current stack.
I would prefer to do that in a semantic action instead of during the semantic 
analysis, is it possible ?

I would like to second such a feature request (or something like it).
Several times in the past I have seen that being able to execute some
action while in a multi-stack parsing state would save me lots of work.

I have looked at the Bison source with a view to adding such
functionality.  But what goes on is so convoluted that I have
not been able to spend enough time to figure out how to do what
I would like.

--
Derek M. Jones                              tel: +44 (0) 1252 520 667
Knowledge Software Ltd                      mailto:[EMAIL PROTECTED]
Applications Standards Conformance Testing    http://www.knosof.co.uk


_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to