| License | BSD-3-Clause |
|---|---|
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Swarm.Language.Parser
Description
Parser for the Swarm language. Note, you probably don't want to
use this directly, unless there is a good reason to parse a term
without also type checking it; use
processTerm instead, which parses,
typechecks, elaborates, and capability checks a term all at once.
Documentation
readTerm' :: ParserConfig -> Text -> Either ParserError (Maybe Syntax) Source #
A lower-level readTerm which allow configuring the parser and
returns the megaparsec bundle error for precise error reporting.