A collection of core PEGjs grammars (IETF, ISO, etc.)
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.coffee.mk @ 4401ae2
bin
lib
src
test
.coffeelint.json
.gitignore
.gitmodules
.npmignore
.travis.yml
LICENSE
Makefile
README.md
custom.mk
index.coffee
package.json
testem.yml

README.md

Core PEGjs Build Status

A collection of core PEGjs grammars (IETF, ISO, etc.)

Wherever there are ABNF specifications, the ABNF rules MUST simply ported to PEGjs without any semantic modification.

This is part of a bigger effort: for-GET HTTP.

Reason

The PEGs part of this library MUST have no actions (code), in order to make them reusable, outside the context in which they are used. Code and semantic output is to be implemented by libraries that reuse the syntax in these PEGs, thanks to the overrideAction PEGjs plugin.

An example of such libraries is API-PEGjs.

Extension

PEGjs doesn't allow for composability (referencing other grammars).

This library makes use of an @append marker/instruction to concatenate multiple grammars into one, before publishing.

This is a workaround. As soon as https://github.com/dmajda/pegjs/issues/38 is closed, you can expect a breaking change, if the situation so needs.

License

Apache 2.0