kursjan / petitparser2

A high-performance top-down parser
MIT License
41 stars 19 forks source link

`end` replaces useful failure messages by 'end of input expected' #61

Closed khinsen closed 4 years ago

khinsen commented 4 years ago

$a asPParser parse: 'x' yields a useful failure mesage: 'literal $a expected'

$a asPParser end parse: 'x' yields 'end of input expected' instead, which (1) is not helpful and (2) is wrong.