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

Swarm.Game.World.Interpret

Description

Interpreter for the Swarm world description DSL.

Synopsis

Documentation

interpBTerm :: Seed -> BTerm a -> a Source #

Interpret an abstracted term into the host language.

interpConst :: Seed -> Const a -> a Source #

Interpret a constant into the host language.

interpReflect :: Axis -> Coords -> Coords Source #

Interprect a reflection.

interpRot :: Rot -> Coords -> Coords Source #

Interpret a rotation.