License | BSD-3-Clause |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
Swarm.Game.World.Syntax
Description
Abstract syntax for the Swarm world description DSL.
Documentation
Various component types
Constructors
CellTerrain | |
CellEntity | |
CellRobot |
Instances
Bounded CellTag Source # | |
Enum CellTag Source # | |
Show CellTag Source # | |
Eq CellTag Source # | |
Ord CellTag Source # | |
Defined in Swarm.Game.World.Syntax | |
PrettyPrec CellTag Source # | |
Defined in Swarm.Game.World.Syntax Methods prettyPrec :: Int -> CellTag -> Doc ann |
Constructors
CellVal TerrainType (Erasable (Last Entity)) [TRobot] |
The main AST type
Constructors
WInt :: Integer -> WExp | |
WFloat :: Double -> WExp | |
WBool :: Bool -> WExp | |
WCell :: RawCellVal -> WExp | |
WVar :: Text -> WExp | |
WOp :: Op -> [WExp] -> WExp | |
WSeed :: WExp | |
WCoord :: Axis -> WExp | |
WHash :: WExp | |
WLet :: [(Var, WExp)] -> WExp -> WExp | |
WOverlay :: NonEmpty WExp -> WExp | |
WImport :: Text -> WExp |