Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
spookylukey
16d ago
0 comments
Share
The project pyastgrep
https://pyastgrep.readthedocs.io/en/latest/
can use CSS selectors as a query language for Python syntax (default is XPath).
e.g.:
pyastgrep --css 'Call > func > Name#main'
0 comments
default
newest
oldest
evnc
16d ago
oh this is neat! Feels like exactly the sort of thing I was gesturing towards. Thanks :)
j
/
k
navigate · click thread line to collapse