Skip to content

Commit 759cc9b

Browse files
committed
unix-cpy: Fix build due to change in lexer API.
1 parent a4c52c5 commit 759cc9b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

unix-cpy/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ void do_file(const char *file) {
4949

5050
if (0) {
5151
// just tokenise
52-
while (!mp_lexer_is_kind(lex, MP_TOKEN_END)) {
53-
mp_token_show(mp_lexer_cur(lex));
52+
while (lex->tok_kind != MP_TOKEN_END) {
53+
mp_lexer_show_token(lex);
5454
mp_lexer_to_next(lex);
5555
}
5656
mp_lexer_free(lex);

0 commit comments

Comments
 (0)