Commit Graph

6138 Commits

Author SHA1 Message Date
Terence Parr d3ce604df1 Merge pull request #1721 from KvanTTT/invalid-charset
Added invalid charset error (for ranges without start or end)
2017-03-03 09:39:25 -08:00
Ivan Kochurkin e1ec6a4222 Fixed line break in test. 2017-03-03 13:44:44 +03:00
Ivan Kochurkin b07528796e Removed runtime CharSetWithMissingEndRange test. 2017-03-03 13:42:09 +03:00
Ivan Kochurkin a1c50de31f Improved testInvalidCharSetsAndStringLiterals test with invalid char sets, fixed Java.g4 grammar: [+-] -> [+\-] 2017-03-03 13:41:36 +03:00
Ivan Kochurkin 9b5f039e46 Handle INVALID_CHAR_SET error. 2017-03-03 13:40:40 +03:00
Ivan Kochurkin f6cda7f0ea Added new error INVALID_CHAR_SET. 2017-03-03 13:39:19 +03:00
Terence Parr 94ac8d4b4c Merge pull request #1720 from parrt/fix-1703-part-deux
Fix 1703 part deux
2017-03-02 14:18:37 -08:00
parrt d9d21fe9b3 found 2 cases that called function on empty set. 2017-03-02 14:18:00 -08:00
parrt 6572b08095 Fixes #1703 properly this time. addendum to #1718 2017-03-02 14:13:27 -08:00
Terence Parr 8dee8c774b Merge pull request #1718 from parrt/fix-1703
Fixes #1703.
2017-03-02 10:50:41 -08:00
parrt 37fdf66c13 Fixes #1703. Updated comments to ensure people test isNil() or size() before requesting min, max, any single element. 2017-03-02 10:49:25 -08:00
Terence Parr 6245938be9 Merge pull request #1712 from mike-lischke/cpp-demo-fix
Using new Unicode syntax for C++ demo project.
2017-03-02 10:40:41 -08:00
Terence Parr 7ebf911b73 Merge pull request #1710 from bhamiltoncx/docs
Update docs for new Unicode literal and property escapes
2017-03-02 10:40:01 -08:00
parrt 3df19fbcc8 make format consistent with most of antlr project 2017-03-02 10:38:48 -08:00
Terence Parr 61138aee0c Merge pull request #1715 from KvanTTT/master
Fixed incorrect "used multiple times" warning.
2017-03-02 10:30:04 -08:00
Ben Hamilton c209f2a51e Update docs for new Unicode literal and property escapes 2017-03-02 09:36:18 -08:00
Ivan Kochurkin c5f9d5e2a1 More accurate escaping (different symbols for string literals (') and char sets(]-)).
Improved  testInvalidCharSetsAndStringLiterals test.
2017-03-02 18:16:05 +03:00
Ivan Kochurkin 77f7fd135d Fixed incorrect "used multiple times" warning.
Improved warning output in ATNOptimizer.
2017-03-02 14:56:50 +03:00
parrt d9ae13fc1a we left invalid escapes in string literals which was causing an error. This is related to #1537. All tool errors pass now. 2017-03-01 17:32:44 -08:00
Terence Parr 8d1df4c9e4 Merge pull request #1688 from bhamiltoncx/unicode-property-escape
New \p{Letter} Unicode property escape
2017-03-01 15:24:52 -08:00
Terence Parr ed4e358451 Merge pull request #1709 from parrt/fix-1537
error-> warnings. Fixes #1537
2017-03-01 15:19:25 -08:00
parrt 070849698a error-> warnings. Fixes #1537 2017-03-01 15:10:44 -08:00
parrt e353fa0484 update comment @since tag to 4.7.1 2017-03-01 14:53:43 -08:00
Terence Parr e04e7a40cc Merge pull request #1697 from hanjoes/master
Swift imple of #1665, #1674.
2017-03-01 14:50:50 -08:00
Ben Hamilton ca03e6ab5e New \p{Letter} Unicode property escape 2017-03-01 14:50:02 -08:00
Terence Parr d11968d993 Merge pull request #1693 from bhamiltoncx/escape-parsing
New class EscapeSequenceParsing with \p{UnicodeProperty} support
2017-03-01 14:47:44 -08:00
Terence Parr 4d8e865295 Merge pull request #1692 from bhamiltoncx/unicode-blocks
UnicodeData: Also support Unicode blocks
2017-03-01 14:46:43 -08:00
Terence Parr 7f479fa5dc Merge pull request #1700 from jvasileff/patch-1
Fix minor typo: possessive "its"
2017-03-01 14:45:46 -08:00
Terence Parr 0539fb4b0d Merge pull request #1699 from Thomasb81/fix_1698
Fix for #1698
2017-03-01 14:43:12 -08:00
Terence Parr 26249918f5 Merge pull request #1694 from mike-lischke/master
C++ implementation of issue #1665 and issue #1674
2017-03-01 14:41:15 -08:00
Ben Hamilton 3557f48386 EscapeSequenceParsing 2017-03-01 14:06:04 -08:00
Mike Lischke e368fb30ea Using new Unicode syntax for C++ demo project. 2017-02-28 15:32:25 +01:00
Terence Parr b2012d9054 Merge pull request #1704 from parrt/move-setparent-to-parsetree
shift setParent up one level
2017-02-27 12:18:36 -08:00
Terence Parr 39ba47554a shift setParent up one level 2017-02-27 12:13:12 -08:00
thomasb8138 5c9f174f28 Fix typo 2017-02-26 20:31:32 +01:00
John Vasileff 524a78ab32 Add signoff to the contributors list 2017-02-26 00:26:39 -05:00
John Vasileff 10fdcaa432 Fix minor typo: possessive "its" 2017-02-26 00:22:31 -05:00
thomasb8138 2d390b7a71 TokenStreamRewriter::replace(const std::string &programName, size_t from, size_t to, const std::string& text) expect a valid reference on std::string object. Not a null pointer. 2017-02-25 19:11:34 +01:00
Hanzhou Shi 38c3aaae8f Implements #1674 "augment TerminalNode with setParent()" for Swift target. 2017-02-25 09:17:37 -08:00
Mike Lischke 382d8f1e92 Merge branch 'master_upstream' 2017-02-25 10:48:32 +01:00
Mike Lischke a55baba44c More versions updated. 2017-02-25 10:48:12 +01:00
Hanzhou Shi 392c637565 Implements #1665 for Swift target. Slightly different because #899 was not addressed in Swift target. 2017-02-24 23:14:24 -08:00
Mike Lischke a4e0948600 Updated version number. 2017-02-24 20:08:17 +01:00
Mike Lischke 126112fbbc C++ implementation of issue #1665 and issue #1674 2017-02-24 08:44:21 +01:00
Ben Hamilton e8bb58f7b9 Also support Unicode blocks 2017-02-23 16:21:55 -08:00
Terence Parr ec428d1124 Merge pull request #1691 from parrt/4.6.1-to-4.7
rename 4.6.1 to 4.7 everywhere
2017-02-23 14:52:40 -08:00
parrt 6215f18ec3 rename 4.6.1 to 4.7 everywhere 2017-02-23 14:48:58 -08:00
Terence Parr 05dad185f3 Merge pull request #1690 from mike-lischke/master
Fixed a number of data type + signedness issues in the C++ target
2017-02-23 14:10:29 -08:00
Terence Parr 4ec294faff Merge pull request #1633 from bhamiltoncx/unicode
New extended Unicode escape \u{10ABCD} to support Unicode literals > U+FFFF
2017-02-23 14:06:44 -08:00
Ben Hamilton 4589ff56ea Add test for "binary" grammar 2017-02-23 09:39:44 -08:00