> On 2 May 2016, at 19:13, Cleverson Ledur <cleversonle...@gmail.com> wrote:

> I am using arbitrary predicates to verify semantically the previous
> declarations and decide which rule use in Bison (GLR parser).
> 
> My question is: Is it possible to access a value ($1,$2...) inside the
> arbitrary predicate? Or, is it possible to access the stack to perform
> semantic analysis?

When the GLR parser splits, the actions are not executed until the merge, so 
that is not currently possible. It has been discussed to implement as well 
actions that are executed immediately, but that was long ago.



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

Reply via email to