Version 4 of ANTLR produces parse trees (contrary to abstract syntax trees). Depending
on how your grammar is written, this can cause the parse tree to become large. This
library might help compact the parse tree and adds the possibility to serialize the
parse tree to JSON (and the other way around).