<https://perldoc.perl.org/perldelta.html#Defined-or-operator>. */
#define DEBUG_PERL 0
+#define DEBUG_NESTING_DEPTH 0
/* ====================== Keyword set customization. ====================== */
next_comma_delim = true;
++nesting_depth;
+ #if DEBUG_NESTING_DEPTH
+ fprintf (stderr, "extract_balanced %d>> @%d\n", nesting_depth, line_number);
+ #endif
if (extract_balanced (mlp, delim, false, next_comma_delim,
inner_context, next_context_iter,
1, next_argparser))
arglist_parser_done (argparser, arg);
return true;
}
+ #if DEBUG_NESTING_DEPTH
+ fprintf (stderr, "extract_balanced %d<< @%d\n", nesting_depth, line_number);
+ #endif
nesting_depth--;
next_is_argument = false;
{
/* Parse the argument list of a function call. */
++nesting_depth;
+ #if DEBUG_NESTING_DEPTH
+ fprintf (stderr, "extract_balanced %d>> @%d\n", nesting_depth, line_number);
+ #endif
if (extract_balanced (mlp, token_type_rparen, true, false,
inner_context, next_context_iter,
1, next_argparser))
arglist_parser_done (argparser, arg);
return true;
}
+ #if DEBUG_NESTING_DEPTH
+ fprintf (stderr, "extract_balanced %d<< @%d\n", nesting_depth, line_number);
+ #endif
nesting_depth--;
next_is_argument = false;
next_argparser = NULL;
{
/* Parse a parenthesized expression or comma expression. */
++nesting_depth;
+ #if DEBUG_NESTING_DEPTH
+ fprintf (stderr, "extract_balanced %d>> @%d\n", nesting_depth, line_number);
+ #endif
if (extract_balanced (mlp, token_type_rparen, true, false,
inner_context, next_context_iter,
arg, arglist_parser_clone (argparser)))
free_token (tp);
return true;
}
+ #if DEBUG_NESTING_DEPTH
+ fprintf (stderr, "extract_balanced %d<< @%d\n", nesting_depth, line_number);
+ #endif
nesting_depth--;
next_is_argument = false;
if (next_argparser != NULL)
logical_file_name, tp->line_number, nesting_level);
#endif
++nesting_depth;
+ #if DEBUG_NESTING_DEPTH
+ fprintf (stderr, "extract_balanced %d>> @%d\n", nesting_depth, line_number);
+ #endif
if (extract_balanced (mlp, token_type_rbrace, true, false,
null_context, null_context_list_iterator,
1, arglist_parser_alloc (mlp, NULL)))
free_token (tp);
return true;
}
+ #if DEBUG_NESTING_DEPTH
+ fprintf (stderr, "extract_balanced %d<< @%d\n", nesting_depth, line_number);
+ #endif
nesting_depth--;
next_is_argument = false;
if (next_argparser != NULL)
logical_file_name, tp->line_number, nesting_level);
#endif
++nesting_depth;
+ #if DEBUG_NESTING_DEPTH
+ fprintf (stderr, "extract_balanced %d>> @%d\n", nesting_depth, line_number);
+ #endif
if (extract_balanced (mlp, token_type_rbracket, true, false,
null_context, null_context_list_iterator,
1, arglist_parser_alloc (mlp, NULL)))
free_token (tp);
return true;
}
+ #if DEBUG_NESTING_DEPTH
+ fprintf (stderr, "extract_balanced %d<< @%d\n", nesting_depth, line_number);
+ #endif
nesting_depth--;
next_is_argument = false;
if (next_argparser != NULL)