parses defines and letrecs