js-embedded

Working with a severely limited interpreted language

I'm coding in an embedded language called JS. I want to be able to call three functions in any order. (ABC, ACB, BAC, BCA, CBA, CAB.) The trick? The language doesn't have user-defined functions. It does have a conditional and a looping construct. I think I have three choices. Duplicate a whole bunch of code. Write a preprocessor (...