Copyright | (c) Martin Zeller, 2016 |
---|---|
License | BSD2 |
Maintainer | Martin Zeller <mz.bremerhaven@gmail.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
This module provides facilities to parse ABNF documents. To parse documents using ABNF, see Text.ABNF.Document.Parser
The parser you will most likely be interested in is rulelist
- identifier :: Parser Text
- parseABNF :: String -> Text -> Either (ParseError Char Dec) [Rule]
- rulelist :: Parser [Rule]
- rule :: Parser Rule
- defined_as :: Parser DefinedAs
- elements :: Parser SumSpec
- c_wsp :: Parser String
- c_nl :: Parser String
- comment :: Parser String
- alternation :: Parser SumSpec
- concatenation :: Parser ProductSpec
- repetition :: Parser Repetition
- repeat :: Parser Repeat
- element :: Parser Element
- group :: Parser Group
- option_ :: Parser Group
- literal :: Parser Literal
- char_val :: Parser Text
- num_val :: Parser NumLit
- bin_val :: Parser NumLit
- dec_val :: Parser NumLit
- hex_val :: Parser NumLit
- num_val' :: Char -> Parser Int -> Parser NumLit
- prose_val :: Parser Text
- vchar :: Parser Char
- wsp :: Parser Char