A simple hello world grammar can be found here:
// define a grammar called Hello
grammar Hello;
r : 'hello' ID;
ID : [a-z]+ ;
WS : [ \t\r\n]+ -> skip ;
To build this .g4 sample you can run the following command from your operating systems terminal/command-line:
Java -jar antlr-4.5.3-...