Re:Pure Java Typesetting System
by thangalin on Monday January 23, 2023 @02:05PM
(#34493398)
It's not trivial. Some class names are substrings of other classes. I'm pretty sure this requires loading and parsing the source code's AST to accomplish without breaking the build. The SO thread goes into more gnarly details.
[ Parent
| on HN ]
Re:Pure Java Typesetting System
by dangerlibrary on Tuesday January 24, 2023 @01:03PM
(#34507381)
Sorry, I didn't mean to imply it was trivial, by any means. Just that there are powerful tools for "manipulating many line-delimited text files at once" and those tools seem likely to fit your goal.
It's possible you do in fact need to parse the AST for your goals - I haven't spent the requisite time to deeply understand the problem.