Fix identifiers starting with t or f not parsing

This commit is contained in:
darkf 2013-10-23 19:33:13 -07:00
parent 5c341d7df4
commit 702d34ca86
2 changed files with 2 additions and 1 deletions

View File

@ -49,6 +49,7 @@ bind (env:xs) name value = (M.insert name value env):xs
instance Show Value where
show (IntV i) = show i
show (StrV s) = show s
show (BoolV b) = show b
show (TupleV v) = "(" ++ intercalate "," (map show v) ++ ")"
show (ListV v) = show v
show (FnV _ _) = "<fn>"

View File

@ -154,7 +154,7 @@ expr' = try block
<|> parens exprparser
<|> listSeq exprparser ListConst
<|> try ifExpr
<|> bool
<|> try bool
<|> fmap Var identifier
<|> fmap StrConst stringLiteral
<|> fmap IntConst integer