Ported to ANTLR 4