diff --git a/py/mpconfig.h b/py/mpconfig.h index bde8dfb9ef0d1b110e1789c48195d1abdd895ce8..ed42fbccc16004004140a2611d5d5d9fc02ad41f 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -178,7 +178,7 @@ #endif // Whether to build functions that print debugging info: -// mp_token_show +// mp_lexer_show_token // mp_bytecode_print // mp_parse_node_print #ifndef MICROPY_DEBUG_PRINTERS diff --git a/py/parse.c b/py/parse.c index 6223968f5db9909245f97a74a138358ee8d0b119..3f704317e2e1d3114cdedbb67bbcd93da5dec505 100644 --- a/py/parse.c +++ b/py/parse.c @@ -782,7 +782,7 @@ syntax_error: // debugging: print the rule name that failed and the token printf("rule: %s\n", rule->rule_name); #if MICROPY_DEBUG_PRINTERS - mp_token_show(lex); + mp_lexer_show_token(lex); #endif #endif }