added support for antlr grammars