help-bison
[Top][All Lists]
Advanced

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

Bison bootstrap


From: Valentin Tolmer
Subject: Bison bootstrap
Date: Thu, 28 Feb 2019 14:24:41 +0100

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


reply via email to

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