Started with unions.

This commit is contained in:
aarne
2004-02-27 07:43:52 +00:00
parent 2e1b578783
commit 0166b27ee4
14 changed files with 1324 additions and 1182 deletions

View File

@@ -10,6 +10,7 @@ import Modules
import ReadFiles
import ShellState
import MkResource
import MkUnion
-- the main compiler passes
import GetGrammar
@@ -177,6 +178,9 @@ makeSourceModule opts env@(k,gr,can) mo@(i,mi) = case mi of
mos = modules gr
--- putp " type checking reused" $ ioeErr $ showCheckModule mos mo2
return $ (k,mo2)
MTUnion ty imps -> do
mo' <- ioeErr $ makeUnion gr i ty imps
compileSourceModule opts env mo'
_ -> compileSourceModule opts env mo
_ -> compileSourceModule opts env mo
where