TeX Live 2018 is available for installation over the Internet or as TeX Live on DVD! (Other methods are possible, see the webpage.)
I did some simple searches but no promising hits for a LaTeX query language.
Suggestions/pointers?
Not a concrete project but curious about identifying common practices across a corpus of LaTeX files.