cqlsh cql3 syntax support for double-quoted names

i.e., at least don't throw an error on seeing "" in cql text
This commit is contained in:
paul cannon 2012-04-03 13:56:14 -05:00 committed by Eric Evans
parent f119da0e87
commit ab536050df
1 changed files with 2 additions and 0 deletions

View File

@ -209,6 +209,7 @@ syntax_rules = r'''
JUNK ::= /([ \t\r\f\v]+|(--|[/][/])[^\n\r]*([\n\r]|$)|[/][*].*?[*][/])/ ;
<stringLiteral> ::= /'([^']|'')*'/ ;
<dquoteLiteral> ::= /"([^"]|"")*"/ ;
<float> ::= /-?[0-9]+\.[0-9]+/ ;
<integer> ::= /-?[0-9]+/ ;
<uuid> ::= /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/ ;
@ -230,6 +231,7 @@ JUNK ::= /([ \t\r\f\v]+|(--|[/][/])[^\n\r]*([\n\r]|$)|[/][*].*?[*][/])/ ;
;
<name> ::= <identifier>
| <stringLiteral>
| <dquoteLiteral>
| <integer>
;
<term> ::= <stringLiteral>