1
0
forked from GitHub/gf-core

GF shell: fixed problems with previous change of the -retain flag

Because the prompt included the name of the abstract syntax, the loading
of the PGF was forced even if -retain was used. Even worse,
if an error occured while loading the PGF, it was repeated and caught
every time the prompt was printed, creating an infite loop. The solution
is to not print the name of the abstract syntax when the grammar is
imported with -retain, which is the way things were before anyway.
This commit is contained in:
hallgren
2015-02-27 16:42:09 +00:00
parent e0bc6308e0
commit 632aab83c3
3 changed files with 12 additions and 11 deletions

View File

@@ -95,4 +95,4 @@ runInterruptibly = lift1 IO.runInterruptibly
lazySIO = lift1 lazyIO
importGrammar pgf opts files = lift0 $ GF.importGrammar pgf opts files
importSource src opts files = lift0 $ GF.importSource src opts files
importSource opts files = lift0 $ GF.importSource opts files