help-bison
[Top][All Lists]
Advanced

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

Re: Semantic Predicates (Bison)


From: Hans Åberg
Subject: Re: Semantic Predicates (Bison)
Date: Mon, 2 May 2016 21:08:31 +0200

> On 2 May 2016, at 19:13, Cleverson Ledur <address@hidden> 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.





reply via email to

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