Commit Graph

7980 Commits

Author SHA1 Message Date
ericvergnaud dc460a0514
Merge pull request #3100 from hackeris/patch-1
fix javascript import in example code
2021-03-02 11:18:19 +08:00
ericvergnaud 9af2480f48
Merge branch 'master' into patch-1 2021-03-02 10:11:35 +08:00
不是油条 ab2b71ce42
sign to contributors 2021-03-02 09:45:53 +08:00
Terence Parr 715acdb44a
Merge pull request #3094 from khmarbaise/issue-3093
Fix #3093 - The antlr4-maven-plugin is not marked as thread safe
2021-03-01 11:41:48 -08:00
不是油条 31dd28630e
fix javascript import in example code 2021-03-02 00:59:48 +08:00
Karl Heinz Marbaise 1b791a8694
Fixes #3093 - The antlr4-maven-plugin is not marked as thread safe 2021-02-27 21:16:44 +01:00
Jiri Slaby 5a808b470e Cpp/runtime: use utf8cpp from system if possible
Try to find system's utf8cpp first, instead of downloading it from
github. utf8cpp 3 defines a cmake package, so we can use find_package.
Older utf8cpps don't, so we try also find_path. If all that fails, we
still fall back to github download.

This is needed as distributions cannot download stuff from their build
systems. And people want to use libraries/headers from the distribution
anyway.

I had to reorder the file a bit, so that the libraries are defined
through the utf8cpp detection
2021-02-23 08:19:40 +01:00
Jiri Slaby ac10e7bb79 contributors.txt: sign it 2021-02-23 08:19:39 +01:00
ericvergnaud 60fd27ff93
Merge pull request #3089 from namasikanam/master
fix a typo in the csharp-target doc
2021-02-21 11:13:08 +08:00
Xingyu Xie c3ad8fca0a
sign contributors certification 2021-02-21 03:08:12 +08:00
Xingyu Xie 3074c7f10f
fix a typo of case sensitivity 2021-02-21 03:05:09 +08:00
Terence Parr fde0b28dfb
Merge pull request #3071 from felixn/cxx-17
Cpp target: allow building runtime with newer C++ standards
2021-02-16 09:10:41 -08:00
Mike Lischke 83911369ad Merge branch 'master-upstream' 2021-02-16 09:14:05 +01:00
Felix Nieuwenhuizen a08edf89ce add hints about C++ standard to readmes 2021-02-15 19:57:36 +01:00
Felix Nieuwenhuizen 03ee69bc3f add example showing how to compile Cpp runtime with a different standard 2021-02-15 18:50:29 +01:00
Felix Nieuwenhuizen 98a3f7d640 allow override of CMAKE_CXX_STANDARD 2021-02-15 18:50:29 +01:00
Felix Nieuwenhuizen 66bf523beb whitespace cleanup 2021-02-15 18:50:29 +01:00
ericvergnaud 84722e9fcc
Fix javascript intervals (#3083)
* run jest tests in CI

* fix issue when merging sets of intervals

* fix CI config

* improve readability

* more tests
2021-02-14 16:51:41 +08:00
Eric Vergnaud 1281fb770e update readme 2021-02-14 00:41:43 +08:00
Oscar Bonilla c0935e190b
Add missing single quote in lexicon.md (#2254) 2021-02-14 00:27:10 +08:00
ericvergnaud 12be1d299d
split appveyor ci (#3082)
* split appveyor ci

* use appveyor matrix

* fix config

* analyze failure

* fix java test job

* troubleshooting

* install node

* troubleshooting

* troubleshooting

* troubleshooting

* troubleshooting

* troubleshooting

* troubleshoot

* troubleshoot

* troubleshoot

* troubleshoot

* troubleshoot

* troubleshoot

* troubleshoot

* almost there!

* full build
2021-02-14 00:11:27 +08:00
ericvergnaud 5719d3496c
Merge pull request #3081 from ericvergnaud/reinstate-php-ci
reinstate PHP ci on circle-ci
2021-02-13 20:19:11 +08:00
Eric Vergnaud bb7e8bae42 reenable all targets 2021-02-13 19:41:41 +08:00
Eric Vergnaud ce3700f3a0 change package 2021-02-13 19:37:17 +08:00
Eric Vergnaud e414c829cf try again 2021-02-13 19:33:14 +08:00
Eric Vergnaud e56f8abf3b getting there 2021-02-13 19:25:18 +08:00
Eric Vergnaud a95897c3fa progressing 2021-02-13 19:19:04 +08:00
Eric Vergnaud 2f12fa2688 add composer 2021-02-13 19:08:10 +08:00
Eric Vergnaud 88b582a73c try again 2021-02-13 19:04:45 +08:00
Eric Vergnaud f670a3944d grrr 2021-02-13 19:00:53 +08:00
Eric Vergnaud 9f03a7f987 try apt update 2021-02-13 18:59:14 +08:00
Eric Vergnaud f13debd885 try hhvm 2021-02-13 18:57:22 +08:00
Eric Vergnaud 6647c6bb0d install php 2021-02-13 18:55:35 +08:00
Eric Vergnaud c0cc0fd8a4 reinstate PHP ci on circle-ci 2021-02-13 17:28:44 +08:00
ericvergnaud 00fbf95183
Merge pull request #3080 from antlr/fix-javascript-semantic-predicates
fix javascript semantic predicates
2021-02-13 17:24:29 +08:00
Eric Vergnaud 94f9759d14 fix #2007 2021-02-13 15:10:17 +08:00
Eric Vergnaud 26291a11d8 align debug output on java 2021-02-13 15:09:52 +08:00
Eric Vergnaud 586721462c Fix #3078 2021-02-13 15:09:34 +08:00
ericvergnaud 9668ce7dbb
Merge pull request #3077 from antlr/fix-javascript-intervalset
Fix javascript intervalset, fix #3075
2021-02-13 11:52:23 +08:00
Eric Vergnaud f0ca1140a7 don't delete symlinks content 2021-02-13 03:31:12 +08:00
Eric Vergnaud e99363ac1a fix typos, fixes #3075 2021-02-13 02:30:50 +08:00
Eric Vergnaud 25196001d7 add test 2021-02-13 02:29:55 +08:00
Eric Vergnaud 64d49cc4d8 add jest for testing 2021-02-13 02:29:35 +08:00
Eric Vergnaud a60c32d369 Fix an issue where test files were not deleted on MacOSX/Swift, leading to disk space issues on further CI builds 2021-02-03 12:38:38 +08:00
Taras Sotnikov f7b4100fcc
Fix TextIO compatibility with Python 3.6+ in LexerFile (#3067)
* Fix TextIO compatibility with Python 3.6+ in LexerFile

* Sign contributors.txt
2021-02-03 09:48:41 +08:00
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
Alexander Bigerl ed2631b2d0
Merge branch 'master' into patch-1 2021-02-01 08:38:46 +01: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