Copyright | (c) Martin Zeller, 2016 |
---|---|
License | BSD2 |
Maintainer | Martin Zeller <mz.bremerhaven@gmail.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Text.ABNF.ABNF.Types
Description
These types are used by the parser and are loosely modeled after the ABNF privded in RFC 5234
- data Rule = Rule Text DefinedAs SumSpec
- data SumSpec = SumSpec [ProductSpec]
- data ProductSpec = ProductSpec [Repetition]
- data Repetition = Repetition Repeat Element
- data Repeat = Repeat Int (Maybe Int)
- data Element
- data Group = Group SumSpec
- data Literal
- data NumLit
- data DefinedAs
Documentation
A Rule
represents a single entry in your ABNF. It could, for example,
look like this:
CRLF = %x0D.0A
Constructors
SumSpec [ProductSpec] |
Constructors
RuleElement' Text | |
RuleElement Rule | |
GroupElement Group | |
OptionElement Group | |
LiteralElement Literal |