| License | BSD-3-Clause |
|---|---|
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Swarm.Language.Parser.Record
Description
Parsing records in the Swarm language.
Synopsis
- parseRecord :: Parser a -> Parser (Map Var a)
Documentation
parseRecord :: Parser a -> Parser (Map Var a) Source #
Parse something using record syntax of the form {x1 v1, x2 v2,
...}. The same parser is used both in parsing record types and
record values, so it is factored out into its own module.
The Parser a argument is the parser to use for the RHS of each
binding in the record.