Open SwagColoredKitteh opened 8 years ago
Another issue is that it means multiple passes of the same string so performance might be problematic.
It might be a solution to make built-in preprocessors that act on the individual command datastructures and to integrate the most important preprocessors.
Another drawback of this would be that you might depend on external scripts in arbitrary programming languages, which could hurt portability, might be better to export the already-translated file.
Instead of implementing macros into shiny-pancake itself, we could define a command
#PIPE <COMMAND>
that tells shiny-pancake to execute the command and pipe everything through it, then use the output of that command. This would allow macros to be implemented in any language.One very bad concequence, though, may be that anyone malicious could use this to execute arbitrary code on someone's system. So might want to force all of these to be manually whitelisted with a configuration file or command-line parameter.