summaryrefslogtreecommitdiff
path: root/src/GF/Compile
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2008-03-15 14:53:42 +0000
committeraarne <aarne@cs.chalmers.se>2008-03-15 14:53:42 +0000
commitc73bc4f996b3259fa162d7dd11a23224053ceeae (patch)
treedd3406d9f06beefedb214feffabf9d119d8383ce /src/GF/Compile
parenteff08dfe88d677453a889b128f05a01935bf4e10 (diff)
switched to unmodified BNFC-generated components
Diffstat (limited to 'src/GF/Compile')
-rw-r--r--src/GF/Compile/GetGrammar.hs8
-rw-r--r--src/GF/Compile/PGrammar.hs2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/GF/Compile/GetGrammar.hs b/src/GF/Compile/GetGrammar.hs
index 2b908bd81..41c2c063d 100644
--- a/src/GF/Compile/GetGrammar.hs
+++ b/src/GF/Compile/GetGrammar.hs
@@ -19,7 +19,7 @@ module GF.Compile.GetGrammar (
) where
import GF.Data.Operations
-import qualified GF.Data.ErrM as E ----
+import qualified GF.Source.ErrM as E
import GF.Infra.UseIO
import GF.Grammar.Grammar
@@ -62,14 +62,14 @@ getSourceModule opts file0 = do
Just "utf8" -> decodeUTF8 string0
_ -> string0
let tokens = myLexer string
- mo1 <- ioeErr $ {- err2err $ -} pModDef tokens
+ mo1 <- ioeErr $ err2err $ pModDef tokens
ioeErr $ transModDef mo1
getSourceGrammar :: Options -> FilePath -> IOE SourceGrammar
getSourceGrammar opts file = do
string <- readFileIOE file
let tokens = myLexer string
- gr1 <- ioeErr $ {- err2err $ -} pGrammar tokens
+ gr1 <- ioeErr $ err2err $ pGrammar tokens
ioeErr $ transGrammar gr1
@@ -101,7 +101,7 @@ parseOldGrammar :: FilePath -> IOE ([FilePath],[A.TopDef])
parseOldGrammar file = do
putStrLnE $ "reading old file" +++ file
s <- ioeIO $ readFileIf file
- A.OldGr incl topdefs <- ioeErr $ pOldGrammar $ oldLexer $ fixNewlines s
+ A.OldGr incl topdefs <- ioeErr $ err2err $ pOldGrammar $ oldLexer $ fixNewlines s
includes <- ioeErr $ transInclude incl
return (includes, topdefs)
diff --git a/src/GF/Compile/PGrammar.hs b/src/GF/Compile/PGrammar.hs
index 1890ff0dd..1c6f0b411 100644
--- a/src/GF/Compile/PGrammar.hs
+++ b/src/GF/Compile/PGrammar.hs
@@ -32,7 +32,7 @@ import GF.Data.Operations
pTerm :: String -> Err Term
pTerm s = do
- e <- {- err2err $ -} pExp $ myLexer s
+ e <- err2err $ pExp $ myLexer s
transExp e
pTrm :: String -> Term