1
0
forked from GitHub/gf-core

nonExist now does the expected thing

This commit is contained in:
kr.angelov
2013-08-23 13:17:45 +00:00
parent e769d5db29
commit 288bcafb79
15 changed files with 72 additions and 17 deletions

View File

@@ -21,6 +21,7 @@ module GF.Grammar.Predef
, cString
, cVar
, cInts
, cNonExist
, cPBool
, cErrorType
, cOverload
@@ -94,6 +95,9 @@ cOverload = identC (BS.pack "overload")
cUndefinedType :: Ident
cUndefinedType = identC (BS.pack "UndefinedType")
cNonExist :: Ident
cNonExist = identC (BS.pack "nonExist")
isPredefCat :: Ident -> Bool
isPredefCat c = elem c [cInt,cString,cFloat]