An analyzer for ClickHouse SQL.
The idea for this project is to have a tool like rust-analyzer for ClickHouse SQL (LSP, auto-complete, formatting, code suggestions, analysis, node extraction, etc.)
There's not much code here, it is only able to parse some elements of a SELECT
query.
Feel free to modify and restructure the project as needed.
To learn more about the theory for this parser, read this blog post.
The code has some sample WASM functions. If you want to build the WASM you can follow this guide from MDN.
See example_output.txt
for example of what the tree looks like.