@@ -17,7 +17,7 @@ data Assoc = L | N | R deriving (Eq,Show)
17type OpTable = [(Int, Assoc, String)]
17type OpTable = [(Int, Assoc, String)]
19table :: OpTable
19table :: OpTable
20−table = [ (9, R, ".")
20+table = [ (9, R, "."), (9, R, "<<"), (9, L, ">>")
21 , (8, R, "^")
21 , (8, R, "^")
22 , (7, L, "*"), (7, L, "/"), (7, L, "mod"), (7, L, "div"), (7, L, "rem")
22 , (7, L, "*"), (7, L, "/"), (7, L, "mod"), (7, L, "div"), (7, L, "rem")
23 , (6, L, "+"), (6, L, "-")
23 , (6, L, "+"), (6, L, "-")
@@ -28,6 +28,7 @@ table = [ (9, R, ".")
28 , (3, R, "&&")
28 , (3, R, "&&")
29 , (2, R, "||")
29 , (2, R, "||")
30 , (0, R, "$")
30 , (0, R, "$")
31+ , (0, R, "<|"), (0, L, "|>")
33opLevel op = Map.findWithDefault 9 op dict
34opLevel op = Map.findWithDefault 9 op dict