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: Akim Demaille
Subject: Re: Enhancement request: enabling Variant in C parsers
Date: Sun, 26 Aug 2018 07:22:46 +0200


> Le 25 août 2018 à 14:56, Hans Åberg <address@hidden> 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

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