featurebase/pql
Matt Jaffee 1c1204fc77
modify PQL parser to handle escapes in string values
This modifies the parser to properly "unquote" incoming strings. So if
a string comes in double or single quoted, we approximately follow Go
rules for removing the quotes and processing escape sequences.

The differences from Go are:
1. we only support backslash, quote, tab and newline escape
sequenences.
2. Single quoted strings are supported and work just like double
quoted strings.
3. The peg parser won't actually accept backquoted strings (I don't
think)

Fixes: #411
2020-05-29 07:58:50 -05:00
..
ast.go modify PQL parser to handle escapes in string values 2020-05-29 07:58:50 -05:00
ast_test.go serialize null operation (!= null) 2020-04-09 17:56:27 -05:00
decimal.go return early on mantissa=0 2020-04-22 19:11:23 -05:00
decimal_test.go Adjust decimal precision if we have decimal places to sacrifice. 2020-04-22 17:10:05 -05:00
doc.go Apply Apache License 2.0 2017-04-28 14:22:03 -05:00
parser.go modify PQL parser to handle escapes in string values 2020-05-29 07:58:50 -05:00
parser_test.go modify PQL parser to handle escapes in string values 2020-05-29 07:58:50 -05:00
pql.peg modify PQL parser to handle escapes in string values 2020-05-29 07:58:50 -05:00
pql.peg.go modify PQL parser to handle escapes in string values 2020-05-29 07:58:50 -05:00
pqlpeg_test.go Add support for int == null 2020-05-22 12:29:52 -05:00
token.go allow floats in PQL queries for decimal fields 2019-11-13 10:07:24 -06:00