Skip to content

Commit

Permalink
Fix PARSE_ERROR by adjusting operator parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
NaoEhSavio committed Oct 4, 2024
1 parent 15caee8 commit 37280a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Kind/Parse.hs
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,8 @@ parseOper = P.choice
, P.try (string "*") >> return MUL
, P.try (string "/") >> return DIV
, P.try (string "%") >> return MOD
, P.try (string "<<") >> return LSH
, P.try (string ">>") >> return RSH
, P.try (string "<=") >> return LTE
, P.try (string ">=") >> return GTE
, P.try (string "<") >> return LT
Expand All @@ -356,8 +358,6 @@ parseOper = P.choice
, P.try (string "&") >> return AND
, P.try (string "|") >> return OR
, P.try (string "^") >> return XOR
, P.try (string "<<") >> return LSH
, P.try (string ">>") >> return RSH
]

parseBook :: Parser Book
Expand Down

0 comments on commit 37280a4

Please sign in to comment.