modified parser to check for binary and unary definitions in defn