> Le 25 août 2018 à 14:56, Hans Åberg <haber...@telia.com> a écrit :
> 
> I was thinking of adding something like
>  "#".*\n        { yylloc.lines(1); yylloc.step(); }

Ah, ok.

> 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?

Reply via email to