diff options
| author | bringert <unknown> | 2005-06-17 13:15:16 +0000 |
|---|---|---|
| committer | bringert <unknown> | 2005-06-17 13:15:16 +0000 |
| commit | 2c48a10236bb19d8b04382cb1e957ce18b9d29fd (patch) | |
| tree | 1194fc1981b5cd2a144b72f4fff261edfeb1af2e /src/GF/Compile | |
| parent | 05b5ffe5bf03a870f6fe0728ace6c0d8de69b89e (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/Compile')
| -rw-r--r-- | src/GF/Compile/GrammarToCanon.hs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/GF/Compile/GrammarToCanon.hs b/src/GF/Compile/GrammarToCanon.hs index e69113a21..9d93589d6 100644 --- a/src/GF/Compile/GrammarToCanon.hs +++ b/src/GF/Compile/GrammarToCanon.hs @@ -5,9 +5,9 @@ -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date: 2005/05/30 21:08:14 $ --- > CVS $Author: aarne $ --- > CVS $Revision: 1.20 $ +-- > CVS $Date: 2005/06/17 14:15:18 $ +-- > CVS $Author: bringert $ +-- > CVS $Revision: 1.21 $ -- -- Code generator from optimized GF source code to GFC. ----------------------------------------------------------------------------- @@ -197,10 +197,10 @@ redCTerm t = case t of (_,c,xx) <- termForm t xx' <- mapM redCTerm xx case c of - QC p c -> liftM2 G.Con (redQIdent (p,c)) (return xx') + QC p c -> liftM2 G.Par (redQIdent (p,c)) (return xx') _ -> prtBad "expected constructor head instead of" c Q p c -> liftM G.I (redQIdent (p,c)) - QC p c -> liftM2 G.Con (redQIdent (p,c)) (return []) + QC p c -> liftM2 G.Par (redQIdent (p,c)) (return []) R rs -> do let (ls,tts) = unzip rs ls' = map redLabel ls |
