Suppose that you have the following grammar rules:
ESCAPE_B = "\b";
ESCAPE_T = "\t";
ESCAPE_N = "\n";
ESCAPE_F = "\f";
ESCAPE_R = "\r";
ESCAPE_SL = "\";
ESCAPE_SQ = "'";
Then, the following parser configuration code will be generated.
g.str("ESCAPE_B", "\b");
g.str("ESCAPE_F", "\f");
g.str("ESCAPE_N", "\n");
g.str("ESCAPE_R", "\r");
g.str("ESCAPE_SL", "\");
g.str("ESCAPE_SQ", "'");
g.str("ESCAPE_T", "\t");
However, the correct code would be:
g.str("ESCAPE_B", "\b");
g.str("ESCAPE_F", "\f");
g.str("ESCAPE_N", "\n");
g.str("ESCAPE_R", "\r");
g.str("ESCAPE_SL", "\\");
g.str("ESCAPE_SQ", "\'");
g.str("ESCAPE_T", "\t");
Work Around:
ESCAPE_B = '' , 'b';
ESCAPE_T = '' , 't';
ESCAPE_N = '' , 'n';
ESCAPE_F = '', 'f';
ESCAPE_R = '', 'r';
ESCAPE_SL = '','";
ESCAPE_SQ = '', "'";
This is a bug in the code-generator, not in the snowflake library itself.