@@ -487,7 +487,7 @@ def _handle_default_rule_body(self, node: Rule, rhs: Rhs, result_type: str) -> N
487
487
rhs , is_loop = False , is_gather = node .is_gather (), rulename = node .name ,
488
488
)
489
489
if self .debug :
490
- self .print ('fprintf(stderr, "Fail at %d: {node.name}\\ n", p->mark);' )
490
+ self .print (f 'fprintf(stderr, "Fail at %d: { node .name } \\ n", p->mark);' )
491
491
self .print ("_res = NULL;" )
492
492
self .print (" done:" )
493
493
with self .indent ():
@@ -613,15 +613,15 @@ def emit_default_action(self, is_gather: bool, node: Alt) -> None:
613
613
else :
614
614
if self .debug :
615
615
self .print (
616
- f'fprintf(stderr, "Hit without action [%d:%d]: %s\\ n", mark , p->mark, "{ node } ");'
616
+ f'fprintf(stderr, "Hit without action [%d:%d]: %s\\ n", _mark , p->mark, "{ node } ");'
617
617
)
618
618
self .print (
619
619
f"_res = _PyPegen_dummy_name(p, { ', ' .join (self .local_variable_names )} );"
620
620
)
621
621
else :
622
622
if self .debug :
623
623
self .print (
624
- f'fprintf(stderr, "Hit with default action [%d:%d]: %s\\ n", mark , p->mark, "{ node } ");'
624
+ f'fprintf(stderr, "Hit with default action [%d:%d]: %s\\ n", _mark , p->mark, "{ node } ");'
625
625
)
626
626
self .print (f"_res = { self .local_variable_names [0 ]} ;" )
627
627
0 commit comments