Commit Graph

5805 Commits

Author SHA1 Message Date
Mike Lischke 4aaa0bfb5a Better synchronization for multithreading - fixes issue #1435
- The shared mutexes were defined as normal instance variables in a simulator, so the locks didn't work (multiple instances of simulators active). By making them static (which is more appropriate anyway, since we are protecting static data) the synchroniation now works.
- For better performance an own class for multiple read/single write locks was added and used instead of the shared mutexes.
- Made the static wstring_covvert instance local variables in ws2s and s2ws. Otherwise we would also need a mutext to protect it.

- Some other minor changes.
2016-12-11 12:53:24 +01:00
Terence Parr 951bc0861b Merge pull request #1488 from parrt/add-src-javadoc-jars
Add src javadoc jars
2016-12-10 18:30:33 -08:00
parrt 0dae6359ec Fixes #1007. 2016-12-10 18:29:09 -08:00
parrt fc20027da3 generates runtime javadoc jar now with dot generation for PredictionContext 2016-12-10 18:26:19 -08:00
parrt 52cecbe9e1 generates tool javadoc jar now 2016-12-10 18:21:10 -08:00
parrt 98900144b2 attempting to get src/javadoc back. 2016-12-10 18:09:37 -08:00
Terence Parr b6b3895792 Merge pull request #1486 from parrt/tidy-poms
Tidy poms
2016-12-10 17:33:01 -08:00
parrt 731603b489 maven shade and bundle don't work together so i dropped bundle for main complete jar. 2016-12-10 17:31:03 -08:00
parrt c0e7c49a9e update jar version, add implementation manifest entries. Fixes #1036 2016-12-10 16:43:10 -08:00
parrt 33bce0d8a8 oops. tool tests need actual tool jar 2016-12-10 16:21:40 -08:00
parrt 9b758cb668 update versions 2016-12-10 16:07:35 -08:00
Renata Hodovan 3a4c8d8bc6 Implement the fix in #1471 for JavaScript target. 2016-12-11 00:59:24 +01:00
parrt 87fbc682e3 strip more stuff we don't need 2016-12-10 15:58:28 -08:00
parrt 71e926e143 set version 2016-12-10 15:41:31 -08:00
parrt 2021f59477 clean up links 2016-12-10 15:38:12 -08:00
parrt 0de8a9c414 simplify tool pom 2016-12-10 15:32:39 -08:00
parrt 9d06400ef0 add test scope to tool test pom 2016-12-10 15:31:17 -08:00
parrt 9cfb6890a5 add test scope to runtime test pom 2016-12-10 15:24:07 -08:00
parrt f2f54f0fd5 manually doing similar cleanup to https://github.com/antlr/antlr4/pull/1467 2016-12-10 15:19:45 -08:00
Terence Parr 8ed3e1303d Merge pull request #1485 from parrt/rm-legacy-tests
rm legacy tests
2016-12-10 15:16:10 -08:00
parrt 9b29cfe4e4 rm legacy tests 2016-12-10 15:14:39 -08:00
Terence Parr 89bfd56a76 Merge pull request #1484 from parrt/fix-1042
Fixes #1042
2016-12-10 14:51:42 -08:00
parrt f13b09eb3d Fixes #1042 2016-12-10 14:51:17 -08:00
Terence Parr a6e7a72ac7 Merge pull request #1483 from parrt/fix-1073
Fix #1073. Better token output.
2016-12-10 14:35:23 -08:00
parrt e65154c161 Fix #1073. Better token output. 2016-12-10 14:34:50 -08:00
parrt 0a7e90fe8e fix #1177 (LB(k) stops at index 0) @antlr/antlr-targets might care about this 2016-12-10 14:05:31 -08:00
parrt 9ef75603ce improve comment 2016-12-10 10:45:04 -08:00
Terence Parr 1de7d7e0d6 Merge pull request #1481 from parrt/fix-1480
Fix 1480 (getExpectedTokens missing token from FOLLOW)
2016-12-10 10:34:11 -08:00
parrt 35e02997f2 improve test 2016-12-10 10:32:18 -08:00
parrt 2053143665 fix test so it correctly illustrates bug 1480, which was fixed apparently by https://github.com/antlr/antlr4/pull/1477 2016-12-10 10:03:44 -08:00
Terence Parr 9f51ec1e6b Merge pull request #1477 from parrt/fix-1203
fix LL1 analyzer
2016-12-10 09:52:48 -08:00
gaulouis e377b03506 Fix special template for org.antlr.v4.test.runtime.cpp.TestParseTrees 2016-12-10 04:59:41 +01:00
gaulouis 822e3762a0 Fix special template for tests 2016-12-10 04:42:09 +01:00
parrt 0eb27279de fix LL1 analyzer 2016-12-09 18:07:47 -08:00
Renata Hodovan 58d51450d4 Implement the fix of #1298 for Python targets.
The patch adapts the fix in PR #1472 for Python targets.
2016-12-10 02:41:08 +01:00
Terence Parr 82372aae2c Merge pull request #1460 from renatahodovan/intervalset-range-fix
Fix AttributeError when trying to write an immutable variable in Python.
2016-12-09 16:05:11 -08:00
Terence Parr 3a6ffafec3 Merge pull request #1472 from parrt/fix-1298
Fix 1298
2016-12-09 15:31:07 -08:00
parrt 85b609a951 make non-Java targets ignore new test 2016-12-09 14:07:18 -08:00
gaulouis 258b1a4a38 Redo dynamic cast 2016-12-09 21:37:52 +01:00
parrt eb8e2890c3 copyFrom copies error nodes over. Fixes #1298 2016-12-09 11:10:26 -08:00
Renata Hodovan bd09023209 Call visitErrorNodes properly in Python targets.
The consume method of the Parser class calls visitTerminal on both
TerminalNodes and ErrorNodes even if the comment above states that
ErrorNodes should be visited by visitErrorNodes. This behaviour
is also inconsitent with the Java target. The patch fixes this in
both Python targets.
2016-12-09 19:41:23 +01:00
parrt 53918ab41e add unit test for #1298 2016-12-09 10:19:31 -08:00
parrt 661c87b47c update comment 2016-12-09 09:49:56 -08:00
gaulouis e9859bcd2f Fix unnecessary cast 2016-12-09 18:43:07 +01:00
gaulouis ea53dac7b7 Fix antlr4:: namespace pollution in Lexer/Parser headers 2016-12-09 18:35:55 +01:00
parrt 337adffa03 add expected token tests 2016-12-09 09:24:24 -08:00
gaulouis af95045362 Fix conflict lexer command in CppTarget demo 2016-12-09 17:32:28 +01:00
gaulouis 9c70b3b4ac Fix compilation error 2016-12-09 16:09:30 +01:00
Terence Parr 3e97e64651 Merge pull request #1466 from parrt/move-api-test-to-runtime-testsuite
move api lib test to runtime tests
2016-12-08 14:39:51 -08:00
parrt e46db41bbd move api lib test to runtime tests 2016-12-08 14:37:13 -08:00