mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
Include .gf file name in source parsing syntax error message.
This commit is contained in:
@@ -41,7 +41,7 @@ getSourceModule opts file0 = do
|
|||||||
file <- foldM runPreprocessor file0 (flag optPreprocessors opts)
|
file <- foldM runPreprocessor file0 (flag optPreprocessors opts)
|
||||||
string <- readFileIOE file
|
string <- readFileIOE file
|
||||||
let tokens = myLexer string
|
let tokens = myLexer string
|
||||||
mo1 <- ioeErr $ pModDef tokens
|
mo1 <- ioeErr $ errIn file0 $ pModDef tokens
|
||||||
mo2 <- ioeErr $ transModDef mo1
|
mo2 <- ioeErr $ transModDef mo1
|
||||||
return $ addOptionsToModule opts mo2
|
return $ addOptionsToModule opts mo2
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user