Dear Swift-users! Just a quick note that I finally got the Swift code generation target for the ANTLR 4 parser generator integrated and released! You can see the release notes here:
To get Swift ANTLR runtime, clone the ANTLR repository.[2] Open it in finder. From the root directory of the repo, go to runtime/Swift folder. You will see the Xcode project manifest file: Antlr4.xcodeproj. Drag it into your project. See Swift target notes[2] for more info.
You also need to download the tool itself (which is still in java) here:
http://www.antlr.org/download.html
Or, if use Jetbrain’s AppCode, you can use the ANTLR 4 plugin:
Enjoy!
Terence Parr
The ANTLR guy
[1] GitHub - antlr/antlr4: ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.
[2] https://github.com/antlr/antlr4/blob/master/doc/swift-target.md