Verbatim String ending with backslash

Oct 13, 2011 at 8:53 AM

I did not manage to create a (non-literal) verbatim string in a semantic action that ends with a backslash:

%start start
start : { Console.WriteLine("abc\\"); }

This always results in a "Error: Literal string terminated by EOL" with gppg 1.4.5. Using any number of backslashes ("abc\", "abc\\\", etc.) doesn't change anything. However, @"abc\" works as expected.

Didn't I get the syntax right or is this a bug?


Oct 16, 2011 at 10:57 AM

Hi Martin.  Sounds like a bug.  I'll check it out and post an answer.


Jan 20, 2012 at 3:58 AM

Hii Martin.  Yes it was a bug, in ScanAction.y.  Fixed in version 1.4.6

Jan 24, 2012 at 9:10 AM

Thank you!