initial implementation of parentheses: match failure