I have a generic parser class which I have packaged as an exe. The program opens a configuration file which contains the parsing rules. The problem is when the user tries to define an escape sequence as a token. In a compiler environment this is as simple as
But of course the compiler then converts this to the actual ASCII value for me.
So I am looking for a standardized way to interpret all possible escape sequences as read from the configuration file.