Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge dev into master #3642

Merged
merged 441 commits into from
Apr 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
441 commits
Select commit Hold shift + click to select a range
a103ec9
Get rid of reflection in CodeGenerator
KvanTTT Nov 25, 2021
3b1eca9
Rename TargetType -> Language
KvanTTT Dec 27, 2021
6823a90
Remove TargetType enum, use String instead as it was before
KvanTTT Dec 27, 2021
9b5c5d4
Add default branch to appendEscapedCodePoint for unofficial targets (…
KvanTTT Dec 27, 2021
d0e52c2
Remove getVersion() overrides from Targets since they return the same…
KvanTTT Dec 27, 2021
6da860e
Remove getLanguage() overrides from Targets since common implementati…
KvanTTT Dec 27, 2021
8eadcab
Merge pull request #3304 from Dante-Broggi/use-proper-constants
parrt Dec 27, 2021
5d5ee84
[again] don't use "quiet" option for mvn tests...hard to figure out w…
parrt Dec 27, 2021
3076640
normalize targets to 80 char strings for ATN serialization, except Ja…
parrt Dec 27, 2021
a16b5ef
Merge pull request #3438 from parrt/normalize-getSerializedATNSegment…
parrt Dec 27, 2021
3d319c4
Update actions.md
Alex-Andrv Dec 28, 2021
d5d00c2
Rename `CodeGenerator.createCodeGenerator` to `CodeGenerator.create`
KvanTTT Dec 28, 2021
0da84d0
Replace constants on string literals in `appendEscapedCodePoint`
KvanTTT Dec 28, 2021
c26ce94
Restore API of Target
KvanTTT Dec 28, 2021
31ec821
Merge pull request #3349 from KvanTTT/tool-bugfixes
parrt Dec 28, 2021
13ba87e
Merge pull request #3439 from Alex-Andrv/patch-1
parrt Dec 28, 2021
8fabd86
Merge pull request #3313 from jcking/go-runtime-thread-safety
parrt Dec 28, 2021
e04a16c
Merge branch 'master' into master
parrt Dec 28, 2021
6373bc4
Merge pull request #3358 from hlstwizard/master
parrt Dec 28, 2021
a853356
Introduce caseInsensitive lexer rule option, fixes #3436
KvanTTT Dec 28, 2021
8074723
Merge branch 'master' into Add_browser_fs_fallback
parrt Dec 28, 2021
e8411fc
Merge branch 'master' into gh-3350-py3-entry-point
parrt Dec 28, 2021
5b2beba
Merge pull request #3379 from bollwyvl/gh-3350-py3-entry-point
parrt Dec 28, 2021
d8e1525
Merge pull request #3437 from KvanTTT/caseInsensitiveLexerCommand
parrt Dec 28, 2021
5b8390b
Merge pull request #3414 from Ketler13/Add_browser_fs_fallback
parrt Dec 28, 2021
36e9459
Merge pull request #3207 from Abe149/master
parrt Dec 28, 2021
0019a4b
Merge branch 'master' into issue-3096
parrt Dec 28, 2021
516a284
Merge pull request #3097 from khmarbaise/issue-3096
parrt Dec 28, 2021
667631b
Merge pull request #3351 from niw/use_any_object_instead_of_class
parrt Dec 28, 2021
233d009
Merge branch 'master' into Abe149-documentation-patch-001
parrt Dec 29, 2021
33122ac
Merge pull request #3206 from Abe149/Abe149-documentation-patch-001
parrt Dec 29, 2021
345cc17
don't ahead of time compile for DART. See https://github.com/antlr/an…
parrt Dec 29, 2021
2cf7b54
Merge branch 'master' into master
parrt Dec 30, 2021
5d72d80
Merge pull request #3286 from idraper/master
parrt Dec 30, 2021
48854d9
Simplify test rig related to timeouts (#3445)
parrt Dec 30, 2021
b346aa5
simplify Swift like the other tests
parrt Dec 30, 2021
61db59d
fix whitespace issues
parrt Dec 30, 2021
b342b67
use 4.10 not 4.9.4
parrt Dec 30, 2021
7135d1f
improve releasing antlr doc
parrt Dec 30, 2021
d253981
Add Support For Swift Package Manager (#3132)
100mango Dec 31, 2021
156cffb
use src 11 for tool, but 8 for plugin/runtime (#3450)
parrt Dec 31, 2021
726983d
cpp/cmake: Fix library install directories (#3447)
Biswa96 Jan 2, 2022
cf3ee42
Python local import fixes (#3232)
SkittlePox Jan 2, 2022
4620acc
Update javadoc to 8 and 11 (#3454)
parrt Jan 2, 2022
89f7760
[Go] Fix (*BitSet).equals (#3455)
jcking Jan 2, 2022
53c1139
set tool version for testing
parrt Jan 3, 2022
7d3fb7b
oops reversion tool version as it's not sync'd with runtime and not t…
parrt Jan 4, 2022
60a98e1
Remove unused variable from generated code (#3459)
jcking Jan 4, 2022
9f6f9a3
[C++] Fix bugs in UnbufferedCharStream (#3420)
jcking Jan 5, 2022
09e917e
Escape bad words during grammar generation (#3451)
KvanTTT Jan 5, 2022
4359ee8
try out windows runners
ericvergnaud Jan 5, 2022
d552ca8
rename workflow
ericvergnaud Jan 5, 2022
0d58a1d
Merge pull request #3463 from ericvergnaud/master
ericvergnaud Jan 5, 2022
a26052d
Update windows.yml
ericvergnaud Jan 5, 2022
2330e1d
fix maven issue on windows
ericvergnaud Jan 5, 2022
42bae42
Merge branch 'master' into github-windows-runner
ericvergnaud Jan 5, 2022
533da59
use jdk 11
ericvergnaud Jan 5, 2022
cf0ef3c
remove arch arg
ericvergnaud Jan 5, 2022
63a9354
Merge pull request #3464 from ericvergnaud/github-windows-runner
ericvergnaud Jan 5, 2022
a3e85ed
display Github status for windows
ericvergnaud Jan 5, 2022
fa9b533
Merge pull request #3465 from ericvergnaud/master
ericvergnaud Jan 5, 2022
1c996cc
try testing python3 on windows
parrt Jan 6, 2022
6c45abc
try new run for python3 windows
parrt Jan 6, 2022
c160e29
try new run for python3 windows (again)
parrt Jan 6, 2022
e9c6200
try new run for python3 windows (again2)
parrt Jan 6, 2022
c714a04
try new run for python3 windows (again3)
parrt Jan 6, 2022
92c165b
try new run for python3 windows (again4)
parrt Jan 6, 2022
3bf4c81
try new run for python3 windows (again5)
parrt Jan 6, 2022
793f736
try new run for python3 windows
parrt Jan 6, 2022
44207db
try new run for python3 windows
parrt Jan 6, 2022
b63d565
try new run for python3 windows
parrt Jan 6, 2022
1658019
ugh i give up. python won't install on github actions.
parrt Jan 6, 2022
c3fe8e4
Update windows.yml
ericvergnaud Jan 6, 2022
e22fba9
Update windows.yml
ericvergnaud Jan 6, 2022
e131509
Update run-tests-python3.cmd
ericvergnaud Jan 6, 2022
7c05590
Update run-tests-python3.cmd
ericvergnaud Jan 6, 2022
b7e3a91
Create run-tests-python2.cmd
ericvergnaud Jan 6, 2022
39cf847
Update windows.yml
ericvergnaud Jan 6, 2022
6687336
Update run-tests-python2.cmd
ericvergnaud Jan 6, 2022
fae1379
Update windows.yml
ericvergnaud Jan 6, 2022
e756c9f
Update windows.yml
ericvergnaud Jan 6, 2022
1983ce3
Update windows.yml
ericvergnaud Jan 6, 2022
4740f94
Merge pull request #3468 from antlr/python-github-action
ericvergnaud Jan 6, 2022
2e8a38b
Create run-tests-javascript.cmd
ericvergnaud Jan 6, 2022
3f403c8
Update run-tests-javascript.cmd
ericvergnaud Jan 6, 2022
fa9c985
Update windows.yml
ericvergnaud Jan 6, 2022
ccfe3a8
Update windows.yml
ericvergnaud Jan 6, 2022
83089a2
Update windows.yml
ericvergnaud Jan 6, 2022
009b6d7
Update windows.yml
ericvergnaud Jan 6, 2022
b12a50d
Merge branch 'master' into github-javascript-action
ericvergnaud Jan 6, 2022
3f9efd6
Merge pull request #3469 from antlr/github-javascript-action
ericvergnaud Jan 6, 2022
de7fbd6
Update windows.yml
ericvergnaud Jan 6, 2022
c83ffa9
Update windows.yml
ericvergnaud Jan 6, 2022
f9506de
Create run-tests-csharp.cmd
ericvergnaud Jan 6, 2022
e76dbfc
Update windows.yml
ericvergnaud Jan 6, 2022
b386e9b
fix warnings in C# CI
ericvergnaud Jan 6, 2022
764a37e
Update windows.yml
ericvergnaud Jan 6, 2022
2e113c7
Merge pull request #3471 from ericvergnaud/fix-c#-warnings
ericvergnaud Jan 6, 2022
a1b1e8e
Update windows.yml
ericvergnaud Jan 6, 2022
6b46a8d
Merge pull request #3470 from antlr/github-action-csharp
ericvergnaud Jan 6, 2022
0b36b45
Create run-tests-dart.cmd
ericvergnaud Jan 6, 2022
9af6905
Update windows.yml
ericvergnaud Jan 6, 2022
612a480
Update windows.yml
ericvergnaud Jan 6, 2022
bba8d15
Update windows.yml
ericvergnaud Jan 6, 2022
9b345fd
Update windows.yml
ericvergnaud Jan 6, 2022
b9537af
Update run-tests-dart.cmd
ericvergnaud Jan 6, 2022
ad1cbba
Update run-tests-dart.cmd
ericvergnaud Jan 6, 2022
666fa97
Update run-tests-dart.cmd
ericvergnaud Jan 6, 2022
97a4759
Update run-tests-dart.cmd
ericvergnaud Jan 6, 2022
0a51f10
Update windows.yml
ericvergnaud Jan 6, 2022
5d9df66
Merge branch 'master' into github-action-dart
ericvergnaud Jan 6, 2022
2ba9cb9
Merge pull request #3472 from antlr/github-action-dart
ericvergnaud Jan 6, 2022
396f7b9
Update windows.yml
ericvergnaud Jan 6, 2022
72f48ab
Update windows.yml
ericvergnaud Jan 6, 2022
582875d
Create run-tests-go.cmd
ericvergnaud Jan 6, 2022
edabe0c
Update windows.yml
ericvergnaud Jan 6, 2022
4bc1bb1
Merge pull request #3473 from antlr/github-action-go
ericvergnaud Jan 6, 2022
f7c5440
Update windows.yml
ericvergnaud Jan 6, 2022
2549c31
Update windows.yml
ericvergnaud Jan 6, 2022
9d19ad4
GitHub action php (#3474)
ericvergnaud Jan 6, 2022
82ace5f
Cleanup ci (#3476)
ericvergnaud Jan 6, 2022
c339942
Improve CI concurrency (#3477)
ericvergnaud Jan 6, 2022
03a45a5
Optimize toArray
Jan 28, 2019
1da60da
add contributor
Jan 28, 2019
0cff8dc
resolve conflicts
parrt Jan 8, 2022
7d2a37e
Merge branch 're-thc-master'
parrt Jan 8, 2022
96c053c
fix-maven-concurrency (#3479)
ericvergnaud Jan 9, 2022
1e87a62
increase Windows CI concurrency for all targets except Dart
ericvergnaud Jan 9, 2022
2be5a44
Merge pull request #3484 from ericvergnaud/master
ericvergnaud Jan 9, 2022
1b144fa
Preserve line separators for input runtime tests data (#3483)
KvanTTT Jan 11, 2022
248cf84
Restore `\n` for all input in runtime tests, add extra LexerExec test…
KvanTTT Jan 17, 2022
6034525
Add generated LargeLexer test, remove LargeLexer.txt descriptor
KvanTTT Jan 17, 2022
828a688
tweak name to be GeneratedLexerDescriptors
parrt Jan 17, 2022
c973950
[JavaScript] Migrate from jest to jasmine
jcking Jan 19, 2022
2f9102a
Merge pull request #3501 from jcking/js-jasmine
ericvergnaud Jan 21, 2022
0782e21
[C++] Fix Windows min/max macro collision
jcking Jan 14, 2022
896f90b
[C++] Update cmake README.md to C++17
jcking Jan 18, 2022
0e920f5
remove unnecessary comparisons.
parrt Jan 29, 2022
bd6790b
Add useful function writeSerializedATNIntegerHistogram for writing ou…
parrt Jan 29, 2022
57da2e4
fix comment indicating what goes in the serialized ATN.
parrt Jan 29, 2022
9e04c9f
move writeSerializedATNIntegerHistogram out of runtime.
parrt Jan 29, 2022
b98d844
follow guidelines
ericvergnaud Jan 30, 2022
1726ff6
Fix .interp file parsing test for the Java runtime.
parrt Jan 30, 2022
ac55068
Delete files no longer needed. Should have been part of https://githu…
parrt Jan 30, 2022
c41663a
[C++] Optimizations and cleanups and const correctness, oh my
jcking Jan 6, 2022
79ec55f
[C++] Optimize LL1Analyzer
jcking Jan 31, 2022
bccc516
[C++] Fix missing virtual destructors
jcking Feb 1, 2022
0653d25
Remove not used PROTECTED, PUBLIC, PRIVATE tokens from ANTLRLexer.g
KvanTTT Feb 5, 2022
e19c0ab
Remove ANTLR 3 stuff from ANTLR grammars, deprecate ANTLR 3 errors
KvanTTT Feb 5, 2022
1785584
Remove not used imaginary tokens from ANTLRParser.g
KvanTTT Feb 5, 2022
95f2ab0
Fix misprints in grammars
KvanTTT Feb 5, 2022
54dbece
ATN serialized data: remove shifting by 2, remove UUID; fix #3515
KvanTTT Jan 30, 2022
2ed4948
Disable native runtime tests (see #3521)
KvanTTT Jan 31, 2022
6040190
Implement Java-specific ATN data optimization (+-2 shift)
KvanTTT Feb 6, 2022
ea98374
[C++] Remove now unused antlrcpp::Guid
jcking Feb 7, 2022
04508f2
pull new branch diagram from master
parrt Feb 8, 2022
3aa4533
use dev not master branch for CI github
parrt Feb 8, 2022
0d2c942
update doc from master
parrt Feb 9, 2022
58eb36c
add back missing author
parrt Feb 9, 2022
8f30d47
[C++] Fix const correctness in ATN and DFA
jcking Feb 9, 2022
c3f4197
keep getSerializedATNSegmentLimit at max int
parrt Feb 12, 2022
80b85e2
Fixes #3259 make InErrorRecoveryMode public for go
parrt Feb 15, 2022
912a305
Change code gen template to capitalize InErrorRecoveryMode
parrt Feb 15, 2022
dc95a7d
[C++] Improve multithreaded performance, fix TSAN error, and fix prof…
jcking Feb 16, 2022
066ca07
Get rid of unnecessary allocations and calculations in SerializedATN
KvanTTT Jan 29, 2022
cf7e051
Get rid of excess char escaping in generated files, decrease size of …
KvanTTT Jan 27, 2022
03f10b4
Swift: fix binary serialization and use instead of JSON
KvanTTT Jan 28, 2022
8120227
Fix targetCharValueEscape, make them final and static
KvanTTT Jan 27, 2022
f5f777d
[C++] Cleanup ATNDeserializer and remove related deprecated methods f…
jcking Feb 17, 2022
3bb9ffe
Fix for #3557 (getting "go test" to work again).
kaby76 Feb 23, 2022
b6dd64d
Convert Python2/3 to use int arrays not strings for ATN encodings (#3…
parrt Feb 27, 2022
1e35007
[C++] Drastically improve multi-threaded performance (#3550)
jcking Feb 28, 2022
cf6d90c
[C++] Remove duplicate includes and remove unused includes (#3563)
jcking Mar 1, 2022
5f96e4f
[C++] Lazily deserialize ATN in generated code (#3562)
jcking Mar 4, 2022
58b802e
[Docs] Update Swift Docs (#3458)
100mango Mar 4, 2022
80a6a56
Ascii only ATN serialization (#3566)
parrt Mar 5, 2022
de4470b
use ints not chars for C# (#3567)
parrt Mar 5, 2022
3afd899
[C++] Use camel case name in generated lexers and parsers (#3565)
jcking Mar 6, 2022
219ab7e
Change string to int array for serialized ATN for JavaScript (#3568)
parrt Mar 7, 2022
c693010
perf: Add default implementation for Visit in ParseTreeVisitor. (#3569)
chenquan Mar 7, 2022
abac2af
Don't use utf decoding...these are just ints (#3573)
parrt Mar 8, 2022
d8e1644
[Go] Cleanup and fix ATN deserialization verification (#3574)
jcking Mar 8, 2022
4b0b642
[C++] Force generated static data type name to titlecase (#3572)
jcking Mar 9, 2022
ce8e2ce
Use int array not string for ATN in Swift (#3575)
parrt Mar 10, 2022
b544a64
[C++] Fix generated Lexer static data constructor (#3576)
jcking Mar 10, 2022
46a0714
Use int array not string for ATN in Dart (#3578)
parrt Mar 11, 2022
1bb30ac
Fix PHP codegen to support int ATN serialization (#3579)
marcospassos Mar 11, 2022
c6d8aaa
Update listener documentation to satisfy the discussion about improvi…
parrt Mar 13, 2022
d1e8dbe
tweak
parrt Mar 13, 2022
e33ed11
[C++] Remove unused LexerATNSimulator::match_calls (#3570)
jcking Mar 14, 2022
01bc811
[Java] Preserve serialized ATN version 3 compatibility (#3583)
jcking Mar 14, 2022
3d00d42
add jcking to the contributors list
parrt Mar 14, 2022
e4bea4d
Merge branch 'dev' of github.com:antlr/antlr4 into dev
parrt Mar 14, 2022
b895913
Update releasing-antlr.md
parrt Mar 14, 2022
6d79c19
[C++] Avoid using dynamic_cast where possible by using hand rolled RT…
jcking Mar 17, 2022
c68e127
Revert "[Java] Preserve serialized ATN version 3 compatibility (#3583)"
parrt Mar 18, 2022
adec47c
[C++] Add ANTLR4CPP_PUBLIC attributes to various symbols (#3588)
jcking Mar 19, 2022
b293f98
Update editorconfig for c++ (#3586)
hzeller Mar 19, 2022
69b0200
Fix code style and typing to support PHP 8 (#3582)
marcospassos Mar 19, 2022
02e5f66
[Go] Port locking algorithm from C++ to Go (#3571)
jcking Mar 19, 2022
b0f8551
Use linux DCO not our old contributors certificate of origin
parrt Mar 22, 2022
09d2c41
[C++] Fix bugs in SemanticContext (#3595)
jcking Mar 25, 2022
44387ad
[Go] Do not export Array2DHashSet which is an implementation detail (…
jcking Mar 25, 2022
1c66fae
Merge branch 'dev' of github.com:antlr/antlr4 into dev
parrt Mar 25, 2022
db76a47
Revert "Use linux DCO not our old contributors certificate of origin"
parrt Mar 25, 2022
374c361
Use signed ints for ATN serialization not uint16, except for java (#3…
parrt Mar 26, 2022
c236962
Merge branch 'dev' of github.com:antlr/antlr4 into dev
parrt Mar 26, 2022
f894c66
Use linux DCO not our old contributors certificate of origin (#3598)
parrt Mar 26, 2022
3cccfdb
Merge branch 'dev' of github.com:antlr/antlr4 into dev
parrt Mar 26, 2022
ad21ee9
Equivalent of https://github.com/antlr/antlr4/pull/3537
parrt Mar 26, 2022
b79044e
clean up setup
parrt Mar 27, 2022
0822b0a
clean up doc version
parrt Mar 27, 2022
c575cc3
[Swift] improvements to equality functions (#3302)
Dante-Broggi Mar 28, 2022
d2a2410
[Swift] Use for in loops (#3303)
Dante-Broggi Mar 28, 2022
3ab65c4
[Go] Fix symbol collision in generated lexers and parsers (#3603)
jcking Mar 28, 2022
de8b934
[C++] Refactor and optimize SemanticContext (#3594)
jcking Mar 29, 2022
7e4b48b
[C++] Devirtualize hand rolled RTTI for performance (#3609)
jcking Mar 30, 2022
e962bef
[C++] Add T::is for type hierarchy checks and remove some dynamic_cas…
jcking Mar 31, 2022
53b83e3
[C++] Avoid copying statically generated serialized ATNs (#3613)
jcking Mar 31, 2022
4978f0d
[C++] Refactor PredictionContext and yet more performance improvement…
jcking Mar 31, 2022
0037a11
[C++] Cleanup DFA, DFAState, LexerAction, and yet more performance im…
jcking Apr 1, 2022
271684e
fix dependabot issues
ericvergnaud Apr 2, 2022
3242dae
Merge pull request #3618 from ericvergnaud/fix-dependabot-issues
ericvergnaud Apr 2, 2022
9cfbecd
[Swift] use stdlib (single pass) (#3602)
Dante-Broggi Apr 2, 2022
cd9f14f
more optional handling (#3605)
Dante-Broggi Apr 2, 2022
6cf8c01
[C++] Minor improvements to PredictionContext (#3616)
jcking Apr 2, 2022
696b086
use php runtime dev branch to test dev
parrt Apr 2, 2022
81e5ee6
Merge branch 'dev' of github.com:antlr/antlr4 into dev
parrt Apr 2, 2022
8e5f2ff
update doc to be more explicit about the interaction between lexer ac…
parrt Apr 2, 2022
d26cb63
Refactor js runtime in preparation of future improvements
ericvergnaud Apr 3, 2022
ffd3b06
No longer necessary too generate sets or single atom transit that are…
parrt Apr 3, 2022
5341cb7
Updated getting started with Cpp documentation. (#3628)
chris-miner Apr 5, 2022
27f02a3
[C++] Free ATNConfig lookup set in readonly ATNConfigSet (#3630)
jcking Apr 6, 2022
38de75b
[C++] Implement configurable PredictionContextMergeCache (#3627)
jcking Apr 8, 2022
2095446
Allow to choose to switch off building tests in C++ (#3624)
hzeller Apr 8, 2022
c58eb5b
Fix NPE for undefined label, fix antlr#2788
KvanTTT Apr 8, 2022
4e2bb5a
An interval ought to be a value
Dante-Broggi Dec 12, 2021
9e4037b
[C++] Remove more dynamic_cast usage
jcking Apr 8, 2022
d49b9f8
[C++] Introduce version macros
jcking Apr 8, 2022
4de285f
add license prefix
ericvergnaud Apr 9, 2022
61ca09e
Prep 4.10 (#3599)
parrt Apr 10, 2022
37496e2
use full 3.5.3 antlr
parrt Apr 10, 2022
b5ccba0
[Swift] reduce Optionals in APIs (#3621)
Dante-Broggi Apr 10, 2022
4621da1
tweak to kick off build
parrt Apr 10, 2022
bbee41b
try parallelism: 4 circleci
parrt Apr 10, 2022
b554604
Revert "[Swift] reduce Optionals in APIs (#3621)"
parrt Apr 10, 2022
917751c
tweaks to doc
parrt Apr 10, 2022
5ae27bf
Improve the deploy script and tweak the released doc.
parrt Apr 10, 2022
6dc3eb7
use 4.10 not Snapshot for scripts
parrt Apr 10, 2022
8979184
Merge branch 'master' into dev
parrt Apr 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
128 changes: 0 additions & 128 deletions .appveyor/workflow.yml

This file was deleted.

20 changes: 9 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2.1
jobs:
test_tool_and_runtime_java:
docker:
- image: cimg/openjdk:8.0
- image: cimg/openjdk:11.0
steps:
- checkout
- run:
Expand All @@ -13,13 +13,13 @@ jobs:
name: test runtime
command: |
cd runtime-testsuite
mvn -q -Dparallel=methods -DthreadCount=4 -Dtest=java.* test
mvn -Dparallel=classes -DthreadCount=4 -Dtest=java.** test
cd ..
- run:
name: test tool
command: |
cd tool-testsuite
mvn -q -Dparallel=methods -DthreadCount=4 test
mvn -Dparallel=classes -DthreadCount=4 test
cd ..
test_runtime:
parameters:
Expand All @@ -32,7 +32,11 @@ jobs:
type: string
default: java
docker:
- image: cimg/openjdk:8.0
- image: cimg/openjdk:11.0
environment:
MAVEN_OPTS: -Xmx512m
parallelism: 4
resource_class: large
environment:
TARGET: << parameters.target >>
GROUP: << parameters.test-group >>
Expand All @@ -57,10 +61,4 @@ workflows:
- test_runtime:
matrix:
parameters:
target: [ dart, go, python2, python3, javascript, php ]
- test_runtime:
matrix:
parameters:
# target: [ cpp, dotnet, swift ]
target: [ cpp, dotnet, dart ]
test-group: [ LEXER, PARSER, RECURSION ]
target: [ dart, go, python2, python3, javascript, php, cpp, dotnet ]
4 changes: 0 additions & 4 deletions .circleci/scripts/install-linux-javascript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ sudo apt-get install -y nodejs
echo node version: $(node --version)
echo "done installing nodejs"

echo "installing yarn..."
sudo npm install -g [email protected]
echo "done installing yarn"

echo "packaging javascript runtime..."
pushd runtime/JavaScript
sudo npm install
Expand Down
14 changes: 9 additions & 5 deletions .circleci/scripts/install-linux-php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@

set -euo pipefail

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
sudo apt-get update -qq

sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update

sudo apt install php-all-dev
sudo apt install wget php8.0-cli php8.0-zip unzip
wget -O composer-setup.php https://getcomposer.org/installer
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer

sudo apt install php8.0
sudo apt install php8.0-mbstring
sudo apt install php8.0-xml
php -v

sudo apt install composer

git clone https://github.com/antlr/antlr-php-runtime.git runtime/PHP
composer install -d runtime/PHP
Expand Down
13 changes: 2 additions & 11 deletions .circleci/scripts/run-tests-cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@
set -euo pipefail

pushd runtime-testsuite
echo "running maven tests..."
if [ $GROUP == "LEXER" ]; then
mvn -q -Dgroups="org.antlr.v4.test.runtime.category.LexerTests" -Dtest=cpp.* test
elif [ $GROUP == "PARSER" ]; then
mvn -q -Dgroups="org.antlr.v4.test.runtime.category.ParserTests" -Dtest=cpp.* test
elif [ $GROUP == "RECURSION" ]; then
mvn -q -Dgroups="org.antlr.v4.test.runtime.category.LeftRecursionTests" -Dtest=cpp.* test
else
mvn -q -Dtest=cpp.* test
fi
export MAVEN_OPTS="-Xmx8g"
mvn -Dparallel=classes -DthreadCount=4 -Dtest=cpp.** test
popd

4 changes: 2 additions & 2 deletions .circleci/scripts/run-tests-dart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ dart --version

pushd runtime-testsuite
echo "running maven tests..."
# mvn -q -Dparallel=classes -DthreadCount=4 -Dtest=dart.* test
mvn -q -Dtest=dart.* test
export MAVEN_OPTS="-Xmx8g"
mvn -Dparallel=classes -DthreadCount=4 -Dtest=dart.** test
popd
14 changes: 3 additions & 11 deletions .circleci/scripts/run-tests-dotnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,7 @@

set -euo pipefail

pushd runtime-testsuite/
echo "running maven tests..."
if [ $GROUP == "LEXER" ]; then
mvn -q -Dgroups="org.antlr.v4.test.runtime.category.LexerTests" -Dtest=csharp.* test
elif [ $GROUP == "PARSER" ]; then
mvn -q -Dgroups="org.antlr.v4.test.runtime.category.ParserTests" -Dtest=csharp.* test
elif [ $GROUP == "RECURSION" ]; then
mvn -q -Dgroups="org.antlr.v4.test.runtime.category.LeftRecursionTests" -Dtest=csharp.* test
else
mvn -q -Dtest=csharp.* test
fi
pushd runtime-testsuite
export MAVEN_OPTS="-Xmx8g"
mvn -Dparallel=classes -DthreadCount=4 -Dtest=csharp.** test
popd
5 changes: 3 additions & 2 deletions .circleci/scripts/run-tests-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ go version

pushd runtime-testsuite
echo "running maven tests..."
mvn -q -Dparallel=methods -DthreadCount=4 -Dtest=go.* test
popd
export MAVEN_OPTS="-Xmx8g"
mvn -Dparallel=classes -DthreadCount=4 -Dtest=go.** test
popd
9 changes: 5 additions & 4 deletions .circleci/scripts/run-tests-javascript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@ declare -i RESULT=0

pushd runtime/JavaScript

echo "running jest tests..."
yarn test
echo "running jasmine tests..."
npm test
RESULT+=$?

popd

pushd runtime-testsuite

echo "running maven tests..."
mvn -q -Dtest=javascript.* test
export MAVEN_OPTS="-Xmx8g"
mvn -Dtest=javascript.** test
RESULT+=$?

popd

exit $RESULT
exit $RESULT
3 changes: 2 additions & 1 deletion .circleci/scripts/run-tests-php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ php -v
php_path=$(which php)
pushd runtime-testsuite
echo "running maven tests..."
mvn -q -DPHP_PATH="${php_path}" -Dparallel=methods -DthreadCount=4 -Dtest=php.* test
export MAVEN_OPTS="-Xmx8g"
mvn -DPHP_PATH="${php_path}" -Dparallel=classes -DthreadCount=4 -Dtest=php.** test
popd
32 changes: 15 additions & 17 deletions .circleci/scripts/run-tests-python2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,19 @@ set -euo pipefail

python2 --version

pushd runtime/Python2/tests
echo "running native tests..."
python2 run.py
rc=$?
if [ $rc != 0 ]; then
echo "failed running native tests"
fi
popd
# TODO: https://github.com/antlr/antlr4/issues/3521
#
# pushd runtime/Python2/tests
# echo "running native tests..."
# python2 run.py
# rc=$?
# if [ $rc != 0 ]; then
# echo "failed running native tests"
# fi
# popd

if [ $rc == 0 ]; then
pushd runtime-testsuite
echo "running maven tests..."
mvn -q -Dtest=python2.* test
rc=$?
popd
fi

# return $rc
pushd runtime-testsuite
echo "running maven tests..."
export MAVEN_OPTS="-Xmx8g"
mvn -Dparallel=classes -DthreadCount=4 -Dtest=python2.** test
popd
32 changes: 15 additions & 17 deletions .circleci/scripts/run-tests-python3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,19 @@ set -euo pipefail

python3 --version

pushd runtime/Python3/tests
echo "running native tests..."
python3 run.py
rc=$?
if [ $rc != 0 ]; then
echo "failed running native tests"
fi
popd

if [ $rc == 0 ]; then
pushd runtime-testsuite
echo "running maven tests..."
mvn -q -Dtest=python3.* test
rc=$?
popd
fi
# TODO: https://github.com/antlr/antlr4/issues/3521
#
# pushd runtime/Python3/tests
# echo "running native tests..."
# python3 run.py
# rc=$?
# if [ $rc != 0 ]; then
# echo "failed running native tests"
# fi
# popd

# return $rc
pushd runtime-testsuite
echo "running maven tests..."
export MAVEN_OPTS="-Xmx8g"
mvn -Dparallel=classes -DthreadCount=4 -Dtest=python3.** test
popd
Loading