On Jun 11, 2015, at 2:47 AM, Camille <camille.teruel@gmail.com> wrote:
But furthest failure gives wrong messages in other cases to. Consider this sequence parser:
keyword := #letter asParser plus , $: asParser. keyword parse: âfoo'
This returns 'letter expected at 3â, but no matter how many letters I add to the end Iâll still get âletter expectedâ. I want to get what is really missing: '$: expected at 3â.
Indeed. I recently submitted an update to the parser and tests (based on code from Dale Henrichs) for a problem in which trim would cause the error to always be âseparator expectedâ when there was something after the separator that was expected. Better error reporting would certainly be helpful. The âletter expectedâ explanation is quite wrong. James Foster