[swift-users] ANTLR 4.6 now generates parsers in Swift

Terence Parr parrt at cs.usfca.edu
Fri Dec 16 00:11:38 CST 2016


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:

https://github.com/antlr/antlr4/releases/tag/4.6 <https://github.com/antlr/antlr4/releases/tag/4.6>

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 <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] https://github.com/antlr/antlr4 <https://github.com/antlr/antlr4>
[2] https://github.com/antlr/antlr4/blob/master/doc/swift-target.md <https://github.com/antlr/antlr4/blob/master/doc/swift-target.md>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20161215/7d9dd3a8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Cy9bVsQWQAAxT1J.jpeg
Type: image/jpeg
Size: 53127 bytes
Desc: not available
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20161215/7d9dd3a8/attachment.jpeg>


More information about the swift-users mailing list