summaryrefslogtreecommitdiff
path: root/src/GF/Canon/CMacros.hs
diff options
context:
space:
mode:
authorbringert <unknown>2005-06-17 13:15:16 +0000
committerbringert <unknown>2005-06-17 13:15:16 +0000
commit2c48a10236bb19d8b04382cb1e957ce18b9d29fd (patch)
tree1194fc1981b5cd2a144b72f4fff261edfeb1af2e /src/GF/Canon/CMacros.hs
parent05b5ffe5bf03a870f6fe0728ace6c0d8de69b89e (diff)
Changed name of Con constructor in GFC.cf to avoid errors on Windows when generating Java code with BNFC for the GFC grammar. CON is a reserved filename on Windows. Con was changed to Par, and all the code using was changed too.
Diffstat (limited to 'src/GF/Canon/CMacros.hs')
-rw-r--r--src/GF/Canon/CMacros.hs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/GF/Canon/CMacros.hs b/src/GF/Canon/CMacros.hs
index 2c1e6f639..69ef2e8ee 100644
--- a/src/GF/Canon/CMacros.hs
+++ b/src/GF/Canon/CMacros.hs
@@ -5,9 +5,9 @@
-- Stability : (stable)
-- Portability : (portable)
--
--- > CVS $Date: 2005/04/21 16:21:21 $
+-- > CVS $Date: 2005/06/17 14:15:17 $
-- > CVS $Author: bringert $
--- > CVS $Revision: 1.24 $
+-- > CVS $Revision: 1.25 $
--
-- Macros for building and analysing terms in GFC concrete syntax.
--
@@ -121,7 +121,7 @@ tM = K . KM
term2patt :: Term -> Err Patt
term2patt trm = case trm of
- Con c aa -> do
+ Par c aa -> do
aa' <- mapM term2patt aa
return (PC c aa')
R r -> do
@@ -135,7 +135,7 @@ term2patt trm = case trm of
patt2term :: Patt -> Term
patt2term p = case p of
- PC x ps -> Con x (map patt2term ps)
+ PC x ps -> Par x (map patt2term ps)
PV x -> LI x
PW -> anyTerm ----
PR pas -> R [ Ass lbl (patt2term q) | PAss lbl q <- pas ]
@@ -258,10 +258,10 @@ composSafeOp op trm = case composOp (mkMonadic op) trm of
composOp :: Monad m => (Term -> m Term) -> Term -> m Term
composOp co trm =
case trm of
- Con x as ->
+ Par x as ->
do
as' <- mapM co as
- return (Con x as')
+ return (Par x as')
R as ->
do
let onAss (Ass l t) = liftM (Ass l) (co t)