Optimise the Ninja parsing of expressions