Related articles |
---|
Using Gnu's Bison turner@unc.cs.unc.edu (1988-03-15) |
Re: Using Gnu's Bison ejp@ausmelb.oz.au (1988-03-22) |
Re: Using Gnu's Bison ejp@ausmelb.oz.au (1988-03-25) |
From: | ejp@ausmelb.oz.au (Esmond Pitt) |
Newsgroups: | comp.compilers |
Keywords: | yacc, lex, bison, |
Date: | 22 Mar 88 00:57:23 GMT |
References: | <1145@thorin.cs.unc.edu> |
Organization: | Austec International Limited, Melbourne |
In article <1145@thorin.cs.unc.edu> turner@unc.cs.unc.edu (Douglass Turner) writes:
>Anyone out there using Gnu's Bison? ...
1. To get yacc's default output names (y.output, y.tab.c and y.tab.h) instead
of Bison's output names, you need to use the -y switch.
2. Bison's generated parser uses the Vax alloca() function, which you may
not have.
3. Despite claims in the code, Bison's generated parser was for me
slightly slower than yacc's, not that this is a genuine concern.
4. Bison itself runs about 7 times as fast as yacc. This is
insignificant on normal grammars, but, on the large (Cobol-85) grammar
I am using, it goes from 15 minutes to 2-1/2 - an obvious boon.
5. Bison's generated parser has a copyright notice in it which prevents
you from embeddding the result in a proprietary product.
6. Apart from the above issues, Bison plugs straight in.
--
Esmond Pitt, Austec International Ltd
...!uunet.UU.NET!munnari!ausmelb!ejp,ejp@ausmelb.oz.au
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.