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
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",