diff options
| author | peb <unknown> | 2005-02-18 18:21:06 +0000 |
|---|---|---|
| committer | peb <unknown> | 2005-02-18 18:21:06 +0000 |
| commit | 9568d7a844ba6a1872a8e8f6ef002860057e62ab (patch) | |
| tree | 9e25c6ed62e48101a2782d5fb8dcba68462dc613 /src/GF/Grammar/Values.hs | |
| parent | 1c4f025320900897ae3acdab6982f7d595b98dd1 (diff) | |
"Committed_by_peb"
Diffstat (limited to 'src/GF/Grammar/Values.hs')
| -rw-r--r-- | src/GF/Grammar/Values.hs | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/src/GF/Grammar/Values.hs b/src/GF/Grammar/Values.hs index b99fef467..fdbce53de 100644 --- a/src/GF/Grammar/Values.hs +++ b/src/GF/Grammar/Values.hs @@ -1,18 +1,27 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : (Maintainer) +-- Module : Values +-- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:13 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.6 $ -- -- (Description of the module) ----------------------------------------------------------------------------- -module Values where +module Values (-- * values used in TC type checking + Exp, Val(..), Env, + -- * annotated tree used in editing + Tree, TrNode(..), Atom(..), Binds, Constraints, MetaSubst, + -- * for TC + valAbsInt, valAbsString, vType, + isPredefCat, + cType, cPredefAbs, cInt, cString, + eType, tree2exp, loc2treeFocus + ) where import Operations import Zipper @@ -45,19 +54,28 @@ type MetaSubst = [(MetaSymb,Val)] -- for TC -valAbsInt, valAbsString :: Val +valAbsInt :: Val valAbsInt = VCn (cPredefAbs, cInt) + +valAbsString :: Val valAbsString = VCn (cPredefAbs, cString) vType :: Val vType = VType -cType,cPredefAbs,cInt,cString :: Ident +cType :: Ident cType = identC "Type" --- #0 + +cPredefAbs :: Ident cPredefAbs = identC "PredefAbs" + +cInt :: Ident cInt = identC "Int" + +cString :: Ident cString = identC "String" +isPredefCat :: Ident -> Bool isPredefCat c = elem c [cInt,cString] eType :: Exp |
