ANTLR 4.6 now generates parsers in Swift


(Terence Parr) #1

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

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


(Rick M) #2

Awesome!

···

On Dec 15, 2016, at 22:11 , Terence Parr via swift-users <swift-users@swift.org> wrote:

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

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:

<Cy9bVsQWQAAxT1J.jpeg>

Enjoy!
Terence Parr
The ANTLR guy

[1] https://github.com/antlr/antlr4
[2] https://github.com/antlr/antlr4/blob/master/doc/swift-target.md

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

--
Rick Mann
rmann@latencyzero.com