From 4c99687f217ce258f821d55e68f5403233f6dea7 Mon Sep 17 00:00:00 2001 From: aarne Date: Fri, 7 Nov 2003 14:54:44 +0000 Subject: Fixed treatment of predefined types (Int, String). Fixed treatment of predefined types (Int, String). Added treatment of new reserved words to reading old grammars. --- src/GF/Grammar/Values.hs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/GF/Grammar/Values.hs') diff --git a/src/GF/Grammar/Values.hs b/src/GF/Grammar/Values.hs index 9df2fc13e..4d787488d 100644 --- a/src/GF/Grammar/Values.hs +++ b/src/GF/Grammar/Values.hs @@ -31,11 +31,18 @@ type MetaSubst = [(MetaSymb,Val)] -- for TC +valAbsInt, valAbsString :: Val +valAbsInt = VCn (cPredefAbs, cInt) +valAbsString = VCn (cPredefAbs, cString) + vType :: Val vType = VType -cType :: Ident +cType,cPredefAbs,cInt,cString :: Ident cType = identC "Type" --- #0 +cPredefAbs = identC "PredefAbs" +cInt = identC "Int" +cString = identC "String" eType :: Exp eType = Sort "Type" -- cgit v1.2.3