Skip to content

Commit 5d323de

Browse files
SeanMolletdpgeorge
authored andcommitted
py: Update parse.c&mpconfig.h to reflect rename of mp_lexer_show_token.
This function is only used when DEBUG_PRINTERS and USE_RULE_NAME are enabled.
1 parent 71ebd4b commit 5d323de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

py/mpconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
#endif
179179

180180
// Whether to build functions that print debugging info:
181-
// mp_token_show
181+
// mp_lexer_show_token
182182
// mp_bytecode_print
183183
// mp_parse_node_print
184184
#ifndef MICROPY_DEBUG_PRINTERS

py/parse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ mp_parse_node_t mp_parse(mp_lexer_t *lex, mp_parse_input_kind_t input_kind) {
782782
// debugging: print the rule name that failed and the token
783783
printf("rule: %s\n", rule->rule_name);
784784
#if MICROPY_DEBUG_PRINTERS
785-
mp_token_show(lex);
785+
mp_lexer_show_token(lex);
786786
#endif
787787
#endif
788788
}

0 commit comments

Comments
 (0)