More doc refactoring for Common
Getty Ritter
9 years ago
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 | |
3 | 8 | , signedBinNumber |
4 | 9 | , octNumber |
5 | 10 | , signedOctNumber |
10 | 15 | , hexNumber |
11 | 16 | , signedHexNumber |
12 | 17 | , signed |
13 | -- * Lisp Identifier Syntaxes | |
14 | , parseR5RSIdent | |
15 | , parseR6RSIdent | |
16 | , parseR7RSIdent | |
17 | 18 | ) where |
18 | 19 | |
19 | 20 | import Data.Char |
184 | 185 | -- | A parser for signed hexadecimal numbers, with an optional leading @+@ or @-@. |
185 | 186 | signedHexNumber :: Parser Integer |
186 | 187 | 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 | -} |