You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok this is pretty sneaky: andoptbind anyTok $ \ c => ... means we'll consume
any token and succeed even if the continuation fails (in which case we return (c, Nothing)). This means that we accept any character following a \, and
only have a special behaviour if it happens to be u aka the start of a unicode
character.
While I was porting the JSON parser to Agda yesterday I think I have
found a bug in the string literal parser:
idris-tparsec/src/TParsec/Combinators/Chars.idr
Lines 154 to 156 in 75b2887
After having read a
\
we will only accept au
followed by 4 hexadecimaldigits aka. a unicode character. Shouldn't we also accept:
\
"
r
,n
, ort
?
The text was updated successfully, but these errors were encountered: