Coder Social home page Coder Social logo

sqlean's Issues

Safe mode

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.

PyPI package name

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.

Proper parsing of Jinja

The jinja parts are just parsed as string blobs without structure. These should be properly parsed.

Refactor comment treatment

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:

  1. Use the %ignore directive for comments when parsing with lark.
  2. Do a regex pass to find the starting location of all comments
  3. Add the comments to the parse tree.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.