Vocabulary
peg

Definition

TUPLE: parse-error position got messages ;


Methods

M: parse-error error.
[
"Peg parsing error at character position " write
position>> number>string write
] [ ".\nExpected " write messages>> " or " join write ]
[ "\nGot '" write got>> write "'" print ] tri ;