Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
spookylukey
· 7mo ago · 0 comments
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'
Comments
[–]
evnc
7mo ago
oh this is neat! Feels like exactly the sort of thing I was gesturing towards. Thanks :)