Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A PEG generator for Standard ML
Standard ML
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
Makefile
README.md
bootstrap.sml
bootstrap_maker.sml
main.sml
smlpeg.mlb
smlpeg.peg
smlpeg.smackspec

README.md

SMLPEG

SMLPEG is a Standard ML PEG generator, based largely on the self-hosting Javascript PEG generator peg-bootstrap by Kragen Javier Sitaker (http://github.com/kragen/peg-bootstrap).

The syntax for PEGs is largely the same as peg-bootstrap. Of interest might be the ever-present variable:

val pos : int ref

Which will hold the current position in the file.

For an example PEG, look at the parser itself (smlpeg.peg).

There is little or no error handling at present. This should be fixed eventually.

-- Gian Perrone , November 2011

Something went wrong with that request. Please try again.