99100101102103104105106107108109
found = true; } //If there aren't any matches if (!found) throw new SyntaxException(input, null); } if (!parenStack.isEmpty()) throw new UnbalancedParenthesesException(parens.peek(), input, null); return result; }