The strongly typed language that compiles directly to Lua.
To generate the lexer and parser from the grammar files, you'll need the antlr4 executable and a valid java installation.
Make sure the target language is CSharp and that the output directory is under Crater/Antlr.
The listener is can be omited (-no-listener) but the visitor is required.
Here is what that command should look like:
java -jar antlr4.jar -Dlanguage=CSharp -package Crater.Antlr -message-format antlr -no-listener -visitor -o Crater/Antlr -Xexact-output-dir ./Crater/CraterLexer.g4 ./Crater/CraterParser.g4After running this you should see the following under Crater/Antlr:
- CraterLexer (
.cs,.interp,.tokens) - CraterParser (
.cs,.interp,.tokens) - CraterParserBaseVisitor.cs
- CraterParserVisitor.cs
The project will not build without those files!