I'm currently using a token parser and have a simple expression based language which supports binary and unary expressions, numerics and strings (QuotedString.CStyle). Given the following I would expect the same result to just be returned to the console (minus quotes) "\\nHello", but I instead get unexpected character '"', expected '-', '(', number or string.. Is there something I'm missing in regards to how this should work?
Any string without a backslash in it works as intended. I have a match for a backslash token in my tokenizer. Not sure if I should need this, given quoted strings are text parsers?
I'm currently using a token parser and have a simple expression based language which supports binary and unary expressions, numerics and strings (QuotedString.CStyle). Given the following I would expect the same result to just be returned to the console (minus quotes)
"\\nHello"
, but I instead getunexpected character '"', expected '-', '(', number or string.
. Is there something I'm missing in regards to how this should work?