Tutorial

Tutorial

ANTLR 4简明教程

Example

array-example

find . -type f
mvn package
java -cp target/array-init-1.0-jar-with-dependencies.jar org.examples.app.App

And let’s feed it the following input:

{1,2,3}
^D

The ^D signals the end of the input to the standard input stream and gets the rest of the application going. You should see the following output:

(init { (value 1) , (value 2) , (value 3) })
0%