parses expressions