ClangQL
gritql
ClangQL | gritql | |
---|---|---|
3 | 5 | |
182 | 2,668 | |
- | 13.9% | |
0.0 | 9.5 | |
over 2 years ago | 3 days ago | |
C | Rust | |
GNU Lesser General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ClangQL
-
ClangQL: A tool to run SQL-like query on C/C++ Code
I made a similar tool with the same name a couple of years ago :D https://github.com/frabert/ClangQL
- Proof of concept: query C++ codebases using SQLite and clangd
- Show HN: Query C++ codebases using SQLite
gritql
-
amber, a code search & replace tool
Yeah it doesn't look like this is AST-aware at all.
If you want to do queries that understand the grammar, https://github.com/getgrit/gritql is closer to what you're looking for.
Ex. here's how you would search for your example of looking for a string unless it's inside a string constant. [0]
grit apply '"this_string" => `new_string` where { $match <: not within string() }'
[0] https://app.grit.io/studio?key=v8iA8zIbHs2uCykNpSF_G
-
Ask HN: I have been unable to land a job in two years, does anybody
I've issued a few bounties on my repo [0], and it's worked fairly well from my perspective. I'm both the bounty assigner and the maintainer in this case.
Keep in mind that open source is always a bit messy, and a lot of people on all projects (even without bounties) never actually follow through with contributions that they plan to do for a whole host of reasons. The way I've approached it is once someone either has a track record of contributing or makes substantial (visible) process on a PR I assign the bounty to them.
[0] https://github.com/getgrit/gritql/issues?q=is%3Aopen+is%3Ais...
-
ClangQL: A tool to run SQL-like query on C/C++ Code
Cool to see another query language for source code! Yours is definitely closer to SQL than GritQL is.[0] I particularly like the count semantics.
[0] https://github.com/getgrit/gritql
-
Show HN: GritQL, a Rust CLI for rewriting source code
Yes, Grit does support embedded languages. Right now we support Vue syntax: https://github.com/getgrit/gritql/blob/4ff989e8d665cc9ffa2cb...
We don't have support for HTML yet, but if you open an issue we're happy to explore it.
What are some alternatives?
Sourcetrail - Sourcetrail - free and open-source interactive source explorer
putout - 🐊 Pluggable and configurable JavaScript Linter, code transformer and formatter, drop-in ESLint superpower replacement 💪 with built-in support for js, jsx typescript, flow, markdown, yaml and json. Write declarative codemods in a simplest possible way 😏