diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2025-04-27 00:49:27 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2025-04-27 00:49:27 -0400 |
| commit | 34b8d8ff1f9d65c08a9156d72f08cf548183c6f4 (patch) | |
| tree | a00fa0410a7bcde125a37b50b3a4956c838fa569 /pkg/query/parser.go | |
| parent | 42527fdb0aca0d30652bb3052b80ab75ab057572 (diff) | |
Large commit; many features
Diffstat (limited to 'pkg/query/parser.go')
| -rw-r--r-- | pkg/query/parser.go | 19 |
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 +} |
