The Lexer class in the sqlparse library needs to be refactored into a singleton with configurable syntax…
The Lexer class in the sqlparse library needs to be refactored into a singleton with configurable syntax…: a task in repo2rlenv-swe-gen (Harbor dataset). Example: after calling Lexer.get default instance().add keywords({"BACON": sqlparse.tokens.Name.Builtin, "SPAM": sqlparse.tokens.Keyword…
The task
Example: after calling `Lexer.get_default_instance().add_keywords({"BACON": sqlparse.tokens.Name.Builtin, "SPAM": sqlparse.tokens.Keyword, "EGGS": sqlparse.tokens.Keyword})`, parsing `"select * from foo BACON SPAM EGGS;"` should yield individual tokens for `BACON`, `SPAM`, and `EGGS` rather than grouping them as…
Part of FineEnvs/repo2rlenv-swe-gen.