Commit Graph

205 Commits

Author SHA1 Message Date
parrt a5f47c8c55 start on doc for Case insensitive lexing 2017-12-05 14:53:25 -08:00
parrt 4c3ce09811 start on doc for Case insensitive lexing 2017-12-05 14:51:50 -08:00
Nicolas 490cd7068c Make some changes to the docs for grammars to describe support for lexers
containing modes.
2017-12-04 17:25:51 +13:00
Terence Parr e8dd80523e
Merge pull request #2126 from ewanmellor/generator-access-levels
Add an accessLevel parser option.
2017-11-29 09:56:24 -08:00
Terence Parr 963d44f930
Merge pull request #2024 from kaedvann/master
[CSharp] #2021 fixes nuget packaging options to avoid missing dll exceptions
2017-11-25 12:17:15 -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
Rostislav Listerenko 9ec6c665d5 #2021 nuget artifact in appveyor 2017-11-13 08:47:15 +03:00
Mike Lischke eaed562cb3 Merge branch 'master' into interpreter2 2017-11-11 11:06:53 +01:00
Terence Parr 21a38b3cea
Merge pull request #2086 from ewanmellor/message-output
Improve the "gnu" message format
2017-11-04 10:49:37 -07:00
Terence Parr 1701d769d3
Update antlr-project-testing.md 2017-11-04 09:20:11 -07: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
JavaDDD d00b7333d8 Update getting-started.md
Introduction to install on Unix based systems version mismatch.
2017-10-23 18:15:47 +03:30
Mike Lischke 16242e43c0 Merge branch 'master' into interpreter2 2017-10-22 13:48:10 +02: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
Terence Parr c9c7561701 Merge pull request #2032 from ewanmellor/swift-4
Migrate the Swift runtime to Swift 4.
2017-10-21 12:26:29 -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
simkimsia 51fc50dbcb Update getting-started.md
change all mentions of 4.5.3 to 4.7 since that's what the quickstart on http://www.antlr.org/ homepage is already showing
2017-10-15 16:14:50 +08:00
Terence Parr 51c743c80e Merge pull request #2017 from moon-fall/master
correct the version of the antlr jar package
2017-10-10 12:33:07 -07:00
fallnirvana 41cd0309a7 correct the version of the antlr jar package
version of the antlr jar package is different from other place of this doc,and it make mistake.
2017-09-19 23:19:39 +08:00
Sachin Jain 7ed8fe6d29 Minor formatting
Introduced newlines to have better view of steps.
2017-09-11 16:23:45 +05:30
Hanzhou Shi 4c93b71983 Updated swift-target.md. 2017-08-05 13:57:53 -07:00
Mike Lischke aa2d34bdfd Merge branch 'master' into interpreter2 2017-06-30 13:44:11 +02:00
Terence Parr 62a2d5c9df Merge branch 'master' into patch-1 2017-06-29 16:13:41 -07:00
Daniel Katz 30836a47c5 CharStreams is deprecated in 4.7 2017-06-13 21:29:44 +03:00
Erik A. Brandstadmoen 2ff746493e Charstreams.fromString -> Charstreams.fromstring 2017-06-11 23:58:01 +02:00
Erik A. Brandstadmoen 85154d06ee Changed incorrect .js file endings to .cs in doc/charp-target.md 2017-06-11 23:43:39 +02:00
Corey Kosak 1bb3eb1ebf Fix listener example in C++ documentation.
The listener example still refers to Ref<> and shared pointers, but in
reality the generated method does not pass a shared pointer. The actual
signature looks more like this:

  virtual void enterKey(ParserRuleContext * /*ctx*/) override { }

This change updates the example to match that signature, and removes a line
discussing Ref<>. It also adds the "override" keyword in order to make the
user's code a little more robust against typos/changes in the grammar.
2017-06-01 11:15:48 -04:00
Terence Parr c97abe5bc2 Merge pull request #1831 from mike-lischke/issue1824
Update C++ target doc for latest API changes - fixes #1824.
2017-05-31 10:16:36 -07:00
Will Fuqua e39543a257 add build script and update docs 2017-05-27 00:02:54 +07:00
David Sisson f41ce7fed4 Fix tests for PR #1844. 2017-04-29 17:27:08 -07:00
parrt 8c05696ed4 update js doc 2017-04-26 09:56:31 -07:00
Mike Lischke 3f7c67106b Interpreter is now always generated. Doc updated. 2017-04-21 17:15:51 +02:00
Mike Lischke 1fdb7cd31d Update C++ target doc for latest API changes - fixes #1824. 2017-04-19 14:23:44 +02:00
Terence Parr 2f248353a3 Merge pull request #1819 from bradh/patch-1
Update getting-started.md (trivial)
2017-04-17 09:57:24 -07:00
lys0716 b8e81d5814 Correct typo in lexicon.md
’\’' should be ’\’

Signed-off-by: Yishuang Lu <luyscmu@gmail.com>
2017-04-12 16:50:09 -07:00
Brad Hards 8a9f259f62 Update getting-started.md
Either that or say what is is useful to do with...
2017-04-09 15:16:26 +10:00
parrt 8af0080103 add link 2017-04-03 09:56:07 -07:00
parrt c8d9749be1 update doc on cutting release to 4.7 2017-03-30 14:36:04 -07:00
parrt e95b74842e update npm doc in releasing doc 2017-03-30 11:12:58 -07:00
parrt 2ab9c8ab51 add note about utf-16 code units in grammars. Fixes #1802 2017-03-30 10:54:58 -07:00
parrt 04507895bd add link to Unicode doc 2017-03-30 09:49:45 -07:00
parrt bb33217d14 add Ben to readme 2017-03-30 09:47:06 -07:00
parrt ad3b43459d rm new 2017-03-29 15:04:19 -07:00
parrt 40e1072e7e update target docs that need alteration for new interface 2017-03-29 14:59:14 -07:00
parrt 039f43999c tweak documentation about various targets 2017-03-29 14:46:50 -07:00
parrt a7b2f3f12d more tweaks about the status of UTF-8 in previous and current defaults. 2017-03-29 14:26:36 -07:00
parrt cd2b6936cf fix another reference to previous streams 2017-03-29 14:21:16 -07:00
parrt 6dd9a3fbe3 respond to @bhamiltoncx comments 2017-03-29 14:19:37 -07:00
parrt 1fcb5951c6 change the example to use the new stream interface 2017-03-29 14:14:32 -07:00
parrt c3ed9a992d Add more about unbuffered streams. tweak style of code 2017-03-29 13:56:57 -07:00