fixed token dump
This commit is contained in:
parent
660306f6a5
commit
36396e97e9
2 changed files with 6 additions and 1 deletions
3
makefile
3
makefile
|
|
@ -38,4 +38,7 @@ clean:
|
||||||
run: $(TARGET)
|
run: $(TARGET)
|
||||||
$(TARGET)
|
$(TARGET)
|
||||||
|
|
||||||
|
run_lexer: $(TARGET)
|
||||||
|
$(TARGET) -l
|
||||||
|
|
||||||
.PHONY: clean run
|
.PHONY: clean run
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,10 @@ void dump_tokens(Elite::ParserCtx &ctx)
|
||||||
<< ", Location: " << tok.location
|
<< ", Location: " << tok.location
|
||||||
<< '\n';
|
<< '\n';
|
||||||
|
|
||||||
if (tok.kind() == yy::Parser::token::END)
|
if (tok.kind() == yy::Parser::symbol_kind::S_YYEOF)
|
||||||
|
{
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue