change empty tuple to (,) and add back parsing

This commit is contained in:
darkf 2013-10-29 03:05:19 -07:00
parent d653902028
commit f1af997708
1 changed files with 4 additions and 4 deletions

View File

@ -80,6 +80,7 @@ tupleSeq p cons = do
emptyTuple cons = do
symbol "("
symbol ","
symbol ")"
return $ cons []
@ -171,11 +172,10 @@ accessOp = do
expr1 = try block
<|> try lambda
-- <|> try funDef
<|> try def
-- <|> try (emptyTuple TupleConst)
-- <|> try (tupleSeq exprparser TupleConst)
-- <|> parens exprparser
<|> try (emptyTuple TupleConst)
<|> try (tupleSeq exprparser TupleConst)
<|> parens exprparser
<|> listSeq exprparser ListConst
<|> try ifExpr
<|> try bool