Sujet : Writing own source disk
De : malcolm.arthur.mclean (at) *nospam* gmail.com (Malcolm McLean)
Groupes : comp.lang.cDate : 02. Jun 2024, 13:54:17
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v3hmha$3banl$1@dont-email.me>
User-Agent : Mozilla Thunderbird
Writing a prgram which writes its own source to standard output is a standard programming problem. It's called a quine. And I have achieved a quine. But a serious quine. Not contrived special purpose code, but serious codde which can be used to package up source for real. And it's completely portable ANSI C. So of course it can't write output to disk - that is impossible to achive portably. Instead it writes its own source to standard output using a simle XML format called FileSystem, which represents the source tree.
And it's very exciting and the very first program has just been written, and its on the Baby X resource compiler guthub repository, and I encourage eveyone to get involved. I've achieved the goal. Now everything needs to be packaged up and presented to make it easy to use.
But this is a fantastic direction for the resource compiler.
https://github.com/MalcolmMcLean/babyxrc-- Check out Basic Algorithms and my other books:https://www.lulu.com/spotlight/bgy1mm