Fork me on GitHub
#instaparse
<
2018-04-08
>
misha12:04:11

greetings! I am having a trouble to match 2 consequent backslashes (clj):

(insta/parse
  (insta/parser "s = #'\\\\'")
  "\\\\")
=> Parse error at line 1, column 1:
\\
^
Expected:
#"\\" (followed by end-of-string)

(insta/parse
  (insta/parser "s = #\"\\\\\"")
  "\\\\")
=> Parse error at line 1, column 1:
\\
^
Expected:
#"\\" (followed by end-of-string)
at this point I am just brut forcing with no luck