A collection of PEG parsers for HTTP, API and related syntaxes
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 @ 62a01c0
bin
lib
src
test.pool
test
.coffeelint.json
.gitignore
.gitmodules
.npmignore
.travis.yml
LICENSE
Makefile
README.md
custom.mk
index.coffee
package.json
testem.yml

README.md

API PEGjs Build Status

A collection of PEG parsers for HTTP, API and related grammars, along with generators and functional components

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

Parsers

apiPEG = require 'api-pegjs'

apiPEG.module.parser input

where module.parser can be

  • http
    • header_field
    • message
    • method
    • request_line
    • request_target
    • status_code
    • status_line
    • version
    • headers
      • Accept
      • Accept_Charset
      • Accept_Encoding
      • Accept_Language
      • Allow
      • Connection
      • Content_Encoding
      • Content_Language
      • Content_Location
      • Content_Type
      • Date
      • Expect
      • From
      • Host
      • Location
      • Max_Forwards
      • Referer
      • Retry_After
      • Server
      • TE
      • Tranfer_Encoding
      • Upgrade
      • User_Agent
      • Vary
      • Via
  • uri
  • media_type
  • charset
  • language

License

UNLICENSE