This project is closed and read-only.
Backport #9015 ยป 0001-parse.y-fix-build-error-with-bison-3.0.patch
| parse.y | ||
|---|---|---|
|
static int parser_yyerror(struct parser_params*, const char*);
|
||
|
#define yyerror(msg) parser_yyerror(parser, (msg))
|
||
|
#define YYLEX_PARAM parser
|
||
|
#define lex_strterm (parser->parser_lex_strterm)
|
||
|
#define lex_state (parser->parser_lex_state)
|
||
|
#define cond_stack (parser->parser_cond_stack)
|
||
| ... | ... | |
|
#define ruby_coverage (parser->coverage)
|
||
|
#endif
|
||
|
#if YYPURE
|
||
|
static int yylex(void*, void*);
|
||
|
#else
|
||
|
static int yylex(void*);
|
||
|
#endif
|
||
|
#ifndef RIPPER
|
||
|
#define yyparse ruby_yyparse
|
||
| ... | ... | |
|
#endif
|
||
|
%}
|
||
|
%pure_parser
|
||
|
%pure-parser
|
||
|
%lex-param {struct parser_params *parser}
|
||
|
%parse-param {struct parser_params *parser}
|
||
|
%union {
|
||