Fix parsing of ++ operator

Dhall was failing to parse `++` because the `+` operator was being parsed with
higher priority.  The fix is to switch the order in which the two operator
parses are tried
This commit is contained in:
Gabriel Gonzalez 2016-11-09 17:30:27 -08:00
parent 53fd657827
commit 2586682bcc

View File

@ -293,8 +293,8 @@ exprC = expressionParser
, operator Combine combine
]
, [ operator BoolOr (symbol "||")
, operator NaturalPlus (symbol "+" )
, operator TextAppend (symbol "++")
, operator NaturalPlus (symbol "+" )
]
, [ operator BoolEQ (symbol "==")
, operator BoolNE (symbol "/=")