Changed the list concatenation operator to be ++ in Rain
This commit is contained in:
parent
46aa0383be
commit
6758cd7da3
|
@ -36,7 +36,7 @@ $hexDigit = [0-9 a-f A-F]
|
|||
| "+" | "-" | "*" | "/" | "%"
|
||||
| ">=" | "<="
|
||||
| "<" | ">"
|
||||
| ".."
|
||||
| ".." | "++"
|
||||
| "process" | "function"
|
||||
| "pareach" | "seqeach" | "par" | "seq"
|
||||
| "run" | "return" | "now"
|
||||
|
|
|
@ -103,6 +103,7 @@ dyadicArithOp
|
|||
<|> do {m <- reserved "*" ; return (m,A.Times) }
|
||||
<|> do {m <- reserved "/" ; return (m,A.Div) }
|
||||
<|> do {m <- reserved "%" ; return (m,A.Rem) }
|
||||
<|> do {m <- reserved "++" ; return (m,A.Concat) }
|
||||
|
||||
dyadicCompOp :: RainParser (Meta,A.DyadicOp)
|
||||
dyadicCompOp
|
||||
|
@ -113,6 +114,7 @@ dyadicCompOp
|
|||
<|> do {m <- reserved "==" ; return (m,A.Eq) }
|
||||
<|> do {m <- reserved "<>" ; return (m,A.NotEq) }
|
||||
|
||||
-- TODO remove this in future, I think
|
||||
monadicArithOp :: RainParser (Meta,A.MonadicOp)
|
||||
monadicArithOp
|
||||
= do {m <- reserved "-" ; return (m,A.MonadicMinus) }
|
||||
|
|
Loading…
Reference in New Issue
Block a user