Commit Graph

14 Commits

Author SHA1 Message Date
Ewan Mellor 19ac145081
[Swift] Add version info to the documentation.
Add a documention note about which versions of Antlr require which versions
of Swift.
2018-11-15 11:26:09 -08:00
Ewan Mellor ed52b5a053
Add an accessLevel parser option.
Add an accessLevel parser option.  Use this to specify the access level
(public, etc) used on the classes and protocols in the generated
parser / lexer / listeners.  This required adding the option to
tool.Grammar.parserOptions so that it was known as a valid option, and
to codegen.model.{Recognizer,ListenerFile,VisitorFile} so that it was
available to the template in all the necessary contexts.

The Swift template has been extended to recognize this option, and generate
classes and members using "open", "public" or "internal" as appropriate.

This is only fully implemented for Swift.  The option is generic, but
the language-specific templates will need to be updated for any language
that would like similar support.

Closes #1597.
2017-11-16 00:18:28 -08:00
Ewan Mellor 63d83a8bcc
Add a note to the documentation regarding -message-format gnu's suitability
for Xcode.

Mention use of -o while we're here.
2017-10-29 12:12:58 -07:00
Hanzhou Shi 0dce38109c Update boot.py and swift-target.md to reflect Swift 4 migration changes. 2017-10-21 12:44:44 -07:00
Ewan Mellor 4d628174df
Update Swift runtime documentation.
We now use boot.py and Swift Package Manager to generate the .xcodeproj
rather than having those committed in the source repo.
2017-10-20 10:12:44 -07:00
Hanzhou Shi 4c93b71983 Updated swift-target.md. 2017-08-05 13:57:53 -07:00
hanjoes 12744d40ad Update swift-target.md 2016-12-14 23:13:37 -08:00
Hanzhou Shi 03709dc879 Tweak picture size. 2016-12-14 23:11:18 -08:00
Hanzhou Shi c7e291e77b Tweak Swift target doc. 2016-12-14 22:53:34 -08:00
Hanzhou Shi bf37edf039 Tweak Swift target doc. 2016-12-14 22:50:53 -08:00
hanjoes 86ea75dcea More doc for Swift target. 2016-12-14 22:30:26 -08:00
Ewan Mellor b0c3824357 Create a new Xcode playground for Swift.
This takes the example from
https://github.com/janyou/Antlr-Swift-Runtime/tree/master/Test and packages
it into an Xcode playground.  This allows the user to interact with the
grammar directly inside Xcode, and serves as a live demo of the Swift support.

Update the docs to match.
2016-12-01 01:23:52 -08:00
janyou a74b33339c update swift-target.md 2016-11-23 07:00:17 +08:00
parrt 10fb0a3049 add info on Swift target 2016-11-22 12:11:13 -08:00