Sha256: 410e8d9a1d9d15769c9ad084d552c15e6fe593911bbd3205f4bba20ac18b4626
Contents?: true
Size: 585 Bytes
Versions: 52
Compression:
Stored size: 585 Bytes
Contents
{-# LANGUAGE OverloadedStrings #-} module Forth ( ForthError(..) , ForthState , evalText , toList , empty ) where import Data.Text (Text) data ForthError = DivisionByZero | StackUnderflow | InvalidWord | UnknownWord Text deriving (Show, Eq) data ForthState = Dummy empty :: ForthState empty = error "You need to implement this function." evalText :: Text -> ForthState -> Either ForthError ForthState evalText = error "You need to implement this function." toList :: ForthState -> [Int] toList = error "You need to implement this function."
Version data entries
52 entries across 52 versions & 1 rubygems