[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bison generating C++
From: |
Hans Aberg |
Subject: |
Re: Bison generating C++ |
Date: |
Thu, 19 Oct 2000 22:02:21 +0200 |
>Hey... I don't know if this is really what we wanted, but I created a simple
>parser .. turn on option %pure-parser and in the .tab.c put "class
>foo{ public: " just before the definition of yyparse and put a "};" just after
>the end of yyparse and dun-dundun-dah -- voila -- a C++ parser....
You could try to put the change into the bison.simple file. Then also tweak
the Bison sources so that the added -+ option selects this modified
skeleton file instead.
Hans Aberg