Skip to content

Commit

Permalink
License consolidation
Browse files Browse the repository at this point in the history
I decided to release the entire package under my name and the BSD-3 license.
  • Loading branch information
mike-lischke committed Jan 5, 2025
1 parent 980d782 commit 0f8a9c4
Show file tree
Hide file tree
Showing 323 changed files with 601 additions and 884 deletions.
11 changes: 0 additions & 11 deletions LICENSE-BSD3.txt

This file was deleted.

26 changes: 9 additions & 17 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
MIT License
BSD 3-clause License

Copyright (c) 2021, 2023, Mike Lischke
Copyright (c) 2022, 2025, Mike Lischke. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2 changes: 1 addition & 1 deletion build/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

declare module "@unicode/unicode-15.1.0/*" {
Expand Down
5 changes: 2 additions & 3 deletions cli/Interpreter.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

import { Option, program } from "commander";
Expand Down
5 changes: 2 additions & 3 deletions cli/TestRig.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

/* eslint-disable jsdoc/require-param, jsdoc/require-returns */
Expand Down
2 changes: 1 addition & 1 deletion cli/cli-options.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

/** CLI parameters for the interpreter and testrig tools. */
Expand Down
5 changes: 2 additions & 3 deletions cli/runner.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/usr/bin/env node

/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

import { Tool } from "../src/Tool.js";
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

import eslint from "@eslint/js";
Expand Down
5 changes: 2 additions & 3 deletions src/ClassFactory.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

import type { ATN, CharStream, TokenStream } from "antlr4ng";
Expand Down
5 changes: 2 additions & 3 deletions src/Constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

import { Token } from "antlr4ng";
Expand Down
5 changes: 2 additions & 3 deletions src/Tool.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

/* eslint-disable jsdoc/require-param, jsdoc/require-returns */
Expand Down
5 changes: 2 additions & 3 deletions src/UndefChecker.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

import { Character } from "./support/Character.js";
Expand Down
5 changes: 2 additions & 3 deletions src/analysis/AnalysisPipeline.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

/* eslint-disable jsdoc/require-param, jsdoc/require-returns */
Expand Down
5 changes: 2 additions & 3 deletions src/analysis/LeftRecursionDetector.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

/* eslint-disable jsdoc/require-param */
Expand Down
5 changes: 2 additions & 3 deletions src/analysis/LeftRecursiveRuleAltInfo.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

import { AltAST } from "../tool/ast/AltAST.js";
Expand Down
5 changes: 2 additions & 3 deletions src/analysis/LeftRecursiveRuleAnalyzer.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

/* eslint-disable jsdoc/require-param, jsdoc/require-returns */
Expand Down
5 changes: 2 additions & 3 deletions src/analysis/LeftRecursiveRuleTransformer.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

/* eslint-disable jsdoc/require-param, jsdoc/require-returns */
Expand Down
5 changes: 2 additions & 3 deletions src/antlr3/BaseRecognizer.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

/* eslint-disable jsdoc/require-param, jsdoc/require-returns */
Expand Down
5 changes: 2 additions & 3 deletions src/antlr3/EarlyExitException.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

import { RecognitionException, type IntStream } from "antlr4ng";
Expand Down
5 changes: 2 additions & 3 deletions src/antlr3/FailedPredicateException.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

import { RecognitionException, type IntStream } from "antlr4ng";
Expand Down
5 changes: 2 additions & 3 deletions src/antlr3/IRecognizerSharedState.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

// cspell: disable
Expand Down
5 changes: 2 additions & 3 deletions src/antlr3/MismatchTreeNodeException.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

import { RecognitionException } from "antlr4ng";
Expand Down
5 changes: 2 additions & 3 deletions src/antlr3/MismatchedSetException.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

import { RecognitionException, type BitSet, type IntStream } from "antlr4ng";
Expand Down
5 changes: 2 additions & 3 deletions src/antlr3/NoViableAltException.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

import { RecognitionException, type IntStream } from "antlr4ng";
Expand Down
5 changes: 2 additions & 3 deletions src/antlr3/misc/FastQueue.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

/* eslint-disable jsdoc/require-param, jsdoc/require-returns */
Expand Down
5 changes: 2 additions & 3 deletions src/antlr3/misc/LookaheadStream.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

/* eslint-disable jsdoc/require-param, jsdoc/require-returns */
Expand Down
5 changes: 2 additions & 3 deletions src/antlr3/tree/BaseTree.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

/* eslint-disable jsdoc/require-param, jsdoc/require-returns */
Expand Down
5 changes: 2 additions & 3 deletions src/antlr3/tree/BaseTreeAdaptor.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

/* eslint-disable jsdoc/require-param, jsdoc/require-returns */
Expand Down
5 changes: 2 additions & 3 deletions src/antlr3/tree/CommonErrorNode.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

// cspell: disable
Expand Down
5 changes: 2 additions & 3 deletions src/antlr3/tree/CommonTreeAdaptor.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

/* eslint-disable jsdoc/require-param, jsdoc/require-returns */
Expand Down
5 changes: 2 additions & 3 deletions src/antlr3/tree/CommonTreeNodeStream.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

/* eslint-disable jsdoc/require-param, jsdoc/require-returns */
Expand Down
5 changes: 2 additions & 3 deletions src/antlr3/tree/PositionTrackingStream.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

// cspell: disable
Expand Down
5 changes: 2 additions & 3 deletions src/antlr3/tree/RewriteRuleElementStream.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

/* eslint-disable jsdoc/require-param, jsdoc/require-returns */
Expand Down
5 changes: 2 additions & 3 deletions src/antlr3/tree/RewriteRuleNodeStream.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

import type { CommonTree } from "../../tree/CommonTree.js";
Expand Down
5 changes: 2 additions & 3 deletions src/antlr3/tree/RewriteRuleSubtreeStream.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

/* eslint-disable jsdoc/require-returns */
Expand Down
5 changes: 2 additions & 3 deletions src/antlr3/tree/Tree.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

// cspell: disable
Expand Down
5 changes: 2 additions & 3 deletions src/antlr3/tree/TreeAdaptor.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

import type { RecognitionException, Token, TokenStream } from "antlr4ng";
Expand Down
5 changes: 2 additions & 3 deletions src/antlr3/tree/TreeIterator.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
* Copyright (c) Mike Lischke. All rights reserved.
* Licensed under the BSD 3-clause License. See License.txt in the project root for license information.
*/

// cspell: disable
Expand Down
Loading

0 comments on commit 0f8a9c4

Please sign in to comment.