help-bison
[Top][All Lists]
Advanced

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

Re: unknown type in %union{}


From: Simon Richter
Subject: Re: unknown type in %union{}
Date: Mon, 10 Oct 2022 17:13:16 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0

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


reply via email to

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