Fixed the type of a range to at least be a list
This commit is contained in:
parent
839d92546b
commit
05866457e4
|
@ -215,8 +215,8 @@ literal = do {lr <- stringLiteral ; return $ A.Literal (findMeta lr) (A.List A.B
|
||||||
<?> "literal"
|
<?> "literal"
|
||||||
|
|
||||||
range :: RainParser A.Expression
|
range :: RainParser A.Expression
|
||||||
range = try $ do {m <- sLeftQ ; begin <- integerLiteral; sDots ; end <- integerLiteral ;
|
range = try $ do {m <- sLeftQ ; begin <- literal; sDots ; end <- literal ;
|
||||||
sRightQ ; return $ A.ExprConstr m $ A.RangeConstr m A.Any begin end}
|
sRightQ ; return $ A.ExprConstr m $ A.RangeConstr m (A.List A.Any) begin end}
|
||||||
|
|
||||||
expression :: RainParser A.Expression
|
expression :: RainParser A.Expression
|
||||||
expression
|
expression
|
||||||
|
|
Loading…
Reference in New Issue
Block a user