Skip to content

Commit

Permalink
Cosme
Browse files Browse the repository at this point in the history
  • Loading branch information
yui-knk committed Dec 4, 2019
1 parent 8daeb96 commit fa09aee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions parse.y
Expand Up @@ -9455,18 +9455,20 @@ static enum yytokentype
yylex(YYSTYPE *lval, YYLTYPE *yylloc, struct parser_params *p, int yystate, short *yyss, short *yyssp)
{
enum yytokentype t;
VALUE yysstack;

p->lval = lval;
lval->val = Qundef;

p->yystate = yystate;
p->yyss = yyss;
p->yyssp = yyssp;
yysstack = yysstack_new(yyss, yyssp);

if (p->debug) {
VALUE tokens = expected_tokens(yystate, yysstack);
VALUE yysstack;
VALUE tokens;

yysstack = yysstack_new(yyss, yyssp);
tokens = expected_tokens(yystate, yysstack);
rb_parser_printf(p, "\nexpected_tokens (state = %d): %"PRIsVALUE"\n", yystate, tokens);
// rb_parser_printf(p, "\nyysstack: %"PRIsVALUE"\n", yysstack);
}
Expand Down

0 comments on commit fa09aee

Please sign in to comment.