> |Would it be possible to add '-p ruby' to the bison command line
> |args and then change all references from yyparse() to rubyparse()
> |or rbparse()?
> 
> I think plain yacc does not accept '-p'.  Many users compiled Ruby
> using non-bison yacc, so I don't want to force bison to compile.  If
> there's other workaround (probably using cpp), I'd love to merge.

All -p does is add a few #defines for build time at the top of the
generated parser.  I think it would be trivial to duplicate this by
adding this to parse.y.

#define yyparse rubyparse
#define yylex rubylex
#define yyerror rubyerror
#define yylval rubylval
#define yychar rubychar
#define yydebug rubydebug
#define yynerrs rubynerrs

Would this work for you?  -sc

-- 
Sean Chittenden