generate expressions from asts