Skip to content

Commit f7f1b25

Browse files
authored
Merge branch 'master' into master
2 parents 83dcc58 + 6e7ff02 commit f7f1b25

File tree

200 files changed

+21663
-1080
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+21663
-1080
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ target/
33
# ... but not code generation targets
44
!tool/src/org/antlr/v4/codegen/target/
55

6-
# Node.js (npm and typings) cached dependencies
6+
# Node.js (npm and typings) cached dependencies
77
node_modules/
88
typings/
99

@@ -98,3 +98,6 @@ xcuserdata
9898
javac-services.0.log
9999
javac-services.0.log.lck
100100
test/
101+
102+
# Don't ignore python tests
103+
!runtime/Python3/test/

.travis.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ matrix:
152152
jdk: openjdk8
153153
env: TARGET=csharp
154154
stage: main-test
155+
- os: linux
156+
jdk: openjdk8
157+
env: TARGET=dart
158+
stage: main-test
155159
- os: linux
156160
language: php
157161
php:
@@ -199,6 +203,9 @@ matrix:
199203
jdk: openjdk8
200204
env: TARGET=javascript
201205
stage: main-test
206+
before_install:
207+
- nvm install 14 # otherwise it runs by default on node 8
208+
- f="./.travis/before-install-linux-javascript.sh"; ! [ -x "$f" ] || "$f"
202209
- os: linux
203210
dist: trusty
204211
jdk: openjdk8
@@ -211,7 +218,7 @@ before_install:
211218
script:
212219
- |
213220
cd runtime-testsuite;
214-
travis_wait 40 ../.travis/run-tests-$TARGET.sh;
215-
rc=$?;
216-
cat target/surefire-reports/*.dumpstream || true;
221+
travis_wait 40 ../.travis/run-tests-$TARGET.sh
222+
rc=$?
223+
cat target/surefire-reports/*.dumpstream || true
217224
exit $rc

.travis/before-install-linux-dart.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
wget https://storage.googleapis.com/dart-archive/channels/stable/release/2.8.4/linux_packages/dart_2.8.4-1_amd64.deb
5+
sudo dpkg -i ./dart_2.8.4-1_amd64.deb
6+
sudo rm ./dart_2.8.4-1_amd64.deb
7+
sudo apt-get install -f

.travis/before-install-linux-javascript.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
set -euo pipefail
44

5-
sudo apt-get update -qq
6-
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
7-
sudo apt-get install -qq nodejs
8-
node --version
5+
# use v14 and check
6+
echo node version: $(node --version)
7+

.travis/run-tests-dart.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
mvn -q -Dparallel=classes -DthreadCount=4 -Dtest=dart.* test

.travis/run-tests-javascript.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22

33
set -euo pipefail
44

5-
mvn -q -Dparallel=methods -DthreadCount=4 -Dtest=javascript.* test
5+
cd ../runtime/JavaScript
6+
npm install
7+
npm link
8+
cd ../../runtime-testsuite
9+
mvn -q -Dparallel=methods -DthreadCount=1 -Dtest=javascript.* test

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ ANTLR project lead and supreme dictator for life
2323
* [Ewan Mellor](https://github.com/ewanmellor), [Hanzhou Shi](https://github.com/hanjoes) (Swift target merging)
2424
* [Ben Hamilton](https://github.com/bhamiltoncx) (Full Unicode support in serialized ATN and all languages' runtimes for code points > U+FFFF)
2525
* [Marcos Passos](https://github.com/marcospassos) (PHP target)
26+
* [Lingyu Li](https://github.com/lingyv-li) (Dart target)
2627

2728
## Useful information
2829

appveyor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ install:
88
- git submodule update --init --recursive
99
- cinst -y php --params "/InstallDir:C:\tools\php"
1010
- cinst -y composer
11+
- cinst -y dart-sdk --version=2.8.4
1112
build_script:
1213
- mvn -DskipTests install --batch-mode
1314
- msbuild /target:restore /target:rebuild /property:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /verbosity:detailed runtime/CSharp/runtime/CSharp/Antlr4.dotnet.sln
1415
- msbuild ./runtime-testsuite/target/classes/CSharp/runtime/CSharp/Antlr4.vs2013.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /verbosity:detailed
1516
after_build:
1617
- msbuild /target:pack /property:Configuration=Release /verbosity:detailed runtime/CSharp/runtime/CSharp/Antlr4.dotnet.sln
1718
test_script:
18-
- mvn install -Dantlr-php-php="C:\tools\php\php.exe" -Dantlr-python2-python="C:\Python27\python.exe" -Dantlr-python3-python="C:\Python35\python.exe" -Dantlr-javascript-nodejs="C:\Program Files (x86)\nodejs\node.exe" --batch-mode
19+
- mvn install -Dantlr-php-php="C:\tools\php\php.exe" -Dantlr-dart-dart="C:\tools\dart-sdk\bin\dart.exe" -Dantlr-dart-pub="C:\tools\dart-sdk\bin\pub.bat" -Dantlr-dart-dart2native="C:\tools\dart-sdk\bin\dart2native.bat" -Dantlr-python2-python="C:\Python27\python.exe" -Dantlr-python3-python="C:\Python35\python.exe" --batch-mode
1920
artifacts:
2021
- path: 'runtime\**\*.nupkg'
2122
name: NuGet

contributors.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
ANTLR Project Contributors Certification of Origin and Rights
22

3+
NOTE: This tool is mature and Terence is mostly occupied elsewhere. We
4+
can't accept any changes that could have widespread effects on thousands
5+
of existing projects. Sorry!
6+
37
All contributors to ANTLR v4 must formally agree to abide by this
48
certificate of origin by signing on the bottom with their github
59
userid, full name, email address (you can obscure your e-mail, but it
@@ -204,6 +208,7 @@ YYYY/MM/DD, github id, Full name, email
204208
2018/07/03, jgoppert, James Goppert, [email protected]
205209
2018/07/27, Maksim Novikov, [email protected]
206210
2018/08/03, ENDOH takanao, [email protected]
211+
2018/10/08, xsIceman, Andreas Skaar, [email protected]
207212
2018/10/18, edirgarcia, Edir García Lazo, [email protected]
208213
2018/07/31, Lucas Henrqiue, [email protected]
209214
2018/08/03, ENDOH takanao, [email protected]
@@ -214,6 +219,7 @@ YYYY/MM/DD, github id, Full name, email
214219
2018/11/29, hannemann-tamas, Ralf Hannemann-Tamas, [email protected]
215220
2018/12/20, WalterCouto, Walter Couto, [email protected]
216221
2018/12/23, youkaichao, Kaichao You, [email protected]
222+
2019/01/02, wkhemir, Wail Khemir, [email protected]
217223
2019/01/16, kuegi, Markus Zancolo, [email protected]
218224
2019/02/06, ralucado, Cristina Raluca Vijulie, ralucris.v[at]gmail[dot]com
219225
2019/02/23, gedimitr, Gerasimos Dimitriadis, [email protected]
@@ -237,8 +243,33 @@ YYYY/MM/DD, github id, Full name, email
237243
2019/11/11, foxeverl, Liu Xinfeng, liuxf1986[at]gmail[dot]com
238244
2019/11/17, felixn, Felix Nieuwenhuizhen, [email protected]
239245
2019/11/18, mlilback, Mark Lilback, [email protected]
246+
2020/01/19, lingyv-li, Lingyu Li, [email protected]
240247
2020/02/02, carocad, Camilo Roca, [email protected]
241248
2020/02/10, julibert, Julián Bermúdez Ortega, [email protected]
242249
2020/02/21, StochasticTinkr, Daniel Pitts, [email protected]
243250
2020/03/17, XsongyangX, Song Yang, [email protected]
251+
2020/04/07, deniskyashif, Denis Kyashif, [email protected]
244252
2020/04/08, lwehmeier, Leon Wehmeier, [email protected]
253+
2020/04/10, agrabski, Adam Grabski, [email protected]
254+
2020/04/23, martinvw, Martin van Wingerden, [email protected]
255+
2020/04/30, TristonianJones, Tristan Swadell, [email protected]
256+
2020/05/06, iammosespaulr, Moses Paul R, [email protected]
257+
2020/05/10, gomerser, Erik Gomersbach, [email protected]
258+
2020/05/22, keywan-ghadami-oxid, Keywan Ghadami, [email protected]
259+
2020/05/25, graknol, Sindre van der Linden, [email protected]
260+
2020/05/31, d-markey, David Markey, [email protected]
261+
2020/06/02, cohomology, Kilian Kilger, kkilger AT gmail.com
262+
2020/06/04, IohannRabeson, Iohann Rabeson, [email protected]
263+
2020/06/04, sigmasoldi3r, Pablo Blanco, [email protected]
264+
2020/07/01, sha-N, Shan M Mathews, [email protected]
265+
2020/08/22, stevenjohnstone, Steven Johnstone, [email protected]
266+
2020/09/06, ArthurSonzogni, Sonzogni Arthur, [email protected]
267+
2020/09/10, Khailian, Arunav Sanyal, [email protected]
268+
2020/09/12, Clcanny, Charles Ruan, [email protected]
269+
2020/09/15, rmcgregor1990, Robert McGregor, [email protected]
270+
2020/09/16, trenki2, Markus Trenkwalder, trenki2[at]gmx[dot]net
271+
2020/10/08, Marti2203, Martin Mirchev, [email protected]
272+
2020/10/16, adarshbhat, Adarsh Bhat, [email protected]
273+
2020/10/20, adamwojs, Adam Wójs, adam[at]wojs.pl
274+
2020/10/24, cliid, Jiwu Jang, [email protected]
275+
2020/11/05, MichelHartmann, Michel Hartmann, [email protected]

doc/cpp-target.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ int main(int argc, const char* argv[]) {
6565

6666
tree::ParseTree *tree = parser.key();
6767
TreeShapeListener listener;
68-
tree::ParseTreeWalker::DEFAULT->walk(&listener, tree);
68+
tree::ParseTreeWalker::DEFAULT.walk(&listener, tree);
6969

7070
return 0;
7171
}

0 commit comments

Comments
 (0)