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

Version Path
trackler-2.0.8.18 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.8.17 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.8.16 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.8.15 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.8.14 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.8.13 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.8.12 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.8.11 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.8.10 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.8.9 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.8.8 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.8.7 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.8.6 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.8.5 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.8.4 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.8.3 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.8.2 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.8.1 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.7.0 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.6.44 tracks/haskell/exercises/forth/src/Forth.hs