prefix for yacc/bison

From: Christian Christmann (plfriko_at_yahoo.de)
Date: 07/12/05


Date: Tue, 12 Jul 2005 00:31:46 +0200

Hi,

a question on yacc/bison: I've to work on two different machines. One of
them is using yacc the other is using bison (by default as replacement for
yacc). For a yacc file I've to change the default prefix yy. Thus, I've
added the line %name-prefix="aa". This works fine for bison but issues an
syntax error with yacc.

Is there a way to change the prefix which work for both yacc and bison?

Thank you
Chris



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: 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)
  • Re: prefix for yacc/bison
    ... > for yacc). ... For a yacc file I've to change the default prefix yy. ... Yacc and bison are ... compilation unit you can write the addresses of the yy* into an external ...
    (alt.os.linux)