fix: minor bugs && example

This commit is contained in:
2025-12-07 01:17:31 +07:00
parent 26ae65f527
commit b2ba3c707f
3 changed files with 109 additions and 6 deletions

View File

@@ -1,5 +1,10 @@
package main
func main() {
import "github.com/e1lama/spl/lexer"
func main() {
tokens := lexer.Tokenize(`index=security (action=failed OR action=denied or action=accepted) host!="localhost" | stats count by dest_ip | sort -count`)
for _, token := range tokens {
lexer.Debug(token)
}
}