Commit Graph

400 Commits

Author SHA1 Message Date
Terence Parr 527118197f
Merge branch 'master' into master 2020-10-08 09:54:57 -07:00
Martin Mirchev 5361115842 Add to contributors 2020-10-08 14:45:15 +02:00
Markus Trenkwalder 6729847f65 Update contributors.txt 2020-09-16 08:44:54 +02:00
Robert McGregor f7af6c07d5 added to contributors.txt 2020-09-15 21:06:42 +01:00
Charles Ruan 2dc9fb50be 1. remove wstring_convert and codecvt
2. let clang::fallthrough and throw_with_nested be compatible to gcc 4.9
3. downgrade gcc version from 5 to 4.9
2020-09-12 01:30:14 +08:00
Terence Parr 2aafb7f143
Merge pull request #2836 from sigmasoldi3r/master
[C++ codegen] Fixed deprecation warning for CPP targets > 17
2020-09-11 08:49:39 -07:00
Arunav Sanyal a39b77f904 Update getting started guide to use antlr4.8
Updating getting started to use antlr4.8 complete instead of 4.7.1 complete.
2020-09-10 13:52:37 -07:00
Terence Parr 168882d942
Merge branch 'master' into master 2020-09-10 12:56:08 -07:00
Terence Parr fb2a34d5be
Merge branch 'master' into cpp_vocabulary_cleanup 2020-09-10 10:54:44 -07:00
Terence Parr a161845829
Merge branch 'master' into master 2020-09-10 10:51:02 -07:00
Kilian Kilger cdf67a5ed2
Merge branch 'master' into master 2020-09-10 18:36:54 +02:00
Pablo Blanco Celdrán 7d10669421
Merge branch 'master' into master 2020-09-10 17:55:55 +02:00
irabeson af53acd2a2 Merge branch 'master' into cpp_vocabulary_cleanup 2020-09-10 10:42:36 -04:00
ArthurSonzogni f68c47a988 Fix clang compile error with --stdlib=libc++
On linux. Most users haven't installed libc++-dev, but ANTLR is passing
the "--stdlib=libc++" argument. As a result, this won't compile. Users
will see:
```
/tmp/antlr4/runtime/Cpp/runtime/src/antlr4-common.h:8:10: fatal error:
'algorithm' file not found
```

This is caused by the "WITH_LIBCXX" option.
It was introduced by:
d46ef90aa0

It causes the option "--stdlib=libc++" to be appended by default.

I believe its default value should have been left as "Off".

With "off" by default, clang will use its default C++ library, which is
always available.

The WITH_LIBCXX option is kept, being able to change the C++ library
might be useful?

BUG=https://github.com/antlr/antlr4/issues/2898
2020-09-06 15:30:54 +02:00
Matthew Paletta 3b3da29d45
Merge branch 'master' into master 2020-08-26 13:30:32 -07:00
Stevie Johnstone 8270f329ad Fix C++ target README example
tree::ParseTreeWalker::DEFAULT is not a pointer
2020-08-22 17:48:15 +01:00
Terence Parr dfc7ffc39c
Merge branch 'master' into dart-clean 2020-07-27 11:33:40 -07:00
Matthew Paletta 6e3d900c96 Resynced to master 2020-07-04 21:34:28 -07:00
Shan M 5f3654dea7
Sign contributors.txt 2020-07-01 11:59:04 +03:00
Martin van Wingerden a62ca70327
Merge branch 'master' into patch-1 2020-06-30 08:27:28 +02:00
parrt ae5efa8a30 tweak contrib 2020-06-16 13:38:04 -07:00
Matthew Paletta 0daa97a5f0 Added templated move support for antlrcpp::Any 2020-06-15 16:52:47 -07:00
Pablo Blanco Celdrán 739cb0b668
Merge branch 'master' into master 2020-06-06 19:59:20 +02:00
irabeson 3c0dbd83dd [C++ runtime] Optimizations of Vocabulary::fromTokenNames
This commit doesn't change the behavior, it contains few small improvements:
- prevent useless copy when creating the variable tokenName
- avoid to check if tokenName is empty twice
- use std::string::empty() instead of creating an empty string to compare with
- use std::string::clear() instead of assigning an empty C string to clear a string
2020-06-04 23:25:12 -04:00
Pablo Blanco Celdrán e7a10a070a Fixed deprecation warning for CPP targets > 17 2020-06-04 15:55:39 +02:00
Kilian Kilger 88dffba62e Improve coding style of auto usages 2020-06-03 20:48:19 +02:00
David MARKEY bcd88c719e
Register as a contribuor 2020-05-31 19:05:01 +02:00
Larry Li 62d56d83ae Merge branch 'master' of github.com:antlr/antlr4 into dart-clean 2020-05-25 21:01:46 +10:00
Sindre Tellevik 818f6a995a
Update contributors.txt 2020-05-25 11:36:36 +02:00
[OXID-PS] Keywan Ghadami 11775efabf
signing contributer agreement 2020-05-22 00:12:29 +02:00
Martin van Wingerden b0f65ab5e0
Merge branch 'master' into patch-1 2020-05-17 11:44:16 +02:00
Erik Gomersbach ce84a9f940 added gomerser to contributors.txt 2020-05-10 22:30:10 +02:00
Moses Paul R 56c800f619
Update contributors.txt 2020-05-06 13:32:40 +05:30
Tristan Swadell 69ba58ecbe Thread-safe ANTLR Go codegen 2020-05-01 01:57:54 -07:00
Martin van Wingerden e3ccb3e850
Update contributors.txt 2020-04-23 10:42:08 +02:00
Adam Grabski f88aff05da
Merge branch 'master' into patch-1 2020-04-12 19:22:32 +02:00
Adam Grabski 48dff06b8e
Update contributors.txt 2020-04-10 16:42:51 +02:00
Denis Kyashif 1cb069d10f refactored AntlrInputStream.cs by removing a redundand if-statement
signed contributors.txt
2020-04-08 18:24:58 +03:00
Leon Wehmeier db4e0252de
Signed contributors.md 2020-04-08 16:53:54 +02:00
Song Yang bc79e22297 Sign contributors.txt 2020-03-17 16:10:35 -04:00
Daniel Pitts ccc79bb883 Add myself to the contributors. 2020-02-21 19:02:56 -08:00
Nathanael Demacon f2830be501
Update contributors.txt 2020-02-17 11:13:22 +01:00
julibert 4a4fc30153
Update contributor.txt 2020-02-10 13:53:56 +01:00
Camilo Roca 7fc2180166 contributors.txt signed [skip ci] 2020-02-03 22:52:28 +01:00
Larry Li 46bd9e5569 add dart target 2020-01-19 18:22:06 +11:00
Eason Lin 334e8801c3
Merge branch 'master' into easonlin404-patch-1 2019-12-31 01:35:20 +08:00
Terence Parr 340b95bded
Merge branch 'master' into master 2019-12-15 09:01:48 -08:00
Markus Zancolo 1565143529
Merge branch 'master' into fix/CppEmscripten 2019-12-12 10:56:42 +01:00
Felix N 5be29fd61d
Merge branch 'master' into master 2019-12-09 10:53:50 +01:00
Mark Lilback 3bd5465881
[Swift] fixed compiler warnings about using var instead of let 2019-11-18 13:42:07 -08:00
Felix Nieuwenhuizen 2751841753 Sign contributors.txty
Signed-off-by: Felix Nieuwenhuizen <felix@tdlrali.com>
2019-11-17 14:12:12 +01:00
Gerasimos Dimitriadis 437c5a7b9a
Merge branch 'master' into master 2019-11-14 23:52:19 +02:00
Ben List a06009d72e
Merge branch 'master' into patch-1 2019-11-13 09:04:29 -05:00
liuxinfeng cf0658a6ab update date 2019-11-11 21:39:04 +08:00
jerry_liu fa4b498fc2 Add pretty print AST 2019-11-11 21:33:04 +08:00
Ben List 9d29a1aa1e
Signed contributors.txt 2019-11-06 09:02:51 -05:00
Alexei Averchenko 4f86ad5c17
Merge branch 'master' into master 2019-10-31 18:15:30 +03:00
Tabari Alexander 87a99e558a Signed contributers.txt 2019-10-29 12:11:49 -04:00
Markus Franke 76c0a65d19
Merge branch 'master' into master 2019-10-11 15:24:09 +02:00
Terence Parr 15e6619ddc
Merge branch 'master' into patch-1 2019-10-10 10:43:40 -07:00
Mingyang Liu 294d460aae add to contributor list 2019-09-28 07:57:36 -07:00
Terence Parr 818c6be691
Merge branch 'master' into fix-javascript-hashing-bug 2019-09-22 08:46:37 -07:00
Kazuki Sawada b8ca3d0b14
Update contributors.txt 2019-09-17 23:34:35 +09:00
Sean C. Sullivan bc7690f449 add [sullis] to contributors.txt 2019-09-15 14:23:12 -07:00
Marcos Passos 789d746636 PHP Target 2019-09-14 09:39:58 -03:00
neko1235 f11ce46ddf
Update contributors.txt 2019-09-10 16:08:49 -07:00
Terence Parr e38762e892
Merge branch 'master' into patch-1 2019-09-10 08:19:21 -07:00
Iman Hosseini 3c1231738e
Update contributors.txt 2019-09-10 02:29:13 -04:00
João Henrique ff1283affb General XPath fixes for the Python3 runtime 2019-09-03 19:21:42 -03:00
Markus Franke 97e61c07ca Update contributors file 2019-08-27 13:36:07 +02:00
Eric Vergnaud 0de9612e5d adding original contributor 2019-08-24 02:10:12 +08:00
Eason Lin 0fa34a9621
sign contributors.txt 2019-08-12 18:06:56 +08:00
thron7 ca5b581c1f
Update contributors.txt 2019-08-02 11:57:49 +02:00
Braavos c3c52bb2b5
Test cases
https://github.com/antlr/antlr4/pull/2571
2019-07-26 08:50:14 +01:00
Abhijith Neil Abraham 851f02b5da
Update contributors.txt 2019-07-16 11:23:46 +05:30
olowo726 06cee866d2 Made converters thread_local instead of local to function for performance 2019-07-11 19:20:20 +02:00
Abhijith Neil Abraham d47538d038
Update contributors.txt 2019-07-08 11:58:25 +05:30
Terence Parr aa51ef297a
Merge branch 'master' into master 2019-06-23 15:45:10 -07:00
Massimo Santini f6f265408a
Adding myself
Added my info as per pull request #2552 (I did just because it was requested, feel free to remove my info if you think is more appropriate due to the minimal patch I'm submitting).
2019-05-13 16:24:40 +02:00
Andy Collins be993de7d9 syntax highlighting for csharp language target doc 2019-05-02 20:44:28 -05:00
Alexei Averchenko d0f0ef12fd Signed contributors.txt 2019-04-09 09:24:08 +03:00
Carlo ad2ea7a68c
Update contributors.txt 2019-03-18 18:07:20 +01:00
Justin Thomas 6ee94ed5b9
Adding base698 to contributors.txt 2019-03-13 09:42:52 -07:00
Gerasimos Dimitriadis d69e7c4d0f Avoid double deletion when NoViableAltException is thrown
When ownership of the configurations set is passed to a NoViableAltException,
it get deleted more than once if the exception happens to get copied.
2019-02-23 20:31:19 +02:00
Ralu 510e3f7ed9
Update contributors.txt 2019-02-06 10:50:59 +01:00
Markus Zancolò 4fec5f9f7c fix cpp cmake for emscripten
Emscripten can do C++11. added it to the compilercheck in CMakeLists
2019-01-16 14:55:03 +01:00
wkhemir ecacfa09de
Merge branch 'master' into catch-codegen-error-python 2019-01-03 15:41:12 -05:00
Wail Khemir 3cd2878b28 Fix code generation for catch statements in python 2019-01-03 15:26:47 -05:00
You Kaichao 157afd1a8d update code on updated master 2019-01-02 19:06:36 +08:00
Alexey Khoroshilov f73ae702f2 LexerATNSimulator: avoid repeatable import of Lexer
Importing module is quite expensive operation for using it
in a lexer during normal operations.

The patch avoids it by caching the required properties
in LexerATNSimulator object.

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
2019-01-01 15:18:46 +03:00
WalterCouto 27c8eb5c6a C++: fix bug in PredictionContext::mergeArrays
In the orignal PredictionContext::mergeArrays there was a bug on Line 281 where the logic differs from java: It currently is:
bool both$ = payload == EMPTY_RETURN_STATE && a_parent && b_parent;
and should instead match java as:
bool both$ = payload == EMPTY_RETURN_STATE && !a_parent && !b_parent;
2018-12-20 10:07:59 -05:00
Terence Parr 96890a3505
Merge branch 'master' into patch-1 2018-12-17 15:40:30 -07:00
ralf 80230131ac added virtual dtor to polymorphic class template ParseTreeProperty and added myself as contributor 2018-11-29 11:03:49 +01:00
Alex Mykyta 2a3530f513 Fix install dependency for python3.4
Add install dependency for "typing" backport if using anything older than Python3.5
2018-11-15 20:15:39 -08:00
nxtstep 36621bda6d
Fix ST4 Snapshot dependency 2018-11-15 00:13:02 +01:00
Terence Parr 11d601348e
Merge pull request #2280 from solussd/master
File path handling fixes
2018-11-13 13:27:52 -08:00
Joe R. Smith 61d8aea398
Merge branch 'master' into master 2018-11-13 10:57:42 -06:00
Steve Vinoski 875aa034d2 Add const accessors to antlrcpp::Any C++ class
To make it easier to work with the const antlrcpp::Any arguments to
the AbstractParseTreeVisitor class aggregateResult and
shouldVisitNextChild functions, add a public const overload for the
antlrcpp::Any::as member function to return a const StorageType&, and
add a public const overloaded conversion operator returning a const
instance of the type contained within the Any.

Add the private antlrcpp::Any::getDerived function to avoid
duplicating the dynamic_cast of the internal pointer, and call it from
the overloaded Any::as functions and also the Any::is function.
2018-11-12 15:25:30 -05:00
Sergey Chupov 9321b6bb97
Update contributors.txt 2018-11-12 11:01:18 +02:00
Sergey Chupov a3e7099dac
Merge branch 'master' into patch-1 2018-11-12 11:00:48 +02:00