[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with use of headers for multiple grammars in one source (an
From: |
Tim Van Holder |
Subject: |
Re: Problems with use of headers for multiple grammars in one source (and C++ compilation issues) |
Date: |
Fri, 16 Aug 2013 10:52:28 +0200 |
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 <address@hidden> wrote:
> Just a shot in the dark, but have you tried placing the includes/namespace
> in a "%code requires" or a "%code top" block?
>