| License | BSD-3-Clause |
|---|---|
| Safe Haskell | Safe-Inferred |
| 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 | |
Constructors
| Not | |
| Neg | |
| And | |
| Or | |
| Add | |
| Sub | |
| Mul | |
| Div | |
| Mod | |
| Eq | |
| Neq | |
| Lt | |
| Leq | |
| Gt | |
| Geq | |
| If | |
| Perlin | |
| Reflect Axis | |
| Rot Rot | |
| Mask | |
| Overlay | |
| Abs |
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 |