gdritter repos s-cargot / 325d34e
Rewrote some phrasing in HaskLike docs Getty Ritter 8 years ago
1 changed file(s) with 10 addition(s) and 9 deletion(s). Collapse all Expand all
2222
2323 This module is intended for simple, ad-hoc configuration or data formats
2424 that might not need their on rich structure but might benefit from a few
25 various literal formats. the 'haskLikeSpec' understands identifiers as
26 defined by R5RS as well as string, integer, and floating-point literals
27 as defined by the Haskell spec, but won't get any Lisp-specific vector
28 literals or other structure.
25 various kinds of literals. The 'haskLikeSpec' understands identifiers as
26 defined by R5RS, as well as string, integer, and floating-point literals
27 as defined by the Haskell spec. It does _not_ natively understand other
28 data types, such as booleans, vectors, bitstrings, or the like.
2929
3030 -}
3131
130130
131131 -- | This `SExprSpec` understands s-expressions that contain
132132 -- Scheme-like tokens, as well as string literals, integer
133 -- literals, and floating-point literals. These are read
134 -- and shown with Haskell lexical syntax, so the same set
135 -- of values understood by GHC should be understood by this
136 -- spec as well. This includes string escapes, different
137 -- number bases, and so forth.
133 -- literals, and floating-point literals. Each of these values
134 -- is parsed according to the lexical rules in the Haskell
135 -- report, so the same set of string escapes, numeric bases,
136 -- and floating-point options are available. This spec does
137 -- not parse comments and does not understand any reader
138 -- macros.
138139 haskLikeSpec :: SExprSpec HaskLikeAtom (SExpr HaskLikeAtom)
139140 haskLikeSpec = mkSpec pHaskLikeAtom sHaskLikeAtom