Complex expression parser (uses scratchpad.js)