Kaspar Emanuel
cbf65226c7
sign contributors.txt
2018-01-06 12:48:13 +01:00
Kaspar Emanuel
dadd466cbd
fix indentation in javascript target examples
2018-01-06 12:48:09 +01:00
Robert
87725e65c9
Add an explicit return statement
2018-01-05 11:26:31 +00:00
Robert Brignull
dd3af945fd
Only visit is ctx.children is non-null
2018-01-03 12:49:52 +00:00
Terence Parr
4cca8cd68d
Merge pull request #2184 from jkmar/return_result_in_visitor
...
[Python3] return result instead of None in visitor
2018-01-01 11:34:50 -08:00
jkmar
6326725270
[Python2] return result instead of None in visitor
2018-01-01 20:29:40 +01:00
Eric Vergnaud
b594b24b15
csharp target builds faster so use it for main test
2018-01-01 14:43:29 +08:00
Eric Vergnaud
bfd5e5d818
more python 2 to main test stage since it’s a standalone target
2018-01-01 14:33:38 +08:00
Eric Vergnaud
8629d46bbe
fixes #2188
2018-01-01 14:13:11 +08:00
jkmar
dfba8c68db
[Python3] return result instead of None in visitor
2017-12-27 22:22:49 +01:00
Kyle Sletten
8fadd61f43
Sign contributers.txt
2017-12-20 11:42:10 -07:00
Kyle Sletten
a7f3efb7eb
Remove unused parameter in `_loadString`
...
The usage of this method was removed in commit 51edf3cece
, but the parameter remained.
2017-12-20 11:39:57 -07:00
parrt
74779f334a
tweak comment to be consistent with code. Fixes #2172
2017-12-19 12:33:09 -08:00
Ajay Panyala
505f672ca1
Remove suggested fix comment
2017-12-17 08:09:55 -08:00
Ajay Panyala
18bdbb5a22
suggest alternative fix
2017-12-16 17:36:06 -08:00
Ajay Panyala
07d7bd1f36
Add missing -std=c++11 flag when using non-appleclang compiler on macosx
2017-12-16 17:20:54 -08:00
Nicolas
e7b6521431
Merge branch 'master' into vs2017projects
2017-12-15 19:57:07 +13:00
Nicolas
26d0d3143e
Update projects to the static library configurations define
...
ANTLR4CPP_STATIC rather than ANTLR4CPP_EXPORT.
2017-12-15 19:33:32 +13:00
Nicolas
f3f8cb877f
Add visual studio 2017 version of cpp runtime projects.
2017-12-15 19:22:28 +13:00
Mike Lischke
ceb4ca7ce7
Merge branch 'master-upstream'
2017-12-14 13:26:02 +01:00
Mike Lischke
f17319a9a5
Fixed multi-threading issue in C++ runtime.
...
The shared s0 state in a DFA was deleted when setting a new one (from the DFA entries possibly). That could led to a situation where a valid reference was deleted, even though it's still needed.
Additionally fixed some formattings and updated the XCode projects in the demo.
2017-12-14 13:25:12 +01:00
parrt
ba47b092e9
update setup.py to use setuptools not distutils (Python 3)
2017-12-10 12:32:52 -08:00
parrt
d674274f99
update setup.py to use setuptools not distutils
2017-12-10 12:28:05 -08:00
parrt
e0aa817929
tweak cutting release doc
2017-12-10 10:53:38 -08:00
parrt
398c018612
tweak doc
2017-12-09 12:19:25 -08:00
parrt
17b6277502
[maven-release-plugin] prepare for next development iteration
2017-12-09 12:04:26 -08:00
parrt
bdc05c87be
[maven-release-plugin] prepare release 4.7.1
2017-12-09 12:04:17 -08:00
parrt
c5cec0397a
tweak cutting release doc
2017-12-09 11:27:06 -08:00
Ewan Mellor
35b9bbfe17
[Swift] Minor tidyups in the stream code.
...
No semantic change.
2017-12-08 16:36:00 -08:00
Ewan Mellor
b4f3a619fd
[Swift] Make ATNDeserializationOptions a simple struct.
...
The previous code was ported from Java, which resulted in 70 lines of code
to hold two bools. Use a struct instead.
2017-12-08 16:35:21 -08:00
Ewan Mellor
f8e63d53c5
[Swift] Remove HashMap and fix Parser caches.
...
Remove HashMap, and replace all uses of it with dictionaries. There's
no need for us to have a custom HashMap implementation (mirroring the Java
standard library) when Swift's standard dictionaries work just fine.
Fix Parser.bypassAltsAtnCache. This was declared as a Parser instance
variable, when in the Java runtime it is static (and therefore the cache
outlives the Parser instances). It was also being handled in a
thread-unsafe manner, because the cache was being read outside of the
mutex that was supposed to be protecting it. Fix both issues by moving
the cache and the mutex so that they are static to the Parser module and
rewriting getATNWithBypassAlts.
Remove Parser.decisionToDFAMutex. The Java code uses a synchronized block
on ParserATNSimulator.decisionToDFA, but the translation to Swift had put
a mutex in Parser. The decisionToDFA value is shared between Parser,
ParserATNSimulator, and the generated parser, so a mutex in
ParserATNSimulator isn't blocking all possible accesses, so it's useless.
Since this is only code for debugging anyway, just remove the useless mutex
and simplify getDFAStrings and dumpDFA.
2017-12-08 16:32:51 -08:00
parrt
5c112be2ab
update release notes auto generator
2017-12-08 13:07:59 -08:00
parrt
763a1242b7
update version number and tweak doc
2017-12-08 12:47:11 -08:00
parrt
f113891e06
add script to gen release doc
2017-12-08 11:10:04 -08:00
Mike Lischke
baf8b95b1c
Updated XCode project + fixed a gotcha in ATNState::removeTransition.
2017-12-08 09:33:33 +01:00
Terence Parr
7259baaf8a
Merge pull request #2151 from davesisson/hidden-tokens
...
Export GetHiddenTokens routines
2017-12-07 09:55:05 -08:00
Terence Parr
5987936a86
Merge pull request #2150 from davesisson/trees
...
Fix issue with tree finding when the underlying slice needs to be resized.
2017-12-07 09:54:52 -08:00
Terence Parr
c349ba3c8a
Merge pull request #2149 from davesisson/master
...
Changed rotation to support 32 and 64-bit architectures as noted in issue #2060 .
2017-12-07 09:54:42 -08:00
Terence Parr
a4a14213f9
Merge pull request #2146 from parrt/case-insensitivity-doc
...
Case insensitivity doc
2017-12-06 13:19:01 -08:00
parrt
ab623a1867
Merge branch 'master' into case-insensitivity-doc
2017-12-06 12:36:23 -08:00
Terence Parr
489a11b7a2
Merge pull request #2066 from KvanTTT/unreachable-tokens
...
New unreachable token value warning
2017-12-06 12:35:53 -08:00
parrt
4763949d42
pull in additions by Sebastian Lang
2017-12-06 12:23:43 -08:00
parrt
846c7dafda
pull in additions by Sebastian Lang
2017-12-06 12:22:11 -08:00
Sebastian Lang
1af14fb287
Add CaseChangingCharStream that converts symbols to upper or lower case
2017-12-06 12:20:46 -08:00
David Morais Ferreira
87ea4c4862
pull in contrib
2017-12-06 12:20:33 -08:00
parrt
55d1a94afb
Merge branch 'master' into case-insensitivity-doc
2017-12-06 12:16:11 -08:00
Terence Parr
864f8fc49a
Merge pull request #2141 from oranoran/lexer-atn-prop
...
[JavaScript] enable auto-suggest engines by exposing the lexer ATN as a property, similar to the parser ATN
2017-12-06 12:10:50 -08:00
Terence Parr
dd4a1c8709
Merge branch 'master' into lexer-atn-prop
2017-12-06 12:10:14 -08:00
parrt
134d485676
fix js syntax error
2017-12-06 12:07:59 -08:00
David Sisson
a2bfeeb760
update tests too
2017-12-06 11:27:52 -08:00