Update PATH token types

Remove unused PATH token and move EDGE tokens to literals.
This commit is contained in:
Tobie Morgan Hitchcock 2016-11-03 08:13:34 +00:00
parent 4db1bbe944
commit 3b20033ebf

View file

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