> On 23 Aug 2018, at 13:14, Akim Demaille <a...@lrde.epita.fr> wrote: > >> Le 23 août 2018 à 10:34, Hans Åberg <haber...@telia.com> a écrit : >> >> This style with local.mk perhaps comes from an age where Automake was not as >> smart. I use a Makefile.am. > > Totally unrelated. I use local.mk (should be local.am) because it’s > included from the top-level Makefile.am. There’s a single Makefile > in the end, and that’s on purpose. I do not want recursive Makefiles.
Why not? I use local.mk, too, in simple cases. >> In addition, it might benefit from using say a >> #define YYSTYPE double >> to illustrate how one sets ones own type. > > What example are you referring to? Also, you may have noticed that > I try to avoid using the preprocessor in favor of Bison directives. For the example, you do not set the type explicitly, so it ends up as a default, so those that want to change need to go to the manual for that. >> so perhaps it should be replaced with a >> %semantic-type {...} >> or something. > > ‘something’ is '%define api.value.type'. So use it in the example, simply for illustration of the feature.