Y
Hacker News
new
|
ask
|
show
|
jobs
by
spookylukey
51 days ago
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'
1 comments
evnc
51 days ago
oh this is neat! Feels like exactly the sort of thing I was gesturing towards. Thanks :)
link