From: pimjager Date: Wed, 13 Apr 2016 09:37:35 +0000 (+0200) Subject: Merge branch 'master' of https://github.com/dopefishh/cc1516 X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=3b2d959ee14ecfd95008dfe536c87b8b1629c1ae;p=cc1516.git Merge branch 'master' of https://github.com/dopefishh/cc1516 --- 3b2d959ee14ecfd95008dfe536c87b8b1629c1ae diff --cc sem.icl index f0241e1,c5e14f3..19092df --- a/sem.icl +++ b/sem.icl @@@ -59,9 -59,9 +59,9 @@@ instance toString SemError wher toString t1, ". Given: ", toString t2] sem :: AST -> SemOutput -sem (AST vd fd) = case runStateT m ('Map'.newMap, getRandomStream 0) of +sem (AST vd fd) = case evalStateT m ('Map'.newMap, getRandomStream 1) of Left e = Left [e] - Right (vds, fds) = Right (AST vds fds) + Right ((vds, fds), gamma) = Right ((AST vds fds), gamma) where m :: Env (([VarDecl], [FunDecl])) m = (mapM semVarDecl vd) >>= \vds ->