parrt/antlr4 — pull request #29 by sharwell (2012-02-29 17:30:04+00:00)
Title: Trim to size listener

Add a `ParseListener` which calls `ArrayList.trimToSize` on the `ParserRuleContext.children` in `exitEveryRule`. Add `Parser.getTrimParseTrees` and `Parser.setTrimParseTrees` for control of the feature. Defaults to disabled (same as current behavior).