abnf-0.4.1.0: Parse ABNF and generate parsers for the specified document

Copyright(c) Martin Zeller, 2016
LicenseBSD2
MaintainerMartin Zeller <mz.bremerhaven@gmail.com>
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Text.ABNF.ABNF.Types

Description

These types are used by the parser and are loosely modeled after the ABNF privded in RFC 5234

Synopsis

Documentation

data Rule Source #

A Rule represents a single entry in your ABNF. It could, for example, look like this:

CRLF = %x0D.0A

Constructors

Rule Text DefinedAs SumSpec 

Instances

Eq Rule Source # 

Methods

(==) :: Rule -> Rule -> Bool #

(/=) :: Rule -> Rule -> Bool #

Show Rule Source # 

Methods

showsPrec :: Int -> Rule -> ShowS #

show :: Rule -> String #

showList :: [Rule] -> ShowS #

Pretty Rule Source # 

data Repeat Source #

Constructors

Repeat Int (Maybe Int) 

data Group Source #

Constructors

Group SumSpec 

Instances