oliverxchen / sqlean Goto Github PK
View Code? Open in Web Editor NEW🧹 Clean your SQL queries! 🧹
License: MIT License
🧹 Clean your SQL queries! 🧹
License: MIT License
The current way of considering comments is not scalable for the grammar. From the lark docs:
Using the
%ignore
directive results in a cleaner grammar.It’s especially important for the LALR(1) algorithm, because adding whitespace (or comments, or other extraneous elements) explicitly in the grammar, harms its predictive abilities, which are based on a lookahead of 1.
Currently, comments are explicitly included in the grammar and then styled appropriately. A potential alternative strategy is to:
%ignore
directive for comments when parsing with lark.sqlean is currently using lark v0.12.0. Parsing breaks when upgrading to lark v1.0.0. Lark release are here: https://github.com/lark-parser/lark/releases
A safe mode CLI option should test whether the parse tree of the original query is equivalent to the parse tree of the styled query.
Hello Oliver! I'm the maintainer of the sqlean project, which started in 2021 and is being actively developed till nowadays. The project reached the point where I'd like to publish it as a PyPI package, but found the sqlean
name taken by your project.
As your project seems abandoned and not used by anyone (sorry if I'm wrong) — would you, by any chance, agree to transfer the sqlean
package name to my project?
Sorry if I'm asking too much.
The jinja parts are just parsed as string blobs without structure. These should be properly parsed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.