bug-bison
[Top][All Lists]
Advanced

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

Re: Enhancement request: enabling Variant in C parsers


From: Hans Åberg
Subject: Re: Enhancement request: enabling Variant in C parsers
Date: Thu, 23 Aug 2018 18:23:17 +0200

> On 23 Aug 2018, at 13:14, Akim Demaille <address@hidden> wrote:
> 
> ‘something’ is '%define api.value.type'.

When used, the macro still overrides it, which might cause confusion if one 
happens to use both (like the old definition happens to linger). That is,
  %define api.value.type {a_type}
produces in .hh parser class:
  #ifndef YYSTYPE
    /// Symbol semantic values.
    typedef a_type semantic_type;
  #else
    typedef YYSTYPE semantic_type;
  #endif




reply via email to

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