Ken Domino
4b649103f3
Restructure C# runtime and fix Issue #2693 ( #3057 )
...
* Fixes for https://github.com/antlr/antlr4/issues/2693
* Adding script for comparing Java and C# profile output.
* Update lexer grammar.
Tightening up the grammar rules. Still Java9.
* Tighten up grammar.
* Adding in new base classes for C# runtime tests for profiling.
* Complete test for Profile = true.
Update ProfileDescriptor to now parse and output profile. The grammar is asm8080 from grammars-v4, tightened up. The input is the example provided there, truncated to included fewer lines as that causes a null-ptr crash with the older runtime. I verified by modifying the .csproj in /tmp.
* Restructuring the Antlr C# runtime so that it is consistent with all other runtimes, a source directory (now antlr4/runtime/CSharp/src), and a test directory (antlr4/runtime/CSharp). In the test area, I added a test for profiling in issue-2593. This test requires the Antlr tool and Antlr C# tool to be build. The path is assumed in a relative path to the test, ../../../../tool/target/antlr4-*-SNAPSHOT-complete.jar, with globbing performed. The test simply checks the return result, output not important. There are no changes to the runtime C# source files other than placing them under src/. Several other build files were changed to reflect the new location of the Antlr C# runtime. I updated the instructions for users on how to build the runtime, including information on checking the environment--now explicitly specified here so people know what to install!
2021-02-02 09:51:41 +08:00
ericvergnaud
e50ecf4961
Sanitize test code base ( #3061 )
...
* sanitize test code base and factorize common code
* fix failing tests
* fix failing tests
* fix failing tests
2021-01-29 19:54:59 +08:00
ericvergnaud
62a0b02bf4
Merge pull request #3053 from l215884529/fix-3052
...
Fix 3052
2021-01-27 20:16:38 +08:00
Kko
ac9d62a994
Update contributors.txt
...
Fix #3052
2021-01-27 15:07:54 +08:00
Kko
8bcc12de28
Fix #3052
2021-01-27 15:07:54 +08:00
ericvergnaud
3c67a9d4ea
Merge pull request #2967 from lingyv-li/patch-1
...
Include prerequisite documentation to publish Dart target
2021-01-27 14:34:07 +08:00
ericvergnaud
be7bc5d81b
Update macosx.yml
2021-01-27 12:15:28 +08:00
ericvergnaud
36bde45396
Update macosx.yml
2021-01-27 10:58:42 +08:00
Eric Vergnaud
68ea904826
change action runner sequence
2021-01-27 10:15:46 +08:00
Eric Vergnaud
2fbc00a8f0
Merge branch 'master' of https://github.com/antlr/antlr4
2021-01-27 10:10:42 +08:00
Eric Vergnaud
59f1f581de
reduce noise
2021-01-27 10:10:24 +08:00
ericvergnaud
365a56f10f
Merge pull request #3050 from kaby76/issue-3049
...
Fix for https://github.com/antlr/antlr4/issues/3049
2021-01-27 01:40:35 +08:00
ericvergnaud
f37dfef7e5
Merge pull request #3054 from KvanTTT/MissedVersionInCSharpRuntime
...
Fix missed version in C# runtime
2021-01-27 01:39:58 +08:00
Eric Vergnaud
5521eb2936
update readme
2021-01-27 01:30:53 +08:00
ericvergnaud
8b05471e6c
Fix NPE ( #3056 )
2021-01-26 12:58:51 +08:00
ericvergnaud
bca2536f3f
Circleci project setup ( #3055 )
...
* Add .circleci/config.yml
* setup config
* use jdk8 image
* Updated config.yml
* Updated config.yml
* Updated config.yml
* more targets
* Updated config.yml
* update config
* update config
* update config
* update config
* update config
* Updated config.yml
* Updated config.yml
* Updated config.yml
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update runtime version
* update config
* update config
* python3 config
* update config
* align Python2 and Python3 test hierarchy
* update runtime version
* update config
* update config
* update config
* update config
* explore dart issue
* update dart installer
* update config
* update dart installer
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* use sudo on circle ci
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* Fix NPE
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* update config
* more consistent badges
* do not parallelize tests on circle-ci
2021-01-26 12:56:16 +08:00
Ivan Kochurkin
cf16ec791e
Fix missed version, https://github.com/antlr/antlr4/pull/2987#pullrequestreview-575417430
2021-01-25 21:14:18 +03:00
kaby76
ce479dc228
Fix for https://github.com/antlr/antlr4/issues/3049
2021-01-24 10:46:39 -05:00
Eric Vergnaud
84d8348dc1
fix disk space issue on MacOSX CI
2021-01-24 19:04:42 +08:00
Eric Vergnaud
05f422268a
drop unused script
2021-01-24 18:08:34 +08:00
ericvergnaud
b2b1793700
Merge pull request #3048 from antlr/implement-dotnet-ci-omacosx
...
all MacOSX builds now work using self-hosted Github actions workflow
2021-01-24 18:01:01 +08:00
Eric Vergnaud
4830925ab0
reinstate all builds
2021-01-24 17:59:35 +08:00
Eric Vergnaud
6a7c3ad256
more feedback
2021-01-24 17:57:40 +08:00
Eric Vergnaud
b3542834a5
add Github action badge
2021-01-24 17:55:49 +08:00
Eric Vergnaud
0fa457a36e
avoid concurrency
2021-01-24 17:45:41 +08:00
Eric Vergnaud
a5589d0dab
fix cd
2021-01-24 17:34:59 +08:00
Eric Vergnaud
92f4c0707b
fix cd
2021-01-24 17:32:24 +08:00
Eric Vergnaud
0caddd8634
add dotnet path
2021-01-24 17:29:12 +08:00
Eric Vergnaud
daf6336430
add script
2021-01-24 16:50:50 +08:00
Eric Vergnaud
d3e2fdae79
try self-hosted CI for dotnet on mac OS
2021-01-24 16:46:59 +08:00
Eric Vergnaud
4d0bc718df
no message
2021-01-24 16:16:45 +08:00
Eric Vergnaud
142a32ed5a
enable self-hosted CI for cpp runtime
2021-01-24 16:12:55 +08:00
ericvergnaud
47fd7026b3
Update macosx.yml
2021-01-24 15:23:28 +08:00
ericvergnaud
5b34cc1ec3
Update macosx.yml
2021-01-24 15:18:59 +08:00
ericvergnaud
4c2ccdb2c0
Update and rename swift-macosx.yml to macosx.yml
2021-01-24 15:18:42 +08:00
ericvergnaud
8227df1c1e
Merge pull request #3047 from antlr/fix-swift-crasher
...
work around Swift crash where reading hashValue on SemanticContext.AND
(merged by @ericvergnaud since @ewanmellor is not able to look into it)
2021-01-24 15:04:46 +08:00
Eric Vergnaud
020333deff
work around Swift crash where reading hashValue on SemanticContext.AND instance would call the empty constructor (possibly a Swift bug?)
2021-01-24 13:46:58 +08:00
ericvergnaud
b050ac43de
Merge pull request #3046 from ericvergnaud/update-LL1Analyzer
...
Update LL1 analyzer in C#, Python, JavaScript, Cpp and Swift runtimes, aligning on the Java runtime
Fixes #3042
2021-01-24 11:12:18 +08:00
Eric Vergnaud
954649d5aa
Fix various javascript warnings and typos
2021-01-23 20:39:53 +08:00
Eric Vergnaud
58da376bef
fix #3042 in Swift runtime
2021-01-23 19:19:02 +08:00
Eric Vergnaud
4322672435
fix #3042 in Go runtime
2021-01-23 18:50:21 +08:00
Eric Vergnaud
559d526648
fix #3042 in Cpp runtime
2021-01-23 18:47:54 +08:00
Eric Vergnaud
e8dfc30f91
fix typo
2021-01-23 18:18:30 +08:00
Eric Vergnaud
329f1301ea
fix #3042 in JavaScript runtime
2021-01-23 17:32:06 +08:00
Eric Vergnaud
a9f11612dd
fix #3042 in Python 2 runtime
2021-01-23 17:23:45 +08:00
Eric Vergnaud
7a9a26c7ec
fix #3042 in Python 3 runtime
2021-01-23 17:22:17 +08:00
Eric Vergnaud
53b65c015c
fix #3042 in C# runtime
2021-01-23 17:04:01 +08:00
ericvergnaud
107f40c63c
Use self hosted GitHub CI for Swift ( #3036 )
...
* Create swift-lexer.yml
Exploring self-hosted GitHub CI
* Create run-tests-swift.sh
* Update swift-lexer.yml
* Update swift-lexer.yml
* Update swift-lexer.yml
* chmod script
* chmod script
* fix typo
* Update swift-lexer.yml
* chmod script
* Update swift-lexer.yml
* Update swift-lexer.yml
* Update run-tests-swift.sh
* Update run-tests-swift.sh
* Update run-tests-swift.sh
* Update run-tests-swift.sh
* Update swift-lexer.yml
* Update swift-lexer.yml
* Update run-tests-swift.sh
* Update swift-lexer.yml
* Update swift-lexer.yml
* Update run-tests-swift.sh
* Update run-tests-swift.sh
* Update run-tests-swift.sh
* Update run-tests-swift.sh
* Update run-tests-swift.sh
* Update run-tests-swift.sh
* try java tests
* Update java-all.yml
* Update java-all.yml
* only run heartbeat when necessary (otherwise build hangs)
* kill hung process
* Update run-tests-swift.sh
* Update run-tests-swift.sh
* Update run-tests-swift.sh
* Create mac-action-runner-readme.txt
* try prefixing swift cmd with arch
* try again
* try locate generated binaries
* fix crash
* try from script
* keep trying
* keep trying
* in progress!
* let's see how it goes...
* fix failing build
* more logs
* more logs
* more logs
* finally ?
* grrrr
* let's see if maven is the culprit
* fix warnings when compiling swift runtime
* more warnings gone
* works with 1 class, how about many?
* more warnings gone
* less noise
* Revert "more warnings gone"
This reverts commit a09e221c41
.
* try matrix
* fix failing build
* don't fail fast
2021-01-22 17:04:17 +08:00
ericvergnaud
1095804388
Fix swift warnings ( #3043 )
...
* fix warnings when compiling swift runtime
* more warnings gone
* more warnings gone
* Revert "more warnings gone"
This reverts commit a09e221c41
.
2021-01-22 11:33:29 +08:00
Eric Vergnaud
5dce78c87a
Fix typo
2021-01-21 17:23:44 +08:00