use list instead of deque
Dependencies
- [2]
JDF4JUMSsome attempts at abstract syntax - [3]
HQ2ZYTX5add comment lexing and remove references stuff - [4]
6XMVEBZAadd simple stuff (e.g. haskell basics) - [5]
QXX6KTFXSyntax.Abstract: implement eval - [6]
GMGXNJEPadd back more stuff from yanais
Change contents
- edit in core/lib/GardGround/Syntax/Abstract.hs at line 15
import qualified Deque.Strict as Deq - edit in core/lib/GardGround/Syntax/Abstract.hs at line 33
type Deque a = Deq.Deque a - replacement in core/lib/GardGround/Syntax/Abstract.hs at line 35
-- values at the front are applied first, further applications get appended to backdata Neutral = Neutral NeutralRoot (Deque Value)-- inner (later) values are applied first, further applications get appended to frontdata Neutral = Neutral NeutralRoot [Value] - replacement in core/lib/GardGround/Syntax/Abstract.hs at line 57
vapp (VNeutral (Neutral nam xs)) = \v -> Right . VNeutral . Neutral nam $ Deq.snoc v xsvapp (VNeutral (Neutral nam xs)) = \v -> Right . VNeutral . Neutral nam $ v:xs - replacement in core/lib/GardGround/Syntax/Abstract.hs at line 83
boundfree >>= \bf -> foldM (\a b -> EApply a <$> quote i b) (ENeutralRoot bf) xsboundfree >>= \bf -> foldM (\a b -> EApply a <$> quote i b) (ENeutralRoot bf) (reverse xs) - edit in core/gardground-core.cabal at line 44
, deque ^>= 0.4.0.0