ANTLR-based DOT grammar