If you need help to setup everything you can read the Java Setup section of the ANTLR Mega Tutorial
The commands you need to know:
// to generate the program use maven
mvn package
// to launch the application
java -cp target/markup-example-1.0-jar-with-dependencies.jar me.tomassetti.examples.MarkupParser.App
// to run the tests
mvn test