Add initial implementation of BracketParseState to handle groups.