1
0
forked from GitHub/gf-core

Use Happy grammar for imports extraction instead of hand made shallow crapy grammar

This commit is contained in:
krasimir
2008-04-22 08:33:23 +00:00
parent b286c625a4
commit 082668f182
8 changed files with 7991 additions and 3656 deletions

View File

@@ -50,10 +50,5 @@ getSourceModule opts file0 = do
_ -> return file0
string <- readFileIOE file
let tokens = myLexer string
mo1 <- ioeErr $ err2err $ pModDef tokens
mo1 <- ioeErr $ pModDef tokens
ioeErr $ transModDef mo1
err2err :: E.Err a -> Err a
err2err (E.Ok v) = Ok v
err2err (E.Bad s) = Bad s