programlibs/Tags/demos/turtle.xtl
A turtle on a grid: its heading is one of four choices, its state a tagged tuple of a position, a heading and a count of steps -- parts of different types, used by name. e_num< names the choices, p_arts< the parts; both write plain definitions when the program is compiled. Turns and moves are tables indexed by the heading, not branches. Run with "just demo Tags turtle".
NORTH : Int
@ ᵗᵍe̲num< "Heading: north east south west"
ᵗᵍe̲num< expands to
NORTH ← 1 EAST ← 2 SOUTH ← 3 WEST ← 4 HEADING ← "north" "east" "south" "west"
EAST : Int
@ ᵗᵍe̲num< "Heading: north east south west"
ᵗᵍe̲num< expands to
NORTH ← 1 EAST ← 2 SOUTH ← 3 WEST ← 4 HEADING ← "north" "east" "south" "west"
SOUTH : Int
@ ᵗᵍe̲num< "Heading: north east south west"
ᵗᵍe̲num< expands to
NORTH ← 1 EAST ← 2 SOUTH ← 3 WEST ← 4 HEADING ← "north" "east" "south" "west"
WEST : Int
@ ᵗᵍe̲num< "Heading: north east south west"
ᵗᵍe̲num< expands to
NORTH ← 1 EAST ← 2 SOUTH ← 3 WEST ← 4 HEADING ← "north" "east" "south" "west"
HEADING : Box Char
@ ᵗᵍe̲num< "Heading: north east south west"
ᵗᵍe̲num< expands to
NORTH ← 1 EAST ← 2 SOUTH ← 3 WEST ← 4 HEADING ← "north" "east" "south" "west"
Used in: libs/Tags/demos/turtle.xtl:29
TURTLE : Char
@ ᵗᵍp̲arts< "Turtle: at heading steps"
ᵗᵍp̲arts< expands to
TURTLE ← "Turtle" ᵘt̲urtle ← { (at, heading, steps) → (TURTLE, at, heading, steps) } ᵘt̲urtle? ← { (g1:tag, _, _, _) → g1:tag m̲atch TURTLE } ᵘt̲urtleAt ← { (g1:tag, g2:part, _, _) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘt̲urtleHeading ← { (g1:tag, _, g2:part, _) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘt̲urtleSteps ← { (g1:tag, _, _, g2:part) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘs̲etTurtleAt ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch at (g1:tag, g3:new, heading, steps) } ᵘs̲etTurtleHeading ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch heading (g1:tag, at, g3:new, steps) } ᵘs̲etTurtleSteps ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch steps (g1:tag, at, heading, g3:new) } ᵘt̲urtleRows ← { g4:which (g1:tag, at, heading, steps) → (g1:tag, g4:which s̲elect at, g4:which s̲elect heading, g4:which s̲elect steps) }
Used in: TURTLE
ᵘt̲urtle : (Any a, Any b, Any c) => (a, b, c) -> (Char, a, b, c)
@ ᵗᵍp̲arts< "Turtle: at heading steps"
ᵗᵍp̲arts< expands to
TURTLE ← "Turtle" ᵘt̲urtle ← { (at, heading, steps) → (TURTLE, at, heading, steps) } ᵘt̲urtle? ← { (g1:tag, _, _, _) → g1:tag m̲atch TURTLE } ᵘt̲urtleAt ← { (g1:tag, g2:part, _, _) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘt̲urtleHeading ← { (g1:tag, _, g2:part, _) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘt̲urtleSteps ← { (g1:tag, _, _, g2:part) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘs̲etTurtleAt ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch at (g1:tag, g3:new, heading, steps) } ᵘs̲etTurtleHeading ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch heading (g1:tag, at, g3:new, steps) } ᵘs̲etTurtleSteps ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch steps (g1:tag, at, heading, g3:new) } ᵘt̲urtleRows ← { g4:which (g1:tag, at, heading, steps) → (g1:tag, g4:which s̲elect at, g4:which s̲elect heading, g4:which s̲elect steps) }
Used in: start
ᵘt̲urtle? : (Any a, Any b, Any c, Truthy d) => (Char, a, b, c) -> d
@ ᵗᵍp̲arts< "Turtle: at heading steps"
ᵗᵍp̲arts< expands to
TURTLE ← "Turtle" ᵘt̲urtle ← { (at, heading, steps) → (TURTLE, at, heading, steps) } ᵘt̲urtle? ← { (g1:tag, _, _, _) → g1:tag m̲atch TURTLE } ᵘt̲urtleAt ← { (g1:tag, g2:part, _, _) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘt̲urtleHeading ← { (g1:tag, _, g2:part, _) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘt̲urtleSteps ← { (g1:tag, _, _, g2:part) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘs̲etTurtleAt ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch at (g1:tag, g3:new, heading, steps) } ᵘs̲etTurtleHeading ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch heading (g1:tag, at, g3:new, steps) } ᵘs̲etTurtleSteps ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch steps (g1:tag, at, heading, g3:new) } ᵘt̲urtleRows ← { g4:which (g1:tag, at, heading, steps) → (g1:tag, g4:which s̲elect at, g4:which s̲elect heading, g4:which s̲elect steps) }
ᵘt̲urtleAt : (Any a, Any b, Any c) => (Char, a, b, c) -> a
@ ᵗᵍp̲arts< "Turtle: at heading steps"
ᵗᵍp̲arts< expands to
TURTLE ← "Turtle" ᵘt̲urtle ← { (at, heading, steps) → (TURTLE, at, heading, steps) } ᵘt̲urtle? ← { (g1:tag, _, _, _) → g1:tag m̲atch TURTLE } ᵘt̲urtleAt ← { (g1:tag, g2:part, _, _) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘt̲urtleHeading ← { (g1:tag, _, g2:part, _) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘt̲urtleSteps ← { (g1:tag, _, _, g2:part) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘs̲etTurtleAt ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch at (g1:tag, g3:new, heading, steps) } ᵘs̲etTurtleHeading ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch heading (g1:tag, at, g3:new, steps) } ᵘs̲etTurtleSteps ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch steps (g1:tag, at, heading, g3:new) } ᵘt̲urtleRows ← { g4:which (g1:tag, at, heading, steps) → (g1:tag, g4:which s̲elect at, g4:which s̲elect heading, g4:which s̲elect steps) }
Used in: ᵘf̲orward, libs/Tags/demos/turtle.xtl:29
ᵘt̲urtleHeading : (Any a, Any b, Any c) => (Char, a, b, c) -> b
@ ᵗᵍp̲arts< "Turtle: at heading steps"
ᵗᵍp̲arts< expands to
TURTLE ← "Turtle" ᵘt̲urtle ← { (at, heading, steps) → (TURTLE, at, heading, steps) } ᵘt̲urtle? ← { (g1:tag, _, _, _) → g1:tag m̲atch TURTLE } ᵘt̲urtleAt ← { (g1:tag, g2:part, _, _) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘt̲urtleHeading ← { (g1:tag, _, g2:part, _) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘt̲urtleSteps ← { (g1:tag, _, _, g2:part) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘs̲etTurtleAt ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch at (g1:tag, g3:new, heading, steps) } ᵘs̲etTurtleHeading ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch heading (g1:tag, at, g3:new, steps) } ᵘs̲etTurtleSteps ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch steps (g1:tag, at, heading, g3:new) } ᵘt̲urtleRows ← { g4:which (g1:tag, at, heading, steps) → (g1:tag, g4:which s̲elect at, g4:which s̲elect heading, g4:which s̲elect steps) }
ᵘt̲urtleSteps : (Any a, Any b, Any c) => (Char, a, b, c) -> c
@ ᵗᵍp̲arts< "Turtle: at heading steps"
ᵗᵍp̲arts< expands to
TURTLE ← "Turtle" ᵘt̲urtle ← { (at, heading, steps) → (TURTLE, at, heading, steps) } ᵘt̲urtle? ← { (g1:tag, _, _, _) → g1:tag m̲atch TURTLE } ᵘt̲urtleAt ← { (g1:tag, g2:part, _, _) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘt̲urtleHeading ← { (g1:tag, _, g2:part, _) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘt̲urtleSteps ← { (g1:tag, _, _, g2:part) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘs̲etTurtleAt ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch at (g1:tag, g3:new, heading, steps) } ᵘs̲etTurtleHeading ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch heading (g1:tag, at, g3:new, steps) } ᵘs̲etTurtleSteps ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch steps (g1:tag, at, heading, g3:new) } ᵘt̲urtleRows ← { g4:which (g1:tag, at, heading, steps) → (g1:tag, g4:which s̲elect at, g4:which s̲elect heading, g4:which s̲elect steps) }
Used in: ᵘf̲orward, libs/Tags/demos/turtle.xtl:29
ᵘs̲etTurtleAt : (Match a, Any b, Any c) => a -> (Char, a, b, c) -> (Char, a, b, c)
@ ᵗᵍp̲arts< "Turtle: at heading steps"
ᵗᵍp̲arts< expands to
TURTLE ← "Turtle" ᵘt̲urtle ← { (at, heading, steps) → (TURTLE, at, heading, steps) } ᵘt̲urtle? ← { (g1:tag, _, _, _) → g1:tag m̲atch TURTLE } ᵘt̲urtleAt ← { (g1:tag, g2:part, _, _) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘt̲urtleHeading ← { (g1:tag, _, g2:part, _) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘt̲urtleSteps ← { (g1:tag, _, _, g2:part) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘs̲etTurtleAt ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch at (g1:tag, g3:new, heading, steps) } ᵘs̲etTurtleHeading ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch heading (g1:tag, at, g3:new, steps) } ᵘs̲etTurtleSteps ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch steps (g1:tag, at, heading, g3:new) } ᵘt̲urtleRows ← { g4:which (g1:tag, at, heading, steps) → (g1:tag, g4:which s̲elect at, g4:which s̲elect heading, g4:which s̲elect steps) }
Used in: ᵘf̲orward
ᵘs̲etTurtleHeading : (Match a, Any b, Any c) => a -> (Char, b, a, c) -> (Char, b, a, c)
@ ᵗᵍp̲arts< "Turtle: at heading steps"
ᵗᵍp̲arts< expands to
TURTLE ← "Turtle" ᵘt̲urtle ← { (at, heading, steps) → (TURTLE, at, heading, steps) } ᵘt̲urtle? ← { (g1:tag, _, _, _) → g1:tag m̲atch TURTLE } ᵘt̲urtleAt ← { (g1:tag, g2:part, _, _) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘt̲urtleHeading ← { (g1:tag, _, g2:part, _) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘt̲urtleSteps ← { (g1:tag, _, _, g2:part) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘs̲etTurtleAt ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch at (g1:tag, g3:new, heading, steps) } ᵘs̲etTurtleHeading ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch heading (g1:tag, at, g3:new, steps) } ᵘs̲etTurtleSteps ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch steps (g1:tag, at, heading, g3:new) } ᵘt̲urtleRows ← { g4:which (g1:tag, at, heading, steps) → (g1:tag, g4:which s̲elect at, g4:which s̲elect heading, g4:which s̲elect steps) }
ᵘs̲etTurtleSteps : (Match a, Any b, Any c) => a -> (Char, b, c, a) -> (Char, b, c, a)
@ ᵗᵍp̲arts< "Turtle: at heading steps"
ᵗᵍp̲arts< expands to
TURTLE ← "Turtle" ᵘt̲urtle ← { (at, heading, steps) → (TURTLE, at, heading, steps) } ᵘt̲urtle? ← { (g1:tag, _, _, _) → g1:tag m̲atch TURTLE } ᵘt̲urtleAt ← { (g1:tag, g2:part, _, _) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘt̲urtleHeading ← { (g1:tag, _, g2:part, _) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘt̲urtleSteps ← { (g1:tag, _, _, g2:part) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘs̲etTurtleAt ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch at (g1:tag, g3:new, heading, steps) } ᵘs̲etTurtleHeading ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch heading (g1:tag, at, g3:new, steps) } ᵘs̲etTurtleSteps ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch steps (g1:tag, at, heading, g3:new) } ᵘt̲urtleRows ← { g4:which (g1:tag, at, heading, steps) → (g1:tag, g4:which s̲elect at, g4:which s̲elect heading, g4:which s̲elect steps) }
Used in: ᵘf̲orward
ᵘt̲urtleRows : Any a => Int -> (a, b, c, d) -> (a, b, c, d)
@ ᵗᵍp̲arts< "Turtle: at heading steps"
ᵗᵍp̲arts< expands to
TURTLE ← "Turtle" ᵘt̲urtle ← { (at, heading, steps) → (TURTLE, at, heading, steps) } ᵘt̲urtle? ← { (g1:tag, _, _, _) → g1:tag m̲atch TURTLE } ᵘt̲urtleAt ← { (g1:tag, g2:part, _, _) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘt̲urtleHeading ← { (g1:tag, _, g2:part, _) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘt̲urtleSteps ← { (g1:tag, _, _, g2:part) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" g2:part } ᵘs̲etTurtleAt ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch at (g1:tag, g3:new, heading, steps) } ᵘs̲etTurtleHeading ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch heading (g1:tag, at, g3:new, steps) } ᵘs̲etTurtleSteps ← { g3:new (g1:tag, at, heading, steps) → n̲ot g1:tag m̲atch TURTLE ? "wrong-kind" ⎕S̲IGNAL "expected a Turtle" _ ← g3:new m̲atch steps (g1:tag, at, heading, g3:new) } ᵘt̲urtleRows ← { g4:which (g1:tag, at, heading, steps) → (g1:tag, g4:which s̲elect at, g4:which s̲elect heading, g4:which s̲elect steps) }
RIGHT : Int
RIGHT ← EAST c̲at SOUTH c̲at WEST c̲at NORTH ⍝ the heading after a right turn, by heading
Used in: ᵘr̲ight
ᵘf̲orward : Num a => (Char, Int, Int, a) -> (Char, Int, Int, a)
u:f_orward s: one step the way the turtle faces, counted.
ᵘf̲orward ← { s → next ← (ᵘt̲urtleAt s) + (ᵘt̲urtleHeading s) s̲elect MOVE next ᵘs̲etTurtleAt (1 + ᵘt̲urtleSteps s) ᵘs̲etTurtleSteps s }
ᵘr̲ight : (Any a, Any b) => (Char, a, Int, b) -> (Char, a, Int, b)
u:r_ight s and u:l_eft s: a quarter turn, by table.
ᵘr̲ight ← { s → ((ᵘt̲urtleHeading s) s̲elect RIGHT) ᵘs̲etTurtleHeading s }
Used in: over
ᵘl̲eft : (Any a, Any b) => (Char, a, Int, b) -> (Char, a, Int, b)
ᵘl̲eft ← { s → ((ᵘt̲urtleHeading s) s̲elect LEFT) ᵘs̲etTurtleHeading s }
Used in: back
start : (Char, Int, Int, Int)
start ← ᵘt̲urtle (0 0, NORTH, 0)
Used in: libs/Tags/demos/turtle.xtl:24, up
over : (Char, Int, Int, Int)
over ← 2 'ᵘf̲orward p̲ower ᵘr̲ight up ⍝ right, two steps east
Used in: back