CommonLisp.hs 499 B

12345678910111213141516
  1. -- | Contains the type of atoms that Common Lisp understands, as
  2. -- well as the built-in reader macros that Common Lisp provides.
  3. -- Given a Common Lisp source file that contains no extra reader
  4. -- macro definitions, this module should successfully parse and
  5. -- desugar even quoted lists and vector literals.
  6. module Data.SExpression.CommonLisp where
  7. data Atom
  8. = Symbol Text
  9. | String Text
  10. | Integer Int
  11. | True
  12. deriving (Eq, Show, Read)
  13. parseSexpr :: Text -> Either SExprError