mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-25 02:38:55 -06:00
gf -cshell bug fix
The functions cExpr and hsExpr in GF.Command.Commands2 need to handle string literals.
This commit is contained in:
@@ -804,12 +804,16 @@ prMorphoAnalysis (w,lps) =
|
|||||||
hsExpr c =
|
hsExpr c =
|
||||||
case unApp c of
|
case unApp c of
|
||||||
Just (f,cs) -> H.mkApp (H.mkCId f) (map hsExpr cs)
|
Just (f,cs) -> H.mkApp (H.mkCId f) (map hsExpr cs)
|
||||||
_ -> error "GF.Command.Commands2.hsExpr"
|
_ -> case unStr c of
|
||||||
|
Just str -> H.mkStr str
|
||||||
|
_ -> error $ "GF.Command.Commands2.hsExpr "++show c
|
||||||
|
|
||||||
cExpr e =
|
cExpr e =
|
||||||
case H.unApp e of
|
case H.unApp e of
|
||||||
Just (f,es) -> mkApp (H.showCId f) (map cExpr es)
|
Just (f,es) -> mkApp (H.showCId f) (map cExpr es)
|
||||||
_ -> error "GF.Command.Commands2.cExpr"
|
_ -> case H.unStr e of
|
||||||
|
Just str -> mkStr str
|
||||||
|
_ -> error $ "GF.Command.Commands2.cExpr "++show e
|
||||||
|
|
||||||
needPGF exec opts ts =
|
needPGF exec opts ts =
|
||||||
do Env mb_pgf cncs <- getPGFEnv
|
do Env mb_pgf cncs <- getPGFEnv
|
||||||
|
|||||||
Reference in New Issue
Block a user