diff options
| author | bjorn <bjorn@bringert.net> | 2008-10-20 11:59:31 +0000 |
|---|---|---|
| committer | bjorn <bjorn@bringert.net> | 2008-10-20 11:59:31 +0000 |
| commit | d41616dd6aa52c813edf7dabef4c0684fae4e4e0 (patch) | |
| tree | 0d6490e8978902b32e55b631567fa99eef43159f /src/PGF/Expr.hs | |
| parent | 2174690c5e60667955bbf9fd6f0a8d3beb1734a9 (diff) | |
Added Read and Show instances for CId. Also added readCId :: String -> Maybe CId, and use that for readLanguage.
Diffstat (limited to 'src/PGF/Expr.hs')
| -rw-r--r-- | src/PGF/Expr.hs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/PGF/Expr.hs b/src/PGF/Expr.hs index 0dde19310..3b8ec01bc 100644 --- a/src/PGF/Expr.hs +++ b/src/PGF/Expr.hs @@ -10,7 +10,7 @@ module PGF.Expr(Tree(..), Literal(..), Value(..), Env, eval, apply,
-- helpers
- pIdent,pStr,pFactor
+ pStr,pFactor
) where
import PGF.CId
@@ -145,13 +145,6 @@ pStr = RP.char '"' >> (RP.manyTill (pEsc RP.<++ RP.get) (RP.char '"')) where
pEsc = RP.char '\\' >> RP.get
-pCId = fmap mkCId pIdent
-
-pIdent = liftM2 (:) (RP.satisfy isIdentFirst) (RP.munch isIdentRest)
- where
- isIdentFirst c = c == '_' || isLetter c
- isIdentRest c = c == '_' || c == '\'' || isAlphaNum c
-
-----------------------------------------------------
-- Printing
|
