smilymzx, on 05 December 2010 - 11:10 AM, said:
I think it is zzo38's final decision to do the conversion by part-conversion and part-manual input, I don't mind.
The four utilities described here do not require manual adjustment, the conversion is fully automated.
The only thing that does require manual adjustment in my opinion, is converting a ZZT world into a workable MegaZeux world (PZX-mode is also required, or at least highly recommended, in this case) (many manual adjustments are required due to the differences between ZZT and MegaZeux; although the conversion of many (but not all) of these differences can be automated using Forth codes in PZX-mode).
If you have interest in converting a ZZT world into a workable MegaZeux world, we can make a separate topic to discuss it.
Quote
But you are free to make a port of these from (Enhanced) CWEB to another, easier language. As long as it stays Public Domain,
and zzo38 (Utility Creator) and I, SmilyMZX (For the Idea) Get credited in the utilities in a simple readme
CTANGLE will convert .w files into .c files, but all comments and indentations are stripped, #line directives are added to point to the .w file (and .ch file if it is used), things are rearranged in the order that the C compiler expects them, all @d commands are converted to #define and put together in one place, metamacros (not used in MZCNVPAK) are expanded, codes inside of @{ ... @} blocks (not used in MZCNVPAK) are executed ahead of time instead of being copied into the .c file, etc.
(CWEAVE converts a .w file into a .tex file, in an entirely different way than CTANGLE, although metamacros are still expanded, and there are a few other common things, too.)
Since these programs are public domain, you can do what you want with them, including using the algorithms in your own programs (in any programming language), and so on. But I do request, like smilymzx does, that if you do port it and include it with MegaZeux, to keep it public domain and credit both zzo38 and smilymzx.