bhyde/metapeg
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a PEG or packrat parser forked from the Common Lisp one written by John Leuner; see <http://www.cliki.net/metapeg>. To use the parser generator first load the library code: CL-USER> (load "libmetapeg.lisp") then call parse with your PEG grammar as the first argument: CL-USER> (parse "mypeg.peg" "metapeg.lisp") the lisp code for the resulting parser will be returned. You can save this code to a file: CL-USER> (write-parser-to-file (parse "mypeg.peg" "metapeg.lisp") "mypeg.lisp") To use your parser, call the parse function again: CL-USER> (parse "input-file" "mypeg.lisp")
About
Fork John Leuner's metapeg
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published