mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-22 09:32:53 -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.CheckM
|
||||||
import GF.Infra.UseIO
|
import GF.Infra.UseIO
|
||||||
import GF.Infra.Option
|
import GF.Infra.Option
|
||||||
import GF.Infra.Modules (greatestResource)
|
import GF.Infra.Modules (greatestResource, modules, emptyModInfo)
|
||||||
import GF.System.Readline
|
import GF.System.Readline
|
||||||
|
|
||||||
import GF.Text.Coding
|
import GF.Text.Coding
|
||||||
@@ -254,7 +254,7 @@ emptyGFEnv = do
|
|||||||
#else
|
#else
|
||||||
let coding = UTF_8
|
let coding = UTF_8
|
||||||
#endif
|
#endif
|
||||||
return $ GFEnv emptySourceGrammar (mkCommandEnv coding emptyPGF) [] 0 coding
|
return $ GFEnv emptySourceGrammar{modules=[(identW,emptyModInfo)]} (mkCommandEnv coding emptyPGF) [] 0 coding
|
||||||
|
|
||||||
encode = encodeUnicode . coding
|
encode = encodeUnicode . coding
|
||||||
decode = decodeUnicode . coding
|
decode = decodeUnicode . coding
|
||||||
|
|||||||
Reference in New Issue
Block a user