dlang-community / Pegged

A Parsing Expression Grammar (PEG) module, using the D programming language.
534 stars 66 forks source link

Refactor error reporting #274

Closed Zardoz89 closed 4 years ago

Zardoz89 commented 4 years ago

Resolves issue #133 and #204

toString() now calls failMsg to generate the error code, avoiding soem duplicated code.

failMsg now accepts two optional parameters to allow customize the error message using a delegate function.

veelo commented 4 years ago

Thanks!