Bison bootstrap

Valentin Tolmer <[email protected]>
Newsgroups gmane.comp.parsers.bison.general
Message-ID <CADxt4KZ2RMt6S=u38acP1vFLC6EzuXsTkS-smS9kKKwyU16VBQ@mail.gmail.com>
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
_______________________________________________
[email protected] https://lists.gnu.org/mailman/listinfo/help-bison
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.