posted 17 years ago
Is there any such thing as code that operates on the codebase, like a compiler, but instead of creating machine code, it just creates modified human readable code? This is hard to explain, so let me give an example. Suppose we have the following codebase:
Now, we apply the following command to the codebase:
And the result is:
Of course, I realize that IDEs can do this (to a certain extent), but I was just wondering if anyone ever developed an actual rigorous language for this kind of thing.
[ June 15, 2008: Message edited by: Wally Flint ]
[ June 15, 2008: Message edited by: Wally Flint ]