Re: Yacc = Bison???



On 2006-03-29, Kamikazy <josip.hars@xxxxxx> wrote:
Hi! Can someone tell me basic (if there is one) difference beetwen yacc and
bison? I mean, are they the same only bison is a better version, do they use
same input files?

Bison is the GNU version of yacc (yacc predates GNU, and there are no
doubt other yaccs). Bison does more than yacc, but should be upwardly
compatible with files input files designed for yacc.

On my GNU/Linux system /usr/bin/yacc is just a wrapper for bison anyway:

#! /bin/sh
exec /usr/bin/bison -y "$@"

The GNU version of lex is called flex and is the same idea-- lex is just
a wrapper for flex.

Good luck with your parser!
.



Relevant Pages

  • Re: Csup cvsmode build discussion
    ... lex and yacc files that I would like to discuss. ... I implemented the RCS parser required to operate on RCS files ... I've been compiling the parser and tokenizer with the help of bison ... Now, the base system already have flex, but the flex version in base is heavily ...
    (freebsd-hackers)
  • Csup cvsmode build discussion
    ... lex and yacc files that I would like to discuss. ... I implemented the RCS parser required to operate on RCS files ... I've been compiling the parser and tokenizer with the help of bison ... Now, the base system already have flex, but the flex version in base is heavily ...
    (freebsd-hackers)
  • Re: A Readable C Code without #DEFINEs ...
    ... > I am using LEX and YACC and they produce this grossly unreadable C code ... Hopefully the input files are readable, ... > Is there a switch is C, or, if you know about a hidden switch in either ...
    (comp.lang.c.moderated)
  • Re: LR(k) parser generator for k>1?
    ... I agree with your opinion on the segmentation issue of the parser ... generators. ... interface with Yacc and Bison, ...
    (comp.compilers)
  • Re: Patching... Whats next?
    ... bison (or the original yacc) and flex (or ... # If you have yacc and lex programs (or work-alike such as bison ...
    (rec.games.roguelike.nethack)