Closed kamahen closed 8 months ago
This problem occurred because I expanded the definition of tr//1 in doc2lex.pl to cover most C and C++ functions, not just those starting with PL_* or S*
(https://github.com/SWI-Prolog/swipl-devel/pull/1229).
This resulted in expanding the py_dict_as({{}})
inside \exam{py_dict_as({{}})}
and the {}
(or {{}}
) wasn't expanded because the tr//1 rule doesn't recursively expand the args (doc2tex.pl doesn't seem to do anything with \exam
, so I don't know where it's expanded).
doc2lex.pl
is the appropriate place to fix this.
This showed up when I was changing
doc2tex.pl
to parse additional C/C++ function calls. Following is the crash I got (but why didn't thecatch_with_backtrace/3
produce a backtrace?)