• Edward Loper's avatar
    Rewrote Parser, using regular expressions instead of walking though · 7c748469
    Edward Loper authored
    the string one line at a time.  The resulting code is (in my opinion,
    anyway), much easier to read.  In the process, I found and fixed a
    bug in the orginal parser's line numbering in error messages (it was
    inconsistant between 0-based and 1-based).  Also, check for missing
    blank lines after the prompt on all prompt lines, not just PS1 lines
    (test added).
    7c748469
test_doctest.py 35 KB