help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bison bootstrap


From: Valentin Tolmer
Subject: Re: Bison bootstrap
Date: Thu, 28 Feb 2019 14:43:54 +0100

Sorry for the trouble, installing build-essential fixed it for me.

On Thu, Feb 28, 2019 at 2:24 PM Valentin Tolmer <address@hidden>
wrote:

> Hello!
>
> I'm trying to bootstrap bison to start hacking on it. I just did it
> successfully on a computer, but on another one, it's not working.
>
> I have a bison version 3.0.4 installed, and after cloning, running
> bootstrap, configure and make, it fails to generate the src/scan-code.c
> file.
>
> When I run
> $ bison -y ../src/scan-code.l -o src/scan-code.c
>
> it fails because it doesn't recognize %option:
>
> ../src/scan-code.l:20.1-7: error: invalid directive: ‘%option’
>  %option debug nodefault noinput nounput noyywrap never-interactive
>
> Any idea why that happens? Is it because my bison is too old? In which case, 
> where can I download a (pre-compiled) newer one, for linux (a debian-like)?
>
>
> Thanks,
>
>
> --
> Valentin Tolmer
>


-- 
Valentin Tolmer


reply via email to

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