aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/query/parser.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/query/parser.go')
-rw-r--r--pkg/query/parser.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/pkg/query/parser.go b/pkg/query/parser.go
new file mode 100644
index 0000000..355b18c
--- /dev/null
+++ b/pkg/query/parser.go
@@ -0,0 +1,19 @@
+package query
+
+type TokenType uint64
+
+const (
+ TOKEN_ERROR TokenType = iota
+ TOKEN_EOF
+ TOKEN_AND
+ TOKEN_OR
+ TOKEN_NOT
+ TOKEN_SIMILAR
+ TOKEN_STATEMENT
+ // TODO: consider adding regex token
+)
+
+type Token struct {
+ Type TokenType
+ Content string
+}