News for hackers. Stuff that matters.
Re:Notes on the M4 Macro Language (2008) by dmux on Thursday May 19, 2022 @08:01PM (#31441792)
Is anyone aware of other general purpose text manipulation tools concerning documentation within source files? I've been trying to find something like JSDoc that I can use to get some editor hints around parameter types, return values, etc.
Re:Notes on the M4 Macro Language (2008) by yjftsjthsd-h on Friday May 20, 2022 @12:38AM (#31443411)
I don't know if this is what you're looking for, but that vaguely sounds like literate programming, and in particular tools like https://en.wikipedia.org/wiki/Web_(programming_system)#CWEB and https://en.wikipedia.org/wiki/Noweb

(Or maybe you're looking for something totally different; I'm not aware of anything that uses literate programming to feed hints back into an editor, although I'm sure someone has made emacs do it, probably using org mode;])