> On 26 Aug 2018, at 07:22, Akim Demaille <a...@lrde.epita.fr> wrote: > >> Le 25 août 2018 à 14:56, Hans Åberg <haber...@telia.com> a écrit : >> >> Then the example file could have comments like: >> # Run calc++ <this file> >> # Causes a deliberate error. Should report ... >> >> The idea is that coming new to bison copies the calc++ directory, compiles >> it, sees there are some example files to run, and ready to start >> experimenting. > > The calculator is dumb: it expects a single expression, so > there would be enough space to demonstrate all this. And > I want to keep it simple. > > The README should suffice, shouldn’t it?
I depends on where you want to take it. From earlier in the thread, it scares off some, though we did not get to know why, whereas I think it is a good starting point for showing off some Bison features. Maybe simple is good for a start, and more advanced features in another example some time in the future.