Implemented matcher.parsePattern() and matcher.getTrees().
Implemented matcher.getLeaves().
Finished implementing all currently existing methods in the pattern matcher.