Last active
March 22, 2016 06:29
-
-
Save panlw/6373409 to your computer and use it in GitHub Desktop.
Use Antlr v4 to do code generation for .NET
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Generate Lexer/Visitor for syntax tree of MyLanguage | |
# You should download the jar file from | |
# http://tunnelvisionlabs.com/downloads/antlr/2013-02-27-antlr4-csharp-4.0.1-SNAPSHOT.7z | |
java -cp .:./antlr4-csharp-4.0.1-SNAPSHOT-complete.jar org.antlr.v4.CSharpTool -Dlanguage=CSharp_v3_5 -no-listener -visitor -package MyNamespace MyLanguage.g4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How do I find a recent version of
antlr4-csharp-4.0.1-SNAPSHOT.7z
?