This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For this assignment, you will create an interpreter for a minimal imperative WHILE language in Haskell. | |
First, copy the following definitions into a new file called hw5.hs. | |
-- Necessary imports | |
import Control.Applicative ((<$>),liftA,liftA2) | |
import Data.Map | |
import Text.Parsec | |
import Text.Parsec.Expr | |
import Text.Parsec.Language (emptyDef) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- main.hs | |
import Data.Monoid ((<>)) | |
import Graphics.Gloss | |
import Graphics.Gloss.Interface.IO.Game | |
import Math.Geometry.Grid | |
import Math.Geometry.Grid.Square | |
import Data.List | |
import System.Random | |
import System.Random.Shuffle |
NewerOlder