No need to integrate with visual studio.
Download the jar file here: http://www.antlr.org/download/antlr-runtime-4.5.1.jar
Save it until C:\Test
Add the jar to your classpath:
System Properties Dialog Box> Environment Variables> Create or Add to CLASSPATH Variable
put C:\Test\antlr-runtime-4.5.1.jar
, ;
C:\Test
, C:\Test
"outputdirectory" ( {outputdirectory} {input}:
java org.antlr.v4.Tool -o -visitor -no-listener -Werror -o {outputdirectory} -Dlanguage=CSharp {input}.g4