License | BSD-3-Clause |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Abstract syntax for the Swarm world description DSL.
Documentation
Various component types
Instances
Bounded CellTag Source # | |
Enum CellTag Source # | |
Show CellTag Source # | |
Eq CellTag Source # | |
Ord CellTag Source # | |
PrettyPrec CellTag Source # | |
Defined in Swarm.Game.World.Syntax |
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
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 |