hoshom
2020-3-31 07:42:47

using the brag package, how do I make a lexer match a string with escaped quotes? I was following the source listing for making “basic” in the “beautiful racket” tutorial, and it allows string literals using double quotes and single quotes, but how do I make it escape quotes like " ?


hoshom
2020-3-31 07:57:29

re: myself, this seems to work: (:seq "'" (:* (:or (char-complement #\') "\\'")) "'")