nlpeg - PEG parser generator

Featuring the Dragonfly web framework

nlpeg - PEG parser generator

Postby bairui » Sun Jan 12, 2014 8:43 am

Hi, newlispers,

I wrote a PEG (Parsing Expression Grammar) parser for Vim (https://github.com/dahu/Vimpeg) a while ago and recently ported it to newLISP (https://github.com/dahu/nlpeg). I would love for you guys to review my work. I am new to lisp and expect that I have made some boo-boos along the way.

NOTE: the nlpeg-peg-parser.lsp is UNFINISHED, however the nlpeg.lsp is ready for review. Examples of using nlpeg.lsp can be seen in the test files and calc.lsp.

When nlpeg-peg-parser.lsp is finished, grammars can be specified using standard PEG grammar format in [text] strings, if preferred over the explicit API approach available through nlpeg.lsp currently.
bairui
 
Posts: 64
Joined: Sun May 06, 2012 2:04 am
Location: China

Return to So, what can you actually DO with newLISP?

Who is online

Users browsing this forum: No registered users and 1 guest