Skip to content

Instantly share code, notes, and snippets.

@panlw
Last active March 22, 2016 06:29
Show Gist options
  • Save panlw/6373409 to your computer and use it in GitHub Desktop.
Save panlw/6373409 to your computer and use it in GitHub Desktop.
Use Antlr v4 to do code generation for .NET
#!/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
@asbjornu
Copy link

How do I find a recent version of antlr4-csharp-4.0.1-SNAPSHOT.7z?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment