Mar 7, 2014 at 12:15 PM
Edited Mar 7, 2014 at 12:16 PM
Sorry, I suppose I do know a bit more about the problem then I was giving you.
The problem was not with parsing the code after the case, it was with parsing the char
. When the parser got to that position it was throwing an error about an invalid char, only expecting it to be one character.
I fixed the problem though, instead of creating the CharLiteral object from:
I used the following code, and it seems to work fine:
new StringLiteral ("CharLiteral", "'", StringOptions.AllowsUEscapes);
Thanks for the quick reply though.