I'm working on a DSL that will compile to batch script (for fun...). I'm trying to make a function call, like that: the DSL defines function with parameter named param1. the batch defines a label with param1=%1. the DSL defines a call with some value. the batchs define a call with the value after a space.
The problem is that if the value has a space, it's defined as two parameters. I can escape spaces with ^, but then if i try to escape a double quote, it gets messed up.
Anyone can help me with the ultimate batch parameter escape?
BTW, its written with MPS, and it's here if you want it: https://github.com/TheAnosmic/MPSBatch