lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 21 April 2011 11:22, Wesley Smith <wesley.hoke@gmail.com> wrote:
> In addition, codepeg aims to provide accurate and pertinent diagnostic
> information during both lexing and parsing. During the lexing process
> codepeg provides hooks to signal malformed tokens. During the parsing
> process, codepeg tracks the parser as it moves through the grammar
> rules such that when a parsing error occurs, all the basic information
> required to determine what the error is is available. Currently this
> includes a rule stack and the last token in the stream the parser
> reached.

Going by the readme this looks great - I imagine I'll be giving it a
go use it next time I need to write a parser.

Being able to generate useful diagnostics from PEGs is probably the
most attractive feature for me, so if you're looking for more examples
or additions to the readme I might suggest adding a demonstration of
this functionality.

Alex