p.define("MACRO_B", "(a + 1)", ["a"])
p.define("MACRO_C", "MACRO_B")
# A non arg macro that expands into an argument macro
test_assert(p.evaluate("MACRO_C(1)"), 2)
This is because the parser attempts to recursively evaluate MACRO_C without considering the arguments.
The following tests produces the issue.
This is because the parser attempts to recursively evaluate
MACRO_C
without considering the arguments.