sexpresso-1.2.1.0: A flexible library for parsing and printing S-expression
Copyright© 2019 Vincent Archambault
License0BSD
MaintainerVincent Archambault <archambault.v@gmail.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Data.SExpresso.Parse.Char

Description

The module Data.SExpresso.Parse re-exports the functions of this module.

Synopsis

Documentation

plainSExprParser :: (MonadParsec e s m, Token s ~ Char) => m a -> SExprParser m () a Source #

The function plainSExprParser accepts a parser for atoms and returns a SExprParser for a stream of Char with the following properties :

  • The opening tag is (.
  • The closing tag is ).
  • The space parser is space1.
  • Space is always mandatory between atoms.