From 96786c1136332efa9a889227c524ef8fe4e47fe8 Mon Sep 17 00:00:00 2001 From: krasimir Date: Sun, 20 Sep 2009 13:47:08 +0000 Subject: syntax for implicit arguments in GF --- src/GF/Grammar/CF.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/GF/Grammar/CF.hs') diff --git a/src/GF/Grammar/CF.hs b/src/GF/Grammar/CF.hs index 5d88916cd..2a94bbfdb 100644 --- a/src/GF/Grammar/CF.hs +++ b/src/GF/Grammar/CF.hs @@ -112,8 +112,8 @@ cf2rule (fun, (cat, items)) = (def,ldef) where f = identS fun def = (f, AbsFun (Just (mkProd (args', Cn (identS cat), []))) Nothing Nothing) args0 = zip (map (identS . ("x" ++) . show) [0..]) items - args = [(v, Cn (identS c)) | (v, Left c) <- args0] - args' = [(identS "_", Cn (identS c)) | (_, Left c) <- args0] + args = [((Explicit,v), Cn (identS c)) | (v, Left c) <- args0] + args' = [(Explicit,identS "_", Cn (identS c)) | (_, Left c) <- args0] ldef = (f, CncFun Nothing (Just (mkAbs (map fst args) -- cgit v1.2.3