Skip to content

ANTLR Setup Documentation

If I did not overlook anything, there is currently no documentation on how to generate the ANTLR Java files. In my understanding, the following snippet does the job:

antlr4  -visitor -package edu.kit.kastel.formal.scar.antlr ./src/main/antlr/edu/kit/kastel/formal/scar/Lex.g4 && antlr4  -visitor -package edu.kit.kastel.formal.scar.antlr ./src/main/antlr/edu/kit/kastel/formal/scar/SCApp.g4 && mv src/main/antlr/edu/kit/kastel/formal/scar/*.{interp,tokens,java} ./src/main/java/edu/kit/kastel/formal/scar/antlr/