sql-parser-go is a simple sql parser, for now, it only implements the lexer part.
go build -o parser main.go
./parser nfa --sql="select col1, col2 from t01 where id <= 100 and col1 = 'abc'"
or
./parser dfa --sql="select col1, col2 from t01 where id <= 100 and col1 = 'abc'"
document of lexer