Re: [go-nuts] Looking for a SQLite statement parser

2024-12-02 Thread 'Jacob Shandling' via golang-nuts
Thanks for the references Julian and Jim! On Tuesday, November 26, 2024 at 8:26:07 AM UTC-8 Jim Idle wrote: I revamped the Go code generation not so long ago - performance is sound with reasonably well written grammars, and very good with good grammars. Unfortunately the sample grammars for SQL

Re: [go-nuts] Looking for a SQLite statement parser

2024-11-26 Thread 'Jim Idle' via golang-nuts
I revamped the Go code generation not so long ago - performance is sound with reasonably well written grammars, and very good with good grammars. Unfortunately the sample grammars for SQL are poor and will give massive performance problems with all targets (Java, C++, etc). I decided not to spen

Re: [go-nuts] Looking for a SQLite statement parser

2024-11-25 Thread Julian Peterson
Hi, For lexer/parser generation, I've used antlr with some success. https://www.antlr.org/ The go code generation is a little rough atm, but not a show stopper. Also, they have grammars for many languages, so they might be useful even on their own: https://github.com/antlr/grammars-v4 (sqlite is

Re: [go-nuts] Looking for a SQLite statement parser

2024-11-25 Thread 'Jacob Shandling' via golang-nuts
*> parse the SQLite command, create an AST* Hello Mr. O'Toole, This is precisely the task I am looking to carry out, followed by walking the AST. Did you ever end up finding a good Go parser for SQLite, or building one yourself? I see your rqlite/sql

Re: [go-nuts] Looking for a SQLite statement parser

2017-01-31 Thread Philip O'Toole
Great -- thanks for the reference, I'll take a look. Philip On Tue, Jan 31, 2017 at 10:02 AM, Vasiliy Tolstov wrote: > cznic/ql have own lexer for SQL and it syntax very similar. > > 31 Янв 2017 г. 16:33 пользователь написал: > >> Hello, >> >> I am the creator of rqlite (https://github.com/rql

Re: [go-nuts] Looking for a SQLite statement parser

2017-01-31 Thread Vasiliy Tolstov
cznic/ql have own lexer for SQL and it syntax very similar. 31 Янв 2017 г. 16:33 пользователь написал: > Hello, > > I am the creator of rqlite (https://github.com/rqlite/rqlite), a > distributed relational database built on SQLite. > > I'm looking for a lexer and parser for SQL -- specifically S

[go-nuts] Looking for a SQLite statement parser

2017-01-31 Thread philip
Hello, I am the creator of rqlite (https://github.com/rqlite/rqlite), a distributed relational database built on SQLite. I'm looking for a lexer and parser for SQL -- specifically SQLite, to improve the ease-of-use of rqlite. I've thought about looking into using the C code exposed by the SQLi