I will confess ignorance about these blocks; these are grammars that were
originally used by plain yacc and were updated years ago to work with
bison, only adding minimal bison-specific elements. So far, all newer bison
versions have done is reduced S/R conflicts, so the only "fixes" needed
have been to update the %expect directives.

However, because these %code blocks use a plain } as end delimiter, they
inspect their contents, and will not allow an open namespace definition
inside them (the ending } is seen as the namespace block end, not the %code
block end).



On 15 August 2013 12:06, Valentin Tolmer <[email protected]> wrote:

> Just a shot in the dark, but have you tried placing the includes/namespace
> in a "%code requires" or a "%code top" block?
>

Reply via email to