From 07083093e4c8518689b86b960674374098730da0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Hiszpa=C5=84ski?= Date: Wed, 28 Dec 2022 12:30:17 +0100 Subject: [PATCH] Added license header to all files Added license badge --- README.md | 2 +- pom.xml | 24 +++++++++++++++++++ src/main/java/com/avispa/parser/Parser.java | 24 +++++++++++++++++++ .../com/avispa/parser/PrecedenceParsers.java | 24 +++++++++++++++++++ .../avispa/parser/lexer/LexerException.java | 24 +++++++++++++++++++ .../java/com/avispa/parser/misc/ListUtil.java | 24 +++++++++++++++++++ .../com/avispa/parser/misc/TablePrinter.java | 24 +++++++++++++++++++ .../avispa/parser/misc/cli/CliService.java | 24 +++++++++++++++++++ .../avispa/parser/misc/cli/OutputMode.java | 24 +++++++++++++++++++ .../avispa/parser/misc/cli/ToolOption.java | 24 +++++++++++++++++++ .../com/avispa/parser/misc/tree/TreeNode.java | 24 +++++++++++++++++++ .../avispa/parser/misc/tree/TreePrinter.java | 24 +++++++++++++++++++ .../output/AbstractOutputTransformer.java | 24 +++++++++++++++++++ .../parser/output/OutputTransformer.java | 24 +++++++++++++++++++ .../parser/precedence/function/GraphNode.java | 24 +++++++++++++++++++ .../function/GraphPrecedenceFunctions.java | 24 +++++++++++++++++++ .../function/PrecedenceFunctions.java | 24 +++++++++++++++++++ .../PrecedenceFunctionsException.java | 24 +++++++++++++++++++ .../grammar/ContextFreeGrammar.java | 24 +++++++++++++++++++ .../parser/precedence/grammar/Grammar.java | 24 +++++++++++++++++++ .../precedence/grammar/GrammarFile.java | 24 +++++++++++++++++++ .../grammar/IncorrectGrammarException.java | 24 +++++++++++++++++++ .../precedence/grammar/NonTerminal.java | 24 +++++++++++++++++++ .../parser/precedence/grammar/Production.java | 24 +++++++++++++++++++ .../parser/precedence/grammar/Symbol.java | 24 +++++++++++++++++++ .../parser/precedence/grammar/Terminal.java | 24 +++++++++++++++++++ .../grammar/validation/GrammarValidator.java | 24 +++++++++++++++++++ .../validation/OperatorGrammarValidator.java | 24 +++++++++++++++++++ .../SimplePrecedenceGrammarValidator.java | 24 +++++++++++++++++++ .../parser/precedence/lexer/Lexeme.java | 24 +++++++++++++++++++ .../avispa/parser/precedence/lexer/Lexer.java | 24 +++++++++++++++++++ .../parser/precedence/output/Derivation.java | 24 +++++++++++++++++++ .../parser/precedence/output/ParseTree.java | 24 +++++++++++++++++++ .../parser/OperatorPrecedenceParser.java | 24 +++++++++++++++++++ .../parser/ParserCreationException.java | 24 +++++++++++++++++++ .../precedence/parser/ParserFactory.java | 24 +++++++++++++++++++ .../precedence/parser/PrecedenceParser.java | 24 +++++++++++++++++++ .../precedence/parser/ProductionTreeNode.java | 24 +++++++++++++++++++ .../parser/ProductionsTreeBuilder.java | 24 +++++++++++++++++++ .../precedence/parser/ReductionException.java | 24 +++++++++++++++++++ .../parser/SimplePrecedenceParser.java | 24 +++++++++++++++++++ .../precedence/parser/SyntaxException.java | 24 +++++++++++++++++++ .../table/OperatorPrecedenceTable.java | 24 +++++++++++++++++++ .../parser/precedence/table/Precedence.java | 24 +++++++++++++++++++ .../precedence/table/PrecedenceTable.java | 24 +++++++++++++++++++ .../table/PrecedenceTableException.java | 24 +++++++++++++++++++ .../precedence/table/RelationException.java | 24 +++++++++++++++++++ .../table/SimplePrecedenceTable.java | 24 +++++++++++++++++++ .../precedence/table/set/FirstAllSets.java | 24 +++++++++++++++++++ .../precedence/table/set/FirstOpSets.java | 24 +++++++++++++++++++ .../precedence/table/set/FirstSets.java | 24 +++++++++++++++++++ .../precedence/table/set/LastAllSets.java | 24 +++++++++++++++++++ .../precedence/table/set/LastOpSets.java | 24 +++++++++++++++++++ .../table/set/OperatorPrecedenceSets.java | 24 +++++++++++++++++++ .../precedence/table/set/PrecedenceSets.java | 24 +++++++++++++++++++ .../table/set/SimplePrecedenceSets.java | 24 +++++++++++++++++++ .../com/avispa/parser/shuntingyard/Call.java | 24 +++++++++++++++++++ .../shuntingyard/OperatorAssociativity.java | 24 +++++++++++++++++++ .../parser/shuntingyard/ShuntingYard.java | 24 +++++++++++++++++++ .../parser/shuntingyard/output/Evaluator.java | 24 +++++++++++++++++++ .../shuntingyard/output/ExpressionTree.java | 24 +++++++++++++++++++ .../output/ReversePolishNotationText.java | 24 +++++++++++++++++++ .../token/BinaryOperatorToken.java | 24 +++++++++++++++++++ .../shuntingyard/token/FunctionToken.java | 24 +++++++++++++++++++ .../shuntingyard/token/MathOperator.java | 24 +++++++++++++++++++ .../parser/shuntingyard/token/Misc.java | 24 +++++++++++++++++++ .../parser/shuntingyard/token/Operand.java | 24 +++++++++++++++++++ .../parser/shuntingyard/token/Token.java | 24 +++++++++++++++++++ .../token/UnaryOperatorToken.java | 24 +++++++++++++++++++ .../shuntingyard/tokenizer/Tokenizer.java | 24 +++++++++++++++++++ .../java/com/avispa/parser/token/Token.java | 24 +++++++++++++++++++ src/main/resources/logback.xml | 24 +++++++++++++++++++ .../com/avispa/parser/misc/ListUtilTest.java | 24 +++++++++++++++++++ .../avispa/parser/misc/TablePrinterTest.java | 24 +++++++++++++++++++ .../parser/misc/cli/CliServiceTest.java | 24 +++++++++++++++++++ .../parser/misc/tree/TreePrinterTest.java | 24 +++++++++++++++++++ .../avispa/parser/precedence/ParserUtil.java | 24 +++++++++++++++++++ .../avispa/parser/precedence/TestSymbols.java | 24 +++++++++++++++++++ .../GraphPrecedenceFunctionsTest.java | 24 +++++++++++++++++++ .../grammar/ContextFreeGrammarTest.java | 24 +++++++++++++++++++ .../precedence/grammar/GrammarFileTest.java | 24 +++++++++++++++++++ .../OperatorGrammarValidatorTest.java | 24 +++++++++++++++++++ .../SimplePrecedenceGrammarValidatorTest.java | 24 +++++++++++++++++++ .../parser/precedence/lexer/LexerTest.java | 24 +++++++++++++++++++ .../precedence/output/DerivationTest.java | 24 +++++++++++++++++++ .../precedence/output/ParseTreeTest.java | 24 +++++++++++++++++++ .../parser/OperatorPrecedenceParserTest.java | 24 +++++++++++++++++++ .../parser/ProductionsTreeBuilderTest.java | 24 +++++++++++++++++++ .../parser/SimplePrecedenceParserTest.java | 24 +++++++++++++++++++ .../table/OperatorPrecedenceTableTest.java | 24 +++++++++++++++++++ .../table/SimplePrecedenceTableTest.java | 24 +++++++++++++++++++ .../table/set/OperatorPrecedenceSetsTest.java | 24 +++++++++++++++++++ .../table/set/SimplePrecedenceSetsTest.java | 24 +++++++++++++++++++ .../parser/shuntingyard/ShuntingYardTest.java | 24 +++++++++++++++++++ .../shuntingyard/output/EvaluatorTest.java | 24 +++++++++++++++++++ .../output/ExpressionTreeTest.java | 24 +++++++++++++++++++ .../shuntingyard/tokenizer/TokenizerTest.java | 24 +++++++++++++++++++ src/test/resources/logback-test.xml | 24 +++++++++++++++++++ 98 files changed, 2329 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index db3a9d3..d74b255 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![Status](https://github.com//RHarryH/precedence-parsers/actions/workflows/main.yml/badge.svg) ![Coverage](.github/badges/jacoco.svg) +![Status](https://github.com//RHarryH/precedence-parsers/actions/workflows/main.yml/badge.svg) ![Coverage](.github/badges/jacoco.svg) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) # Precedence parsers diff --git a/pom.xml b/pom.xml index f98c506..2668abe 100644 --- a/pom.xml +++ b/pom.xml @@ -1,4 +1,28 @@ + + diff --git a/src/main/java/com/avispa/parser/Parser.java b/src/main/java/com/avispa/parser/Parser.java index 47e358d..df9cf05 100644 --- a/src/main/java/com/avispa/parser/Parser.java +++ b/src/main/java/com/avispa/parser/Parser.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser; import com.avispa.parser.lexer.LexerException; diff --git a/src/main/java/com/avispa/parser/PrecedenceParsers.java b/src/main/java/com/avispa/parser/PrecedenceParsers.java index 8ae8866..e99526f 100644 --- a/src/main/java/com/avispa/parser/PrecedenceParsers.java +++ b/src/main/java/com/avispa/parser/PrecedenceParsers.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser; import com.avispa.parser.misc.cli.CliService; diff --git a/src/main/java/com/avispa/parser/lexer/LexerException.java b/src/main/java/com/avispa/parser/lexer/LexerException.java index f9c43d5..0dc17be 100644 --- a/src/main/java/com/avispa/parser/lexer/LexerException.java +++ b/src/main/java/com/avispa/parser/lexer/LexerException.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.lexer; import org.apache.commons.lang3.StringUtils; diff --git a/src/main/java/com/avispa/parser/misc/ListUtil.java b/src/main/java/com/avispa/parser/misc/ListUtil.java index e955932..256c34f 100644 --- a/src/main/java/com/avispa/parser/misc/ListUtil.java +++ b/src/main/java/com/avispa/parser/misc/ListUtil.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.misc; import lombok.AccessLevel; diff --git a/src/main/java/com/avispa/parser/misc/TablePrinter.java b/src/main/java/com/avispa/parser/misc/TablePrinter.java index d8f4e3d..de11614 100644 --- a/src/main/java/com/avispa/parser/misc/TablePrinter.java +++ b/src/main/java/com/avispa/parser/misc/TablePrinter.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.misc; import com.avispa.parser.precedence.grammar.Terminal; diff --git a/src/main/java/com/avispa/parser/misc/cli/CliService.java b/src/main/java/com/avispa/parser/misc/cli/CliService.java index 5abb4c3..6bb27ef 100644 --- a/src/main/java/com/avispa/parser/misc/cli/CliService.java +++ b/src/main/java/com/avispa/parser/misc/cli/CliService.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.misc.cli; import com.avispa.parser.lexer.LexerException; diff --git a/src/main/java/com/avispa/parser/misc/cli/OutputMode.java b/src/main/java/com/avispa/parser/misc/cli/OutputMode.java index 9d0ff2c..23fa9a1 100644 --- a/src/main/java/com/avispa/parser/misc/cli/OutputMode.java +++ b/src/main/java/com/avispa/parser/misc/cli/OutputMode.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.misc.cli; import lombok.Getter; diff --git a/src/main/java/com/avispa/parser/misc/cli/ToolOption.java b/src/main/java/com/avispa/parser/misc/cli/ToolOption.java index 3b89532..644943d 100644 --- a/src/main/java/com/avispa/parser/misc/cli/ToolOption.java +++ b/src/main/java/com/avispa/parser/misc/cli/ToolOption.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.misc.cli; import lombok.Getter; diff --git a/src/main/java/com/avispa/parser/misc/tree/TreeNode.java b/src/main/java/com/avispa/parser/misc/tree/TreeNode.java index 949a477..ed794a7 100644 --- a/src/main/java/com/avispa/parser/misc/tree/TreeNode.java +++ b/src/main/java/com/avispa/parser/misc/tree/TreeNode.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.misc.tree; import lombok.EqualsAndHashCode; diff --git a/src/main/java/com/avispa/parser/misc/tree/TreePrinter.java b/src/main/java/com/avispa/parser/misc/tree/TreePrinter.java index 4de5264..36f89d6 100644 --- a/src/main/java/com/avispa/parser/misc/tree/TreePrinter.java +++ b/src/main/java/com/avispa/parser/misc/tree/TreePrinter.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.misc.tree; import lombok.AccessLevel; diff --git a/src/main/java/com/avispa/parser/output/AbstractOutputTransformer.java b/src/main/java/com/avispa/parser/output/AbstractOutputTransformer.java index 9b6ac59..64e8315 100644 --- a/src/main/java/com/avispa/parser/output/AbstractOutputTransformer.java +++ b/src/main/java/com/avispa/parser/output/AbstractOutputTransformer.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.output; import com.avispa.parser.Parser; diff --git a/src/main/java/com/avispa/parser/output/OutputTransformer.java b/src/main/java/com/avispa/parser/output/OutputTransformer.java index ea18dab..30e2eda 100644 --- a/src/main/java/com/avispa/parser/output/OutputTransformer.java +++ b/src/main/java/com/avispa/parser/output/OutputTransformer.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.output; import com.avispa.parser.lexer.LexerException; diff --git a/src/main/java/com/avispa/parser/precedence/function/GraphNode.java b/src/main/java/com/avispa/parser/precedence/function/GraphNode.java index f61cf6b..2902590 100644 --- a/src/main/java/com/avispa/parser/precedence/function/GraphNode.java +++ b/src/main/java/com/avispa/parser/precedence/function/GraphNode.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.function; import com.avispa.parser.precedence.grammar.Symbol; diff --git a/src/main/java/com/avispa/parser/precedence/function/GraphPrecedenceFunctions.java b/src/main/java/com/avispa/parser/precedence/function/GraphPrecedenceFunctions.java index 77bb2ff..2f23e00 100644 --- a/src/main/java/com/avispa/parser/precedence/function/GraphPrecedenceFunctions.java +++ b/src/main/java/com/avispa/parser/precedence/function/GraphPrecedenceFunctions.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.function; import com.avispa.parser.precedence.grammar.Symbol; diff --git a/src/main/java/com/avispa/parser/precedence/function/PrecedenceFunctions.java b/src/main/java/com/avispa/parser/precedence/function/PrecedenceFunctions.java index 886143a..7b0b59f 100644 --- a/src/main/java/com/avispa/parser/precedence/function/PrecedenceFunctions.java +++ b/src/main/java/com/avispa/parser/precedence/function/PrecedenceFunctions.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.function; import com.avispa.parser.precedence.grammar.Symbol; diff --git a/src/main/java/com/avispa/parser/precedence/function/PrecedenceFunctionsException.java b/src/main/java/com/avispa/parser/precedence/function/PrecedenceFunctionsException.java index 8557e16..900a0d2 100644 --- a/src/main/java/com/avispa/parser/precedence/function/PrecedenceFunctionsException.java +++ b/src/main/java/com/avispa/parser/precedence/function/PrecedenceFunctionsException.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.function; /** diff --git a/src/main/java/com/avispa/parser/precedence/grammar/ContextFreeGrammar.java b/src/main/java/com/avispa/parser/precedence/grammar/ContextFreeGrammar.java index 3fad586..142a27d 100644 --- a/src/main/java/com/avispa/parser/precedence/grammar/ContextFreeGrammar.java +++ b/src/main/java/com/avispa/parser/precedence/grammar/ContextFreeGrammar.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.grammar; import lombok.Getter; diff --git a/src/main/java/com/avispa/parser/precedence/grammar/Grammar.java b/src/main/java/com/avispa/parser/precedence/grammar/Grammar.java index 7423fe6..3360c21 100644 --- a/src/main/java/com/avispa/parser/precedence/grammar/Grammar.java +++ b/src/main/java/com/avispa/parser/precedence/grammar/Grammar.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.grammar; import java.util.List; diff --git a/src/main/java/com/avispa/parser/precedence/grammar/GrammarFile.java b/src/main/java/com/avispa/parser/precedence/grammar/GrammarFile.java index a229b95..4e02250 100644 --- a/src/main/java/com/avispa/parser/precedence/grammar/GrammarFile.java +++ b/src/main/java/com/avispa/parser/precedence/grammar/GrammarFile.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.grammar; import lombok.AccessLevel; diff --git a/src/main/java/com/avispa/parser/precedence/grammar/IncorrectGrammarException.java b/src/main/java/com/avispa/parser/precedence/grammar/IncorrectGrammarException.java index fbf1c5f..c1fdd9f 100644 --- a/src/main/java/com/avispa/parser/precedence/grammar/IncorrectGrammarException.java +++ b/src/main/java/com/avispa/parser/precedence/grammar/IncorrectGrammarException.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.grammar; /** diff --git a/src/main/java/com/avispa/parser/precedence/grammar/NonTerminal.java b/src/main/java/com/avispa/parser/precedence/grammar/NonTerminal.java index 79e7a91..46db3dc 100644 --- a/src/main/java/com/avispa/parser/precedence/grammar/NonTerminal.java +++ b/src/main/java/com/avispa/parser/precedence/grammar/NonTerminal.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.grammar; import lombok.EqualsAndHashCode; diff --git a/src/main/java/com/avispa/parser/precedence/grammar/Production.java b/src/main/java/com/avispa/parser/precedence/grammar/Production.java index 658bd77..2d8a568 100644 --- a/src/main/java/com/avispa/parser/precedence/grammar/Production.java +++ b/src/main/java/com/avispa/parser/precedence/grammar/Production.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.grammar; import lombok.AccessLevel; diff --git a/src/main/java/com/avispa/parser/precedence/grammar/Symbol.java b/src/main/java/com/avispa/parser/precedence/grammar/Symbol.java index 934c972..e6d01c3 100644 --- a/src/main/java/com/avispa/parser/precedence/grammar/Symbol.java +++ b/src/main/java/com/avispa/parser/precedence/grammar/Symbol.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.grammar; import com.avispa.parser.precedence.lexer.Lexeme; diff --git a/src/main/java/com/avispa/parser/precedence/grammar/Terminal.java b/src/main/java/com/avispa/parser/precedence/grammar/Terminal.java index 323ff35..9dc76e3 100644 --- a/src/main/java/com/avispa/parser/precedence/grammar/Terminal.java +++ b/src/main/java/com/avispa/parser/precedence/grammar/Terminal.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.grammar; import lombok.EqualsAndHashCode; diff --git a/src/main/java/com/avispa/parser/precedence/grammar/validation/GrammarValidator.java b/src/main/java/com/avispa/parser/precedence/grammar/validation/GrammarValidator.java index 93edad3..0949415 100644 --- a/src/main/java/com/avispa/parser/precedence/grammar/validation/GrammarValidator.java +++ b/src/main/java/com/avispa/parser/precedence/grammar/validation/GrammarValidator.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.grammar.validation; import com.avispa.parser.precedence.grammar.Grammar; diff --git a/src/main/java/com/avispa/parser/precedence/grammar/validation/OperatorGrammarValidator.java b/src/main/java/com/avispa/parser/precedence/grammar/validation/OperatorGrammarValidator.java index 28beba5..e66be5b 100644 --- a/src/main/java/com/avispa/parser/precedence/grammar/validation/OperatorGrammarValidator.java +++ b/src/main/java/com/avispa/parser/precedence/grammar/validation/OperatorGrammarValidator.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.grammar.validation; import com.avispa.parser.precedence.grammar.Grammar; diff --git a/src/main/java/com/avispa/parser/precedence/grammar/validation/SimplePrecedenceGrammarValidator.java b/src/main/java/com/avispa/parser/precedence/grammar/validation/SimplePrecedenceGrammarValidator.java index a8c5ab1..2e38690 100644 --- a/src/main/java/com/avispa/parser/precedence/grammar/validation/SimplePrecedenceGrammarValidator.java +++ b/src/main/java/com/avispa/parser/precedence/grammar/validation/SimplePrecedenceGrammarValidator.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.grammar.validation; import com.avispa.parser.precedence.grammar.Grammar; diff --git a/src/main/java/com/avispa/parser/precedence/lexer/Lexeme.java b/src/main/java/com/avispa/parser/precedence/lexer/Lexeme.java index 991995a..19b4f06 100644 --- a/src/main/java/com/avispa/parser/precedence/lexer/Lexeme.java +++ b/src/main/java/com/avispa/parser/precedence/lexer/Lexeme.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.lexer; import com.avispa.parser.precedence.grammar.Symbol; diff --git a/src/main/java/com/avispa/parser/precedence/lexer/Lexer.java b/src/main/java/com/avispa/parser/precedence/lexer/Lexer.java index d6c96cd..3c82a91 100644 --- a/src/main/java/com/avispa/parser/precedence/lexer/Lexer.java +++ b/src/main/java/com/avispa/parser/precedence/lexer/Lexer.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.lexer; import com.avispa.parser.lexer.LexerException; diff --git a/src/main/java/com/avispa/parser/precedence/output/Derivation.java b/src/main/java/com/avispa/parser/precedence/output/Derivation.java index e36a20d..31c9f46 100644 --- a/src/main/java/com/avispa/parser/precedence/output/Derivation.java +++ b/src/main/java/com/avispa/parser/precedence/output/Derivation.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.output; import com.avispa.parser.lexer.LexerException; diff --git a/src/main/java/com/avispa/parser/precedence/output/ParseTree.java b/src/main/java/com/avispa/parser/precedence/output/ParseTree.java index 459953d..94c8225 100644 --- a/src/main/java/com/avispa/parser/precedence/output/ParseTree.java +++ b/src/main/java/com/avispa/parser/precedence/output/ParseTree.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.output; import com.avispa.parser.lexer.LexerException; diff --git a/src/main/java/com/avispa/parser/precedence/parser/OperatorPrecedenceParser.java b/src/main/java/com/avispa/parser/precedence/parser/OperatorPrecedenceParser.java index 4eed649..fa6d28e 100644 --- a/src/main/java/com/avispa/parser/precedence/parser/OperatorPrecedenceParser.java +++ b/src/main/java/com/avispa/parser/precedence/parser/OperatorPrecedenceParser.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.parser; import com.avispa.parser.precedence.function.PrecedenceFunctions; diff --git a/src/main/java/com/avispa/parser/precedence/parser/ParserCreationException.java b/src/main/java/com/avispa/parser/precedence/parser/ParserCreationException.java index 738b23e..8dd2eaa 100644 --- a/src/main/java/com/avispa/parser/precedence/parser/ParserCreationException.java +++ b/src/main/java/com/avispa/parser/precedence/parser/ParserCreationException.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.parser; /** diff --git a/src/main/java/com/avispa/parser/precedence/parser/ParserFactory.java b/src/main/java/com/avispa/parser/precedence/parser/ParserFactory.java index 0ba2395..2c2bcc7 100644 --- a/src/main/java/com/avispa/parser/precedence/parser/ParserFactory.java +++ b/src/main/java/com/avispa/parser/precedence/parser/ParserFactory.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.parser; import com.avispa.parser.precedence.function.GraphPrecedenceFunctions; diff --git a/src/main/java/com/avispa/parser/precedence/parser/PrecedenceParser.java b/src/main/java/com/avispa/parser/precedence/parser/PrecedenceParser.java index e2ab788..94a8f3e 100644 --- a/src/main/java/com/avispa/parser/precedence/parser/PrecedenceParser.java +++ b/src/main/java/com/avispa/parser/precedence/parser/PrecedenceParser.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.parser; diff --git a/src/main/java/com/avispa/parser/precedence/parser/ProductionTreeNode.java b/src/main/java/com/avispa/parser/precedence/parser/ProductionTreeNode.java index 02d04ae..19e119f 100644 --- a/src/main/java/com/avispa/parser/precedence/parser/ProductionTreeNode.java +++ b/src/main/java/com/avispa/parser/precedence/parser/ProductionTreeNode.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.parser; import com.avispa.parser.misc.tree.TreeNode; diff --git a/src/main/java/com/avispa/parser/precedence/parser/ProductionsTreeBuilder.java b/src/main/java/com/avispa/parser/precedence/parser/ProductionsTreeBuilder.java index aa9786e..ae318a3 100644 --- a/src/main/java/com/avispa/parser/precedence/parser/ProductionsTreeBuilder.java +++ b/src/main/java/com/avispa/parser/precedence/parser/ProductionsTreeBuilder.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.parser; import com.avispa.parser.misc.tree.TreeNode; diff --git a/src/main/java/com/avispa/parser/precedence/parser/ReductionException.java b/src/main/java/com/avispa/parser/precedence/parser/ReductionException.java index f261be5..aaf12ac 100644 --- a/src/main/java/com/avispa/parser/precedence/parser/ReductionException.java +++ b/src/main/java/com/avispa/parser/precedence/parser/ReductionException.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.parser; /** diff --git a/src/main/java/com/avispa/parser/precedence/parser/SimplePrecedenceParser.java b/src/main/java/com/avispa/parser/precedence/parser/SimplePrecedenceParser.java index 7cfd38a..a5809e1 100644 --- a/src/main/java/com/avispa/parser/precedence/parser/SimplePrecedenceParser.java +++ b/src/main/java/com/avispa/parser/precedence/parser/SimplePrecedenceParser.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.parser; diff --git a/src/main/java/com/avispa/parser/precedence/parser/SyntaxException.java b/src/main/java/com/avispa/parser/precedence/parser/SyntaxException.java index 7397b51..7282827 100644 --- a/src/main/java/com/avispa/parser/precedence/parser/SyntaxException.java +++ b/src/main/java/com/avispa/parser/precedence/parser/SyntaxException.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.parser; /** diff --git a/src/main/java/com/avispa/parser/precedence/table/OperatorPrecedenceTable.java b/src/main/java/com/avispa/parser/precedence/table/OperatorPrecedenceTable.java index bcfa8be..4df90a3 100644 --- a/src/main/java/com/avispa/parser/precedence/table/OperatorPrecedenceTable.java +++ b/src/main/java/com/avispa/parser/precedence/table/OperatorPrecedenceTable.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.table; import com.avispa.parser.misc.ListUtil; diff --git a/src/main/java/com/avispa/parser/precedence/table/Precedence.java b/src/main/java/com/avispa/parser/precedence/table/Precedence.java index 4800d88..ed7f9f6 100644 --- a/src/main/java/com/avispa/parser/precedence/table/Precedence.java +++ b/src/main/java/com/avispa/parser/precedence/table/Precedence.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.table; import lombok.Getter; diff --git a/src/main/java/com/avispa/parser/precedence/table/PrecedenceTable.java b/src/main/java/com/avispa/parser/precedence/table/PrecedenceTable.java index 5f5cd1c..4d9e27c 100644 --- a/src/main/java/com/avispa/parser/precedence/table/PrecedenceTable.java +++ b/src/main/java/com/avispa/parser/precedence/table/PrecedenceTable.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.table; import com.avispa.parser.misc.ListUtil; diff --git a/src/main/java/com/avispa/parser/precedence/table/PrecedenceTableException.java b/src/main/java/com/avispa/parser/precedence/table/PrecedenceTableException.java index 726938e..8e5c6bc 100644 --- a/src/main/java/com/avispa/parser/precedence/table/PrecedenceTableException.java +++ b/src/main/java/com/avispa/parser/precedence/table/PrecedenceTableException.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.table; /** diff --git a/src/main/java/com/avispa/parser/precedence/table/RelationException.java b/src/main/java/com/avispa/parser/precedence/table/RelationException.java index 50bbcb5..846fe91 100644 --- a/src/main/java/com/avispa/parser/precedence/table/RelationException.java +++ b/src/main/java/com/avispa/parser/precedence/table/RelationException.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.table; /** diff --git a/src/main/java/com/avispa/parser/precedence/table/SimplePrecedenceTable.java b/src/main/java/com/avispa/parser/precedence/table/SimplePrecedenceTable.java index 0086cf0..74d56e4 100644 --- a/src/main/java/com/avispa/parser/precedence/table/SimplePrecedenceTable.java +++ b/src/main/java/com/avispa/parser/precedence/table/SimplePrecedenceTable.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.table; import com.avispa.parser.precedence.grammar.Grammar; diff --git a/src/main/java/com/avispa/parser/precedence/table/set/FirstAllSets.java b/src/main/java/com/avispa/parser/precedence/table/set/FirstAllSets.java index 6632f32..1cf7ccb 100644 --- a/src/main/java/com/avispa/parser/precedence/table/set/FirstAllSets.java +++ b/src/main/java/com/avispa/parser/precedence/table/set/FirstAllSets.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.table.set; import com.avispa.parser.precedence.grammar.Grammar; diff --git a/src/main/java/com/avispa/parser/precedence/table/set/FirstOpSets.java b/src/main/java/com/avispa/parser/precedence/table/set/FirstOpSets.java index 5ad3e4c..dcb19f7 100644 --- a/src/main/java/com/avispa/parser/precedence/table/set/FirstOpSets.java +++ b/src/main/java/com/avispa/parser/precedence/table/set/FirstOpSets.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.table.set; import com.avispa.parser.precedence.grammar.Grammar; diff --git a/src/main/java/com/avispa/parser/precedence/table/set/FirstSets.java b/src/main/java/com/avispa/parser/precedence/table/set/FirstSets.java index 1cba19f..7395098 100644 --- a/src/main/java/com/avispa/parser/precedence/table/set/FirstSets.java +++ b/src/main/java/com/avispa/parser/precedence/table/set/FirstSets.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.table.set; import com.avispa.parser.precedence.grammar.NonTerminal; diff --git a/src/main/java/com/avispa/parser/precedence/table/set/LastAllSets.java b/src/main/java/com/avispa/parser/precedence/table/set/LastAllSets.java index eaee79e..b3aa37e 100644 --- a/src/main/java/com/avispa/parser/precedence/table/set/LastAllSets.java +++ b/src/main/java/com/avispa/parser/precedence/table/set/LastAllSets.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.table.set; import com.avispa.parser.precedence.grammar.Grammar; diff --git a/src/main/java/com/avispa/parser/precedence/table/set/LastOpSets.java b/src/main/java/com/avispa/parser/precedence/table/set/LastOpSets.java index e390572..ed3a650 100644 --- a/src/main/java/com/avispa/parser/precedence/table/set/LastOpSets.java +++ b/src/main/java/com/avispa/parser/precedence/table/set/LastOpSets.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.table.set; import com.avispa.parser.precedence.grammar.Grammar; diff --git a/src/main/java/com/avispa/parser/precedence/table/set/OperatorPrecedenceSets.java b/src/main/java/com/avispa/parser/precedence/table/set/OperatorPrecedenceSets.java index c9d21bb..2927a39 100644 --- a/src/main/java/com/avispa/parser/precedence/table/set/OperatorPrecedenceSets.java +++ b/src/main/java/com/avispa/parser/precedence/table/set/OperatorPrecedenceSets.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.table.set; import com.avispa.parser.precedence.grammar.Grammar; diff --git a/src/main/java/com/avispa/parser/precedence/table/set/PrecedenceSets.java b/src/main/java/com/avispa/parser/precedence/table/set/PrecedenceSets.java index 3f097ea..baa3477 100644 --- a/src/main/java/com/avispa/parser/precedence/table/set/PrecedenceSets.java +++ b/src/main/java/com/avispa/parser/precedence/table/set/PrecedenceSets.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.table.set; import com.avispa.parser.precedence.grammar.Grammar; diff --git a/src/main/java/com/avispa/parser/precedence/table/set/SimplePrecedenceSets.java b/src/main/java/com/avispa/parser/precedence/table/set/SimplePrecedenceSets.java index d78c18f..6ad6e16 100644 --- a/src/main/java/com/avispa/parser/precedence/table/set/SimplePrecedenceSets.java +++ b/src/main/java/com/avispa/parser/precedence/table/set/SimplePrecedenceSets.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.table.set; import com.avispa.parser.precedence.grammar.Grammar; diff --git a/src/main/java/com/avispa/parser/shuntingyard/Call.java b/src/main/java/com/avispa/parser/shuntingyard/Call.java index f7f9de2..1bfa488 100644 --- a/src/main/java/com/avispa/parser/shuntingyard/Call.java +++ b/src/main/java/com/avispa/parser/shuntingyard/Call.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.shuntingyard; import com.avispa.parser.shuntingyard.token.FunctionToken; diff --git a/src/main/java/com/avispa/parser/shuntingyard/OperatorAssociativity.java b/src/main/java/com/avispa/parser/shuntingyard/OperatorAssociativity.java index 6e107bd..f1a2b78 100644 --- a/src/main/java/com/avispa/parser/shuntingyard/OperatorAssociativity.java +++ b/src/main/java/com/avispa/parser/shuntingyard/OperatorAssociativity.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.shuntingyard; /** diff --git a/src/main/java/com/avispa/parser/shuntingyard/ShuntingYard.java b/src/main/java/com/avispa/parser/shuntingyard/ShuntingYard.java index bf767e3..c6b5686 100644 --- a/src/main/java/com/avispa/parser/shuntingyard/ShuntingYard.java +++ b/src/main/java/com/avispa/parser/shuntingyard/ShuntingYard.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.shuntingyard; import com.avispa.parser.Parser; diff --git a/src/main/java/com/avispa/parser/shuntingyard/output/Evaluator.java b/src/main/java/com/avispa/parser/shuntingyard/output/Evaluator.java index fe66275..c85275b 100644 --- a/src/main/java/com/avispa/parser/shuntingyard/output/Evaluator.java +++ b/src/main/java/com/avispa/parser/shuntingyard/output/Evaluator.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.shuntingyard.output; import com.avispa.parser.lexer.LexerException; diff --git a/src/main/java/com/avispa/parser/shuntingyard/output/ExpressionTree.java b/src/main/java/com/avispa/parser/shuntingyard/output/ExpressionTree.java index 78fe348..b9111de 100644 --- a/src/main/java/com/avispa/parser/shuntingyard/output/ExpressionTree.java +++ b/src/main/java/com/avispa/parser/shuntingyard/output/ExpressionTree.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.shuntingyard.output; import com.avispa.parser.lexer.LexerException; diff --git a/src/main/java/com/avispa/parser/shuntingyard/output/ReversePolishNotationText.java b/src/main/java/com/avispa/parser/shuntingyard/output/ReversePolishNotationText.java index f3c09d7..da56b2d 100644 --- a/src/main/java/com/avispa/parser/shuntingyard/output/ReversePolishNotationText.java +++ b/src/main/java/com/avispa/parser/shuntingyard/output/ReversePolishNotationText.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.shuntingyard.output; import com.avispa.parser.lexer.LexerException; diff --git a/src/main/java/com/avispa/parser/shuntingyard/token/BinaryOperatorToken.java b/src/main/java/com/avispa/parser/shuntingyard/token/BinaryOperatorToken.java index b2081de..8b88a58 100644 --- a/src/main/java/com/avispa/parser/shuntingyard/token/BinaryOperatorToken.java +++ b/src/main/java/com/avispa/parser/shuntingyard/token/BinaryOperatorToken.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.shuntingyard.token; import com.avispa.parser.shuntingyard.OperatorAssociativity; diff --git a/src/main/java/com/avispa/parser/shuntingyard/token/FunctionToken.java b/src/main/java/com/avispa/parser/shuntingyard/token/FunctionToken.java index eddc40a..4c7940a 100644 --- a/src/main/java/com/avispa/parser/shuntingyard/token/FunctionToken.java +++ b/src/main/java/com/avispa/parser/shuntingyard/token/FunctionToken.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.shuntingyard.token; import com.avispa.parser.token.Token; diff --git a/src/main/java/com/avispa/parser/shuntingyard/token/MathOperator.java b/src/main/java/com/avispa/parser/shuntingyard/token/MathOperator.java index 87ac15f..a8c60a8 100644 --- a/src/main/java/com/avispa/parser/shuntingyard/token/MathOperator.java +++ b/src/main/java/com/avispa/parser/shuntingyard/token/MathOperator.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.shuntingyard.token; import com.avispa.parser.token.Token; diff --git a/src/main/java/com/avispa/parser/shuntingyard/token/Misc.java b/src/main/java/com/avispa/parser/shuntingyard/token/Misc.java index ef0e0ce..8d678cb 100644 --- a/src/main/java/com/avispa/parser/shuntingyard/token/Misc.java +++ b/src/main/java/com/avispa/parser/shuntingyard/token/Misc.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.shuntingyard.token; import com.avispa.parser.token.Token; diff --git a/src/main/java/com/avispa/parser/shuntingyard/token/Operand.java b/src/main/java/com/avispa/parser/shuntingyard/token/Operand.java index bc8e1cf..e820431 100644 --- a/src/main/java/com/avispa/parser/shuntingyard/token/Operand.java +++ b/src/main/java/com/avispa/parser/shuntingyard/token/Operand.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.shuntingyard.token; import com.avispa.parser.token.Token; diff --git a/src/main/java/com/avispa/parser/shuntingyard/token/Token.java b/src/main/java/com/avispa/parser/shuntingyard/token/Token.java index 65e0655..e6c07ee 100644 --- a/src/main/java/com/avispa/parser/shuntingyard/token/Token.java +++ b/src/main/java/com/avispa/parser/shuntingyard/token/Token.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.shuntingyard.token; /** diff --git a/src/main/java/com/avispa/parser/shuntingyard/token/UnaryOperatorToken.java b/src/main/java/com/avispa/parser/shuntingyard/token/UnaryOperatorToken.java index 5763ce8..d78706b 100644 --- a/src/main/java/com/avispa/parser/shuntingyard/token/UnaryOperatorToken.java +++ b/src/main/java/com/avispa/parser/shuntingyard/token/UnaryOperatorToken.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.shuntingyard.token; import com.avispa.parser.shuntingyard.OperatorAssociativity; diff --git a/src/main/java/com/avispa/parser/shuntingyard/tokenizer/Tokenizer.java b/src/main/java/com/avispa/parser/shuntingyard/tokenizer/Tokenizer.java index 36d5275..dc8a869 100644 --- a/src/main/java/com/avispa/parser/shuntingyard/tokenizer/Tokenizer.java +++ b/src/main/java/com/avispa/parser/shuntingyard/tokenizer/Tokenizer.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.shuntingyard.tokenizer; import com.avispa.parser.lexer.LexerException; diff --git a/src/main/java/com/avispa/parser/token/Token.java b/src/main/java/com/avispa/parser/token/Token.java index 0f079a2..791c4aa 100644 --- a/src/main/java/com/avispa/parser/token/Token.java +++ b/src/main/java/com/avispa/parser/token/Token.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.token; /** diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index 08702a1..8ca8c7c 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -1,3 +1,27 @@ + + diff --git a/src/test/java/com/avispa/parser/misc/ListUtilTest.java b/src/test/java/com/avispa/parser/misc/ListUtilTest.java index f282b2e..86d4910 100644 --- a/src/test/java/com/avispa/parser/misc/ListUtilTest.java +++ b/src/test/java/com/avispa/parser/misc/ListUtilTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.misc; import org.junit.jupiter.api.Test; diff --git a/src/test/java/com/avispa/parser/misc/TablePrinterTest.java b/src/test/java/com/avispa/parser/misc/TablePrinterTest.java index 22ced60..912f8f7 100644 --- a/src/test/java/com/avispa/parser/misc/TablePrinterTest.java +++ b/src/test/java/com/avispa/parser/misc/TablePrinterTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.misc; import org.apache.commons.lang3.tuple.Pair; diff --git a/src/test/java/com/avispa/parser/misc/cli/CliServiceTest.java b/src/test/java/com/avispa/parser/misc/cli/CliServiceTest.java index 7daf477..a137ebd 100644 --- a/src/test/java/com/avispa/parser/misc/cli/CliServiceTest.java +++ b/src/test/java/com/avispa/parser/misc/cli/CliServiceTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.misc.cli; import com.avispa.parser.misc.tree.TreeNode; diff --git a/src/test/java/com/avispa/parser/misc/tree/TreePrinterTest.java b/src/test/java/com/avispa/parser/misc/tree/TreePrinterTest.java index 6f2aa7c..5272a1e 100644 --- a/src/test/java/com/avispa/parser/misc/tree/TreePrinterTest.java +++ b/src/test/java/com/avispa/parser/misc/tree/TreePrinterTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.misc.tree; import com.avispa.parser.shuntingyard.token.BinaryOperatorToken; diff --git a/src/test/java/com/avispa/parser/precedence/ParserUtil.java b/src/test/java/com/avispa/parser/precedence/ParserUtil.java index 6e953f8..8c286c8 100644 --- a/src/test/java/com/avispa/parser/precedence/ParserUtil.java +++ b/src/test/java/com/avispa/parser/precedence/ParserUtil.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence; import com.avispa.parser.precedence.grammar.ContextFreeGrammar; diff --git a/src/test/java/com/avispa/parser/precedence/TestSymbols.java b/src/test/java/com/avispa/parser/precedence/TestSymbols.java index 245f99d..beecef7 100644 --- a/src/test/java/com/avispa/parser/precedence/TestSymbols.java +++ b/src/test/java/com/avispa/parser/precedence/TestSymbols.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence; import com.avispa.parser.precedence.grammar.NonTerminal; diff --git a/src/test/java/com/avispa/parser/precedence/function/GraphPrecedenceFunctionsTest.java b/src/test/java/com/avispa/parser/precedence/function/GraphPrecedenceFunctionsTest.java index fd15e97..d74c83d 100644 --- a/src/test/java/com/avispa/parser/precedence/function/GraphPrecedenceFunctionsTest.java +++ b/src/test/java/com/avispa/parser/precedence/function/GraphPrecedenceFunctionsTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.function; import com.avispa.parser.precedence.grammar.ContextFreeGrammar; diff --git a/src/test/java/com/avispa/parser/precedence/grammar/ContextFreeGrammarTest.java b/src/test/java/com/avispa/parser/precedence/grammar/ContextFreeGrammarTest.java index beaad6f..2e0ea54 100644 --- a/src/test/java/com/avispa/parser/precedence/grammar/ContextFreeGrammarTest.java +++ b/src/test/java/com/avispa/parser/precedence/grammar/ContextFreeGrammarTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.grammar; import org.junit.jupiter.api.Test; diff --git a/src/test/java/com/avispa/parser/precedence/grammar/GrammarFileTest.java b/src/test/java/com/avispa/parser/precedence/grammar/GrammarFileTest.java index 7c07ffa..e37bd8c 100644 --- a/src/test/java/com/avispa/parser/precedence/grammar/GrammarFileTest.java +++ b/src/test/java/com/avispa/parser/precedence/grammar/GrammarFileTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.grammar; import org.junit.jupiter.api.Test; diff --git a/src/test/java/com/avispa/parser/precedence/grammar/validation/OperatorGrammarValidatorTest.java b/src/test/java/com/avispa/parser/precedence/grammar/validation/OperatorGrammarValidatorTest.java index a9e6414..1c28fe5 100644 --- a/src/test/java/com/avispa/parser/precedence/grammar/validation/OperatorGrammarValidatorTest.java +++ b/src/test/java/com/avispa/parser/precedence/grammar/validation/OperatorGrammarValidatorTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.grammar.validation; import com.avispa.parser.precedence.grammar.ContextFreeGrammar; diff --git a/src/test/java/com/avispa/parser/precedence/grammar/validation/SimplePrecedenceGrammarValidatorTest.java b/src/test/java/com/avispa/parser/precedence/grammar/validation/SimplePrecedenceGrammarValidatorTest.java index d55e02a..96612cc 100644 --- a/src/test/java/com/avispa/parser/precedence/grammar/validation/SimplePrecedenceGrammarValidatorTest.java +++ b/src/test/java/com/avispa/parser/precedence/grammar/validation/SimplePrecedenceGrammarValidatorTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.grammar.validation; import com.avispa.parser.precedence.grammar.ContextFreeGrammar; diff --git a/src/test/java/com/avispa/parser/precedence/lexer/LexerTest.java b/src/test/java/com/avispa/parser/precedence/lexer/LexerTest.java index 3f8f76d..9708b9c 100644 --- a/src/test/java/com/avispa/parser/precedence/lexer/LexerTest.java +++ b/src/test/java/com/avispa/parser/precedence/lexer/LexerTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.lexer; import com.avispa.parser.lexer.LexerException; diff --git a/src/test/java/com/avispa/parser/precedence/output/DerivationTest.java b/src/test/java/com/avispa/parser/precedence/output/DerivationTest.java index 03885af..7e48063 100644 --- a/src/test/java/com/avispa/parser/precedence/output/DerivationTest.java +++ b/src/test/java/com/avispa/parser/precedence/output/DerivationTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.output; import com.avispa.parser.lexer.LexerException; diff --git a/src/test/java/com/avispa/parser/precedence/output/ParseTreeTest.java b/src/test/java/com/avispa/parser/precedence/output/ParseTreeTest.java index deac4dd..4a74a3d 100644 --- a/src/test/java/com/avispa/parser/precedence/output/ParseTreeTest.java +++ b/src/test/java/com/avispa/parser/precedence/output/ParseTreeTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.output; import com.avispa.parser.lexer.LexerException; diff --git a/src/test/java/com/avispa/parser/precedence/parser/OperatorPrecedenceParserTest.java b/src/test/java/com/avispa/parser/precedence/parser/OperatorPrecedenceParserTest.java index 448684e..1af5a4a 100644 --- a/src/test/java/com/avispa/parser/precedence/parser/OperatorPrecedenceParserTest.java +++ b/src/test/java/com/avispa/parser/precedence/parser/OperatorPrecedenceParserTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.parser; import com.avispa.parser.lexer.LexerException; diff --git a/src/test/java/com/avispa/parser/precedence/parser/ProductionsTreeBuilderTest.java b/src/test/java/com/avispa/parser/precedence/parser/ProductionsTreeBuilderTest.java index 197e1e6..1cae7c1 100644 --- a/src/test/java/com/avispa/parser/precedence/parser/ProductionsTreeBuilderTest.java +++ b/src/test/java/com/avispa/parser/precedence/parser/ProductionsTreeBuilderTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.parser; import com.avispa.parser.misc.tree.TreeNode; diff --git a/src/test/java/com/avispa/parser/precedence/parser/SimplePrecedenceParserTest.java b/src/test/java/com/avispa/parser/precedence/parser/SimplePrecedenceParserTest.java index 110d9bf..3402bde 100644 --- a/src/test/java/com/avispa/parser/precedence/parser/SimplePrecedenceParserTest.java +++ b/src/test/java/com/avispa/parser/precedence/parser/SimplePrecedenceParserTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.parser; import com.avispa.parser.lexer.LexerException; diff --git a/src/test/java/com/avispa/parser/precedence/table/OperatorPrecedenceTableTest.java b/src/test/java/com/avispa/parser/precedence/table/OperatorPrecedenceTableTest.java index 4b0d45f..7416739 100644 --- a/src/test/java/com/avispa/parser/precedence/table/OperatorPrecedenceTableTest.java +++ b/src/test/java/com/avispa/parser/precedence/table/OperatorPrecedenceTableTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.table; import com.avispa.parser.precedence.grammar.ContextFreeGrammar; diff --git a/src/test/java/com/avispa/parser/precedence/table/SimplePrecedenceTableTest.java b/src/test/java/com/avispa/parser/precedence/table/SimplePrecedenceTableTest.java index 1b06058..c41b32c 100644 --- a/src/test/java/com/avispa/parser/precedence/table/SimplePrecedenceTableTest.java +++ b/src/test/java/com/avispa/parser/precedence/table/SimplePrecedenceTableTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.table; import com.avispa.parser.precedence.grammar.ContextFreeGrammar; diff --git a/src/test/java/com/avispa/parser/precedence/table/set/OperatorPrecedenceSetsTest.java b/src/test/java/com/avispa/parser/precedence/table/set/OperatorPrecedenceSetsTest.java index d50ff13..d3f11fc 100644 --- a/src/test/java/com/avispa/parser/precedence/table/set/OperatorPrecedenceSetsTest.java +++ b/src/test/java/com/avispa/parser/precedence/table/set/OperatorPrecedenceSetsTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.table.set; import com.avispa.parser.precedence.grammar.ContextFreeGrammar; diff --git a/src/test/java/com/avispa/parser/precedence/table/set/SimplePrecedenceSetsTest.java b/src/test/java/com/avispa/parser/precedence/table/set/SimplePrecedenceSetsTest.java index 38294b5..402a1c1 100644 --- a/src/test/java/com/avispa/parser/precedence/table/set/SimplePrecedenceSetsTest.java +++ b/src/test/java/com/avispa/parser/precedence/table/set/SimplePrecedenceSetsTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.precedence.table.set; import com.avispa.parser.precedence.grammar.ContextFreeGrammar; diff --git a/src/test/java/com/avispa/parser/shuntingyard/ShuntingYardTest.java b/src/test/java/com/avispa/parser/shuntingyard/ShuntingYardTest.java index 676830f..30f7c62 100644 --- a/src/test/java/com/avispa/parser/shuntingyard/ShuntingYardTest.java +++ b/src/test/java/com/avispa/parser/shuntingyard/ShuntingYardTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.shuntingyard; import com.avispa.parser.lexer.LexerException; diff --git a/src/test/java/com/avispa/parser/shuntingyard/output/EvaluatorTest.java b/src/test/java/com/avispa/parser/shuntingyard/output/EvaluatorTest.java index 4c1f1ee..366ed3c 100644 --- a/src/test/java/com/avispa/parser/shuntingyard/output/EvaluatorTest.java +++ b/src/test/java/com/avispa/parser/shuntingyard/output/EvaluatorTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.shuntingyard.output; import com.avispa.parser.lexer.LexerException; diff --git a/src/test/java/com/avispa/parser/shuntingyard/output/ExpressionTreeTest.java b/src/test/java/com/avispa/parser/shuntingyard/output/ExpressionTreeTest.java index fa23f7a..2dab586 100644 --- a/src/test/java/com/avispa/parser/shuntingyard/output/ExpressionTreeTest.java +++ b/src/test/java/com/avispa/parser/shuntingyard/output/ExpressionTreeTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.shuntingyard.output; import com.avispa.parser.lexer.LexerException; diff --git a/src/test/java/com/avispa/parser/shuntingyard/tokenizer/TokenizerTest.java b/src/test/java/com/avispa/parser/shuntingyard/tokenizer/TokenizerTest.java index 0da3c0b..a184d4d 100644 --- a/src/test/java/com/avispa/parser/shuntingyard/tokenizer/TokenizerTest.java +++ b/src/test/java/com/avispa/parser/shuntingyard/tokenizer/TokenizerTest.java @@ -1,3 +1,27 @@ +/* + * MIT License + * + * Copyright (c) 2022 Rafał Hiszpański + * + * 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: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * 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. + */ + package com.avispa.parser.shuntingyard.tokenizer; import com.avispa.parser.lexer.LexerException; diff --git a/src/test/resources/logback-test.xml b/src/test/resources/logback-test.xml index 197cc3a..f6ce330 100644 --- a/src/test/resources/logback-test.xml +++ b/src/test/resources/logback-test.xml @@ -1,3 +1,27 @@ + +