Hi,

On 10/10/22 13:37, andreas graeper via Users list for the GNU Bison parser generator wrote:

i try to use an object ast.h/c/o and want a member of %union{ .. ast*a; ..
} to be a pointer to a type defined inthere. The header 'ast.h' is included
inside %{ .. %}

These are inserted too late (code in "%{ ... %}" can use YYSTYPE, so the union definition is before that). Use "%code requires { ... }" for these includes.

   Simon

Attachment: OpenPGP_0xEBF67A846AABE354.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

  • unknown ... andreas graeper via Users list for the GNU Bison parser generator
    • Re:... Simon Richter

Reply via email to