You could use eval to expand whatever syntax you like into function calls. It could be done once at the start of the program and act like a js preprocessor.
I know eval is not kosher but this problem is also not real, so why not.
I know eval is not kosher but this problem is also not real, so why not.