Commit Graph

6998 Commits

Author SHA1 Message Date
Zongyuan Zuo 54297cd329
rewrite + add patch to all stl containers 2018-02-26 19:51:21 +08:00
Marcus Ong 3fd8931d9d Avoid forward declare std::exception on clang-cl
It will prevent clang-cl to output the warning [ignored-attributes].
2018-02-25 18:55:17 -06:00
Marcus Ong afb85ea34e Fixed warning from MingGW and error from Clang Windows
This commit fixes:
- In MingGW
  warning: declaration 'class std::exception' does not declare anything
- In Clang (I tested with clang-tidy on Windows specifically)
  error: forward declaration of class cannot have a nested name
    specifier [clang-diagnostic-error]
2018-02-25 18:17:46 -06:00
Marcus Ong 9551d12f7c Signed contributors.txt 2018-02-25 18:15:16 -06:00
Mark Raynsford 08fd9111fa
Sign contributor agreement 2018-02-11 13:07:51 +00:00
Mark Raynsford b5b3a3c5fc
Add an Automatic-Module-Name
This adds an Automatic-Module-Name entry to the runtime jar in order to
provide a stable name upon which other modules can depend. The module
name chosen was "org.antlr.antlr4.runtime". This closely matches the
Maven artifact name with the obviously change that the module name
doesn't contain a hyphen (hyphens can't be used in module names at
the language level in Java).

Fix #2163
2018-02-11 13:06:19 +00:00
Raz Friman 6ce1b1a0eb
Merge pull request #2 from razfriman/razfriman-readme-cs
Make C# NuGet package name more visible and add link to the package
2018-02-08 14:05:44 +11:00
Raz Friman a73d5e21af
Merge pull request #1 from razfriman/razfriman-contributors
Make C# NuGet package name more visible and add link to the package
2018-02-08 14:04:38 +11:00
Raz Friman acc2d03735
Update contributors.txt 2018-02-08 14:03:57 +11:00
Raz Friman c0cfcdf23c
Update README.md
Make the NuGet package name more visible and add a link to the official package
2018-02-08 14:02:59 +11:00
Terence Parr 7a2b95ab53
Merge pull request #2181 from kbsletten/remove-unused-_loadString-parameter
Remove unused  `_loadString` parameter
2018-02-07 17:45:34 -08:00
Kyle Sletten 6e5155c943
Merge branch 'master' into remove-unused-_loadString-parameter 2018-02-07 09:24:05 -07:00
EternalPhane 6b8e9824a6 fix #2211 2018-02-03 17:12:09 +08:00
EternalPhane d027f00aca add patch to std::vector 2018-01-30 00:17:41 +08:00
EternalPhane 940e174b5e fix typos 2018-01-29 21:38:15 +08:00
EternalPhane 2c8542b514 let Any::Derived<T>::clone depend on whether T is copy-constructible 2018-01-29 20:48:07 +08:00
Amila Welihinda 3dd8a1fe20
Changed travis repo badge to svg 2018-01-23 15:47:05 -08:00
Kaspar Emanuel 040ca0cee3 add require statements to javascript target example 2018-01-06 13:54:26 +01:00
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
Jan Lindemann cf9d70dc02 Sign contributors.txt 2017-12-13 15:40:37 +01:00
Jan Lindemann 4e3c5ddffb Make C++ Parser::exitRule() non-virtual
Parser::exitRule() in the C++ runtime is a virtual function which is not
reimplemented anywhere. OTOH, it is invoked during the execution of
every rule, which can cause a noticeable performance hit. This commit
removes its virtual qualifier. It should make a difference particularly
for large grammars, because the number of rules corresponds to the
number of the Parser object's virtual functions, and, consequently, its
vtable lookup time.

Tested with a VHDL grammar of 436 rules, where it brings down parsing
time from 75 to 44 seconds on unoptimized compilation, i.e. a 40% speed
gain.  Still a lot slower than an equivalent java parser, though, which
takes 2.64 seconds for the same input.
2017-12-13 12:07:19 +01:00
Jan Lindemann 2634246b07 Add missing override keyword to virtual functions
Add missing override markers to the following functions of the C++
runtime:

  - TokensStartState::getStateType()
  - TagChunk::toString()
  - TextChunk::toString()

The missing markers made builds against the API with -Wsuggest-override
choke.
2017-12-13 12:04:50 +01:00
enessoylu 366533cd8a sign contributors certificate 2017-12-13 02:25:17 -05:00
enessoylu 0668b53083 update license string 2017-12-13 02:14:57 -05: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