1 parent a4c52c5 commit 759cc9bCopy full SHA for 759cc9b
1 file changed
unix-cpy/main.c
@@ -49,8 +49,8 @@ void do_file(const char *file) {
49
50
if (0) {
51
// just tokenise
52
- while (!mp_lexer_is_kind(lex, MP_TOKEN_END)) {
53
- mp_token_show(mp_lexer_cur(lex));
+ while (lex->tok_kind != MP_TOKEN_END) {
+ mp_lexer_show_token(lex);
54
mp_lexer_to_next(lex);
55
}
56
mp_lexer_free(lex);
0 commit comments