Skip to content

Commit e05e0ff

Browse files
Migrate to ANTLR v4 in Lucene.Net.Expressions, apache#977 (apache#996)
* Migrate to ANTLR v4, apache#977 * Exclude generated code from ApiScanTestBase tests * Make Antlr4BuildTasks a build-time-only dependency, and remove old ANTLRv3 transitive deps * LICENSE.txt: Added BSD license for src/Lucene.Net.Expressions/JS/Javascript.g4. Normalized dividers between different license attributions. --------- Co-authored-by: Shad Storhaug <shad@shadstorhaug.com>
1 parent c1d2d66 commit e05e0ff

File tree

9 files changed

+831
-4351
lines changed

9 files changed

+831
-4351
lines changed

.build/dependencies.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
-->
2121
<Project>
2222
<PropertyGroup Label="NuGet Package Reference Versions">
23-
<Antlr3RuntimePackageVersion>3.5.1</Antlr3RuntimePackageVersion>
23+
<Antlr4RuntimeStandardPackageVersion>4.13.1</Antlr4RuntimeStandardPackageVersion>
24+
<Antlr4BuildTasksPackageVersion>12.8.0</Antlr4BuildTasksPackageVersion>
2425
<!-- LUCENENET TODO: When ICU4N is released to production,
2526
be sure to lock down the version range below. The resource
2627
files in Lucene.Net.ICU are not compatible with any other

LICENSE.txt

Lines changed: 57 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
See the License for the specific language governing permissions and
202202
limitations under the License.
203203

204-
204+
========
205205

206206
Some code in src/Lucene.Net/Util/UnicodeUtil.cs was derived from unicode
207207
conversion examples available at http://www.unicode.org/Public/PROGRAMS/CVTUTF.
@@ -230,6 +230,7 @@ Here is the copyright from those sources:
230230
* remains attached.
231231
*/
232232

233+
========
233234

234235
Some code in src/Lucene.Net/Util/ArrayUtil.cs was derived from Python 2.4.2
235236
sources available at http://www.python.org.
@@ -238,13 +239,15 @@ Full license is here:
238239

239240
http://www.python.org/download/releases/2.4.2/license/
240241

242+
========
241243

242244
Some code in src/Lucene.Net/Util/UnicodeUtil.cs was
243245
derived from Python 3.1.2 sources available at
244246
http://www.python.org. Full license is here:
245247

246248
http://www.python.org/download/releases/3.1.2/license/
247249

250+
========
248251

249252
Some code in src/Lucene.Net/Util/Automaton was
250253
derived from Brics automaton sources available at
@@ -277,6 +280,7 @@ www.brics.dk/automaton/. Here is the copyright from those sources:
277280
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
278281
*/
279282

283+
========
280284

281285
The levenshtein automata tables in src/Lucene.Net/Util/Automaton
282286
were automatically generated with the moman/finenight FSA package.
@@ -305,6 +309,7 @@ Here is the copyright for those sources:
305309
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
306310
# OTHER DEALINGS IN THE SOFTWARE.
307311

312+
========
308313

309314
Some code in src/Lucene.Net/Util/UnicodeUtil.cs was
310315
derived from ICU (http://www.icu-project.org)
@@ -338,7 +343,8 @@ The full license is available here:
338343
* dealings in this Software without prior written authorization of the
339344
* copyright holder.
340345
*/
341-
346+
347+
========
342348

343349
The following license applies to the Snowball stemmers:
344350

@@ -369,6 +375,7 @@ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
369375
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
370376
OF this SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
371377

378+
========
372379

373380
The following license applies to src/Lucene.Net.Analysis.Common/Analysis/En/KStemmer.cs:
374381

@@ -540,7 +547,7 @@ Office or Microsoft Dynamics).
540547

541548
Some code in src/Lucene.Net.Analysis.Stempel/Egothor.Stemmer and
542549
src/Lucene.Net.Tests.Analysis.Stempel/Egothor.Stemmer falls
543-
under the following license
550+
under the following license:
544551

545552
Egothor Software License version 1.00
546553
Copyright (C) 1997-2004 Leo Galambos.
@@ -643,7 +650,7 @@ falls under the following license:
643650
// Written by David Megginson
644651
// NO WARRANTY! This class is in the public domain.
645652

646-
---
653+
========
647654

648655
The code in .build/psake/ falls under the following license:
649656

@@ -668,7 +675,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
668675
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
669676
THE SOFTWARE.
670677

671-
---
678+
========
672679

673680
src/Lucene.Net/Support/Compatibility/NullableAttributes.cs
674681
src/Lucene.Net/Support/DateTimeOffsetUtil.cs
@@ -696,7 +703,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
696703
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
697704
SOFTWARE.
698705

699-
---
706+
========
700707

701708
Some code in src/Lucene.Net/Support/ConcurrentHashSet.cs falls under the following license:
702709

@@ -722,7 +729,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
722729
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
723730
SOFTWARE.
724731

725-
---
732+
========
726733

727734
Some code in
728735
src/Lucene.Net.TestFramework/Support/Util/DefaultNamespaceTypeWrapper.cs
@@ -749,3 +756,46 @@ falls under the following license:
749756
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
750757
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
751758
// THE SOFTWARE.
759+
760+
========
761+
762+
The code in src/Lucene.Net.Expressions/JS/Javascript.g4 falls under the following license:
763+
764+
Copyrights 2008-2009 Xebic Reasearch BV. All rights reserved..
765+
Original work by Patrick Hulsmeijer.
766+
767+
This ANTLR 3 LL(*) grammar is based on Ecma-262 3rd edition (JavaScript 1.5, JScript 5.5).
768+
The annotations refer to the "A Grammar Summary" section (e.g. A.1 Lexical Grammar)
769+
and the numbers in parenthesis to the paragraph numbers (e.g. (7.8) ).
770+
This document is best viewed with ANTLRWorks (www.antlr.org).
771+
772+
Software License Agreement (BSD License)
773+
774+
Copyright (c) 2008-2010, Xebic Research B.V.
775+
All rights reserved.
776+
777+
Redistribution and use of this software in source and binary forms, with or without modification, are
778+
permitted provided that the following conditions are met:
779+
780+
* Redistributions of source code must retain the above
781+
copyright notice, this list of conditions and the
782+
following disclaimer.
783+
784+
* Redistributions in binary form must reproduce the above
785+
copyright notice, this list of conditions and the
786+
following disclaimer in the documentation and/or other
787+
materials provided with the distribution.
788+
789+
* Neither the name of Xebic Research B.V. nor the names of its
790+
contributors may be used to endorse or promote products
791+
derived from this software without specific prior
792+
written permission of Xebic Research B.V.
793+
794+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
795+
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
796+
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
797+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
798+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
799+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
800+
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
801+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)