How to parse expressions from inside a controller