Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.26 KB

README.md

File metadata and controls

42 lines (28 loc) · 1.26 KB

ANTLR talk

This project contains a small ANTLR showcase and and a talk introducing ANTLR.

Content

Java showcase

The Java 8 grammar from https://github.com/antlr/grammars-v4/blob/master/java8/Java8.g4 is used as an example.

Calc showcase

  • ListeningCalculator showcases the listener pattern
  • VisitingCalculator showcases the visitor pattern
  • TreeWalkingCalculator showcases tree walking
  • NumberDumper showcases XPath on the AST

Talk

You can find the accompanying talk (German) in the talk folder.

Build

Build with Gradle

./gradlew clean install

Build with Maven

This project uses the Maven wrapper from https://github.com/takari/maven-wrapper. Alternatively you can use your own Maven installation.

./mvnw io.takari:maven:wrapper -Dmaven=3.5.0 
./mvnw clean install

Acknowledgements

Parts of this work are based on https://github.com/nielsutrecht/antlr-pres by Niels Dommerholt and are used under the MIT license 3rdparty-licenses/MIT-LICENSE