some work to distinguish EOF parser exceptions from others (to make interactive mode support >1-line inputs)