mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
trying to get the coding flag to work in grammars
This commit is contained in:
@@ -186,9 +186,11 @@ moduleOptionsGFO :: ModuleOptions -> [(String,String)]
|
||||
moduleOptionsGFO (ModuleOptions o) =
|
||||
maybe [] (\x -> [("language",x)]) (optSpeechLanguage mfs)
|
||||
++ maybe [] (\x -> [("startcat",x)]) (optStartCat mfs)
|
||||
-- ++ maybe [] (\x -> [("coding", e2s x)]) (Just (optEncoding mfs))
|
||||
++ (if optErasing mfs then [("erasing","on")] else [])
|
||||
where mfs = o defaultModuleFlags
|
||||
|
||||
where
|
||||
mfs = o defaultModuleFlags
|
||||
e2s e = maybe [] id $ lookup e [(s,e) | (e,s) <- encodings]
|
||||
|
||||
-- Option manipulation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user