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

Swarm.Util.Parse

Description

Parsing utilities for Swarm.

Synopsis

Documentation

fully :: MonadParsec e s f => f () -> f a -> f a Source #

Run a parser "fully", consuming leading whitespace and ensuring that the parser extends all the way to eof.

fullyMaybe :: MonadParsec e s f => f () -> f a -> f (Maybe a) Source #

Run a parser "fully", consuming leading whitespace (including the possibility that the input is nothing but whitespace) and ensuring that the parser extends all the way to eof.