swarm-0.6.0.0: 2D resource gathering game with programmable robots
LicenseBSD-3-Clause
Safe HaskellSafe-Inferred
LanguageHaskell2010

Swarm.Language.Parser.Record

Description

Parsing records in the Swarm language.

Synopsis

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.