Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Parser generator written in Nu lisp
Nu
tree: 5615bf70e2

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README
parser.nu

README

Parser Generator
================

Example
-------
; Defines a function named `myparser` that parses strings like "c" "abc" 
; "ababc" "abababababc", etc into a parse tree.
(parser myparser
  (sym (* "ab") "c"))

; Use parser like this:
(puts ((myparser "abc") description))
;-> (sym (* (PToken ab "ab")) (PToken c "c"))

(puts ((myparser "abc") stringValue))
;-> abc

Something went wrong with that request. Please try again.