"You have the task of converting ASCII characters into Hex and octal, and you're having problems with characters with escape sequences in them? Is that correct?"
Well, it's more along the lines of converting the escape sequence into its actual ASCII code and that number into hex and octal.
I'm only supposed to do the escape sequence characters, but yeah, that's pretty much it.
"Are you parsing the tokens from a file?"
No. It's supposed to be really simple. I show the escape sequence (The actual character), its name, and then its ASCII code, Hex, blah blah.