aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/query/lexer.go
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2025-06-26 23:31:09 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2025-06-26 23:37:30 -0400
commit916430e5d3f33a24b13e188428d5335862472411 (patch)
tree9618a1ee28eb6cb6985fddbc507efdef525c0a5d /pkg/query/lexer.go
parentdd431b36c21b4a909d3ae0a12a4e607d326ac3cc (diff)
Improve compilation of clauses to sqlite3 SQL
Diffstat (limited to 'pkg/query/lexer.go')
-rw-r--r--pkg/query/lexer.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/pkg/query/lexer.go b/pkg/query/lexer.go
index 759b5bc..9e64b82 100644
--- a/pkg/query/lexer.go
+++ b/pkg/query/lexer.go
@@ -158,7 +158,6 @@ func Lex(query string) []Token {
for _, match := range matches {
if match[CLAUSE_START] != "" {
tokens = append(tokens, Token{Type: TOK_CLAUSE_START})
- // TODO: set maximum nest level
clauseLevel += 1
}
if match[CLAUSE_OPERATOR] != "" {
@@ -189,7 +188,6 @@ func Lex(query string) []Token {
if match[CLAUSE_END] != "" {
tokens = append(tokens, Token{Type: TOK_CLAUSE_END})
- // TODO: raise err if clauseLevel is 0
clauseLevel -= 1
}
}