Re: prefix for yacc/bison
From: Erik de Castro Lopo (nospam_at_mega-nerd.com)
Date: 07/12/05
- Next message: ÐÿñôMü++: "Re: To Liam Slider and linonut..."
- Previous message: ELVIS2000: "Re: Linux? I'm tired of being the oddball in the group. It's not worth it. Hello OSX."
- In reply to: Peter T. Breuer: "Re: prefix for yacc/bison"
- Next in thread: Erik de Castro Lopo: "Re: prefix for yacc/bison"
- Reply: Erik de Castro Lopo: "Re: prefix for yacc/bison"
- Reply: Peter T. Breuer: "Re: prefix for yacc/bison"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 12 Jul 2005 12:57:19 +1000
"Peter T. Breuer" wrote:
>
> That's because it's (a) silly,
Its not silly. Its the most obvious and best way to include
two grammars in one program.
>(b) meaningless. Yacc and bison are
> work-alikes.
Actually no. The grammars that yacc accepts are a subset
of what bison accepts.
> Write code that both can parse. Don't write code that only
> one or the other can grok.
Nice idea in theory, not in practice. For instance Bison
now has a GLR parser as well as an LALR(1) parser. Yacc
only has the later.
To the original poster, the best advice you are going to get
is to just dump yacc and only support bison.
Erik
PS : comp.os.linux.development.apps might have been a more
appropriate place than this. Also comp.unix.programmer.
-- +-----------------------------------------------------------+ Erik de Castro Lopo nospam@mega-nerd.com (Yes it's valid) +-----------------------------------------------------------+ `If you want a vision of the future, it is a wireless broadband network feeding requests for foreign money-laundering assistance into a human temporal lobe, forever. With banner ads.' -- John M. Ford
- Next message: ÐÿñôMü++: "Re: To Liam Slider and linonut..."
- Previous message: ELVIS2000: "Re: Linux? I'm tired of being the oddball in the group. It's not worth it. Hello OSX."
- In reply to: Peter T. Breuer: "Re: prefix for yacc/bison"
- Next in thread: Erik de Castro Lopo: "Re: prefix for yacc/bison"
- Reply: Erik de Castro Lopo: "Re: prefix for yacc/bison"
- Reply: Peter T. Breuer: "Re: prefix for yacc/bison"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|