Commit 9395baf0 authored by Adrian Cochrane's avatar Adrian Cochrane

Describe input types

parent fbf14a48
...@@ -17,4 +17,17 @@ type Declaration = Function List Char Maybe Type List List Char Expression | ...@@ -17,4 +17,17 @@ type Declaration = Function List Char Maybe Type List List Char Expression |
Type List Char List List Char List Tuple List Char Type | Type List Char List List Char List Tuple List Char Type |
Import URL Maybe List Char List List Char Maybe URL | Import URL Maybe List Char List List Char Maybe URL |
Parser URL List Char Parser URL List Char
type Program = Program List List Char List Declaration # arguments: exports declarations type Program = Program List List Char List Declaration # arguments: exports declarations
\ No newline at end of file
type Time = Time Real # Unix time
type Duration = Duration Real # In seconds
type Timeline a = Change Duration a Timeline a | Future Duration Timeline a | End
type MouseButton = Primary | Secondary | Middle
type Coord = Coord Real Real
type Mouse = Scroll Signed Signed |
Press MouseButton | Release MouseButton |
Move Coord
type Keyboard = Down Char | Up Char | Press Char
type Touch = Down Coord | Move Coord | Up Coord
type GameControl = # TODO
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment