Verbatim String ending with backslash

Oct 13, 2011 at 7: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 9:57 AM

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


Jan 20, 2012 at 2:58 AM

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

Jan 24, 2012 at 8:10 AM

Thank you!