[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Elegant design for creating error messages in LPEG parser
- From: Hugo Musso Gualandi <hgualandi@...>
- Date: Tue, 02 Apr 2019 19:03:13 -0300
> Example :
>
> > [ 1 2 3 -- ERROR ! MISSING ] AT LINE 20
>
> > ( 1 2 3 -- ERROR ! MISSING ) AT LINE 35
>
> > { 1 2 3 -- ERROR ! MISSING } AT LINE 12
>
> > 1 2 3 ] -- ERROR ! EXTRA ] AT LINE 42
>
> > [ ( 1 2 3 ] -- ERROR ! MISSING ) AT LINE 71
You may want to check out LPegLabel, a fork of LPeg with additional
error-handling features:
https://github.com/sqmedeiros/lpeglabel/