diff --git a/sql/token.go b/sql/token.go index f6d2eeb2..fc437d2b 100644 --- a/sql/token.go +++ b/sql/token.go @@ -31,7 +31,6 @@ const ( DATE // 1970-01-01 TIME // 1970-01-01T00:00:00+00:00 - PATH // person->like->person JSON // {"test":true} IDENT // something THING // @class:id @@ -44,6 +43,10 @@ const ( DURATION // 13h PARAM // $1 + OEDGE // -> + IEDGE // <- + BEDGE // <-> + DOT // . COMMA // , QMARK // ? @@ -82,10 +85,6 @@ const ( INS // ∈ NIS // ∉ - OEDGE // -> - IEDGE // <- - BEDGE // <-> - operatorEnd // literals @@ -204,7 +203,6 @@ var tokens = [...]string{ DATE: "DATE", TIME: "TIME", - PATH: "PATH", JSON: "JSON", IDENT: "IDENT", THING: "THING", @@ -217,6 +215,10 @@ var tokens = [...]string{ DURATION: "DURATION", PARAM: "PARAM", + OEDGE: "->", + IEDGE: "<-", + BEDGE: "<->", + DOT: ".", COMMA: ",", QMARK: "?", @@ -251,10 +253,6 @@ var tokens = [...]string{ INS: "∈", NIS: "∉", - OEDGE: "->", - IEDGE: "<-", - BEDGE: "<->", - // keywords ACCEPT: "ACCEPT",