help-bison
[Top][All Lists]
Advanced

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

Re: Question about GLR parsing with bison 2.3


From: Derek M Jones
Subject: Re: Question about GLR parsing with bison 2.3
Date: Tue, 03 Jun 2008 18:45:27 +0100
User-agent: Thunderbird 2.0.0.9 (Windows/20071031)


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:address@hidden
Applications Standards Conformance Testing    http://www.knosof.co.uk




reply via email to

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