[Top][All Lists]

[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 10:34:47 +0200

> On 23 Aug 2018, at 07:34, Akim Demaille <address@hidden> wrote:
>> Le 21 août 2018 à 10:46, Hans Åberg <address@hidden> a écrit :
>>> On 19 Aug 2018, at 17:23, Akim Demaille <address@hidden> wrote:
>>>>> I would strongly suggest that you look at the examples/ in Bison, the C++
>>>>> calculator
>>>> I did look at it - this example scared me off c++ parsers :-(
>>> Really???  Then I failed.  Can you be more specific?
>> I noticed: It does not have a Makefile, so one can’t just copy it and 
>> compile.
> Why not adding one, indeed.

This style with local.mk perhaps comes from an age where Automake was not as 
smart. I use a Makefile.am.

In addition, it might benefit from using say a 
  #define YYSTYPE double
to illustrate how one sets ones own type.

This is the only preprocessor macro that remains in the C++ parser, so perhaps 
it should be replaced with a 
  %semantic-type {...}
or something.

reply via email to

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