gdritter repos s-cargot / e2213db
More doc refactoring for Common Getty Ritter 9 years ago
1 changed file(s) with 16 addition(s) and 6 deletion(s). Collapse all Expand all
1 module Data.SCargot.Common ( -- * Numeric Literal Parsers
2 binNumber
1 module Data.SCargot.Common ( -- $intro
2 -- * Lisp Identifier Syntaxes
3 parseR5RSIdent
4 , parseR6RSIdent
5 , parseR7RSIdent
6 -- * Numeric Literal Parsers
7 , binNumber
38 , signedBinNumber
49 , octNumber
510 , signedOctNumber
1015 , hexNumber
1116 , signedHexNumber
1217 , signed
13 -- * Lisp Identifier Syntaxes
14 , parseR5RSIdent
15 , parseR6RSIdent
16 , parseR7RSIdent
1718 ) where
1819
1920 import Data.Char
184185 -- | A parser for signed hexadecimal numbers, with an optional leading @+@ or @-@.
185186 signedHexNumber :: Parser Integer
186187 signedHexNumber = ($) <$> sign <*> hexNumber
188
189 {- $intro
190
191 This module contains a selection of parsers for different kinds of
192 identifiers and literals, from which more elaborate parsers can be
193 assembled. These can afford the user a quick way of building parsers
194 for different atom types.
195
196 -}