[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sc-devel] preprocessor



I wonder if we should add the preProcessor idea that I have suggested a couple of months ago. This would allow to embed other languages into sc.


It would look like this:


interpretPrintCmdLine {
		var res, func, code = cmdLine;

		preProcessor !? { code = preProcessor.value(cmdLine, this) };
		func = this.compile(code);
		res = func.value;
		codeDump.value(cmdLine, res, func);
		"\n".post;
		res.postln;
	}

(you need to change the primitive to allow this change)

--





.