When trying out why parse_string("x+"); confuses wxMaxima I've seemed to have triggered two maxima bugs, the second one of which has been spotted by Robert Dodier => Am copying the relevant part of the mailing list entry here:
(%i1) parse_string("x+");
/usr/local/share/maxima/branch_5_38_base_108_gf6cf571/share/stringproc/stringproc.mac:1:2:incorrect
syntax: Premature termination of input at $.
Maxima encountered a Lisp error:
CHAR=: argument -1 is not a character
Oops, where did that Lisp error come from? It's probably in
parse_string.
(%i2) errcatch(parse_string("x+"));
incorrect syntax: Premature termination of input at $.
se_string("x+"));x+$
Oops, why is it showing se_string("x+")); ?? It should just show x+$ .
This is probably in MREAD-SYNERR where it tries to determine where it is
in the input stream.
These have been fixed. See bug [#2921] for the details. I didn't remember this ticket when working on this stuff.
Related
Bugs:
#2921