Sha256: b1e73ee4cf85c1e60295d779ccd8f85a941557c3b2f4b2810289a7811083b839

Contents?: true

Size: 469 Bytes

Versions: 13

Compression:

Stored size: 469 Bytes

Contents

{-# LANGUAGE OverloadedStrings #-}

module Forth
  ( ForthError(..)
  , ForthState
  , evalText
  , formatStack
  , empty
  ) where

import Data.Text (Text)

data ForthError
     = DivisionByZero
     | StackUnderflow
     | InvalidWord
     | UnknownWord Text
     deriving (Show, Eq)

empty :: ForthState
empty = undefined

evalText :: Text -> ForthState -> Either ForthError ForthState
evalText = undefined

formatStack :: ForthState -> Text
formatStack = undefined

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
trackler-2.0.0.2 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.0.1 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.0.0 tracks/haskell/exercises/forth/src/Forth.hs
trackler-1.0.4.1 tracks/haskell/exercises/forth/src/Forth.hs
trackler-1.0.4.0 tracks/haskell/exercises/forth/src/Forth.hs
trackler-1.0.3.0 tracks/haskell/exercises/forth/src/Forth.hs
trackler-1.0.2.1 tracks/haskell/exercises/forth/src/Forth.hs
trackler-1.0.2.0 tracks/haskell/exercises/forth/src/Forth.hs
trackler-1.0.1.2 tracks/haskell/exercises/forth/src/Forth.hs
trackler-1.0.1.1 tracks/haskell/exercises/forth/src/Forth.hs
trackler-1.0.1.0 tracks/haskell/exercises/forth/src/Forth.hs
trackler-1.0.0.1 tracks/haskell/exercises/forth/src/Forth.hs
trackler-1.0.0 tracks/haskell/exercises/forth/src/Forth.hs