whatfeats.awk - a cli program to list C++ features #4463
Unanswered
misutoneko
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is just a fun idea I had of how to use all that tree-sitter POWA:
https://gist.github.com/misutoneko/34d3d9478036773a24ae7ba6386ec211
So it's a bit similar to binwalk or the file utility, but for C++ source.
You just give it a filename as a parameter and you'll get a set of strings as output.
The strings give you a very compressed view of tree-sitter info (a list of whatever C++ features were found).
C++ is huge at this point and with lots of legacy code, so could be useful to orient youself in an unknown codebase.
Beta Was this translation helpful? Give feedback.
All reactions