mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-15 15:59:32 -06:00
command cc now works even without loaded grammar. useful for testing closed expressions
This commit is contained in:
@@ -17,7 +17,7 @@ import GF.Infra.Dependencies
|
||||
import GF.Infra.CheckM
|
||||
import GF.Infra.UseIO
|
||||
import GF.Infra.Option
|
||||
import GF.Infra.Modules (greatestResource)
|
||||
import GF.Infra.Modules (greatestResource, modules, emptyModInfo)
|
||||
import GF.System.Readline
|
||||
|
||||
import GF.Text.Coding
|
||||
@@ -254,7 +254,7 @@ emptyGFEnv = do
|
||||
#else
|
||||
let coding = UTF_8
|
||||
#endif
|
||||
return $ GFEnv emptySourceGrammar (mkCommandEnv coding emptyPGF) [] 0 coding
|
||||
return $ GFEnv emptySourceGrammar{modules=[(identW,emptyModInfo)]} (mkCommandEnv coding emptyPGF) [] 0 coding
|
||||
|
||||
encode = encodeUnicode . coding
|
||||
decode = decodeUnicode . coding
|
||||
|
||||
Reference in New Issue
Block a user