From 8d1e9fe58403d26b73abd74de0eb6120066ced54 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Thu, 10 Jun 2021 15:56:26 +0530 Subject: [PATCH] Simplify licensing - All Swift code is MIT-licensed - The C code is public domain because it's directly derived from Lemon, which is public domain --- Sources/CitronLexerModule/CitronLexer.swift | 25 ++----------- Sources/CitronLexerModule/LICENSE.txt | 22 ++++++++++++ Sources/CitronParserModule/CitronParser.swift | 36 ++----------------- Sources/CitronParserModule/LICENSE.txt | 22 ++++++++++++ Sources/citron/main.c | 36 +++---------------- 5 files changed, 55 insertions(+), 86 deletions(-) create mode 100644 Sources/CitronLexerModule/LICENSE.txt create mode 100644 Sources/CitronParserModule/LICENSE.txt diff --git a/Sources/CitronLexerModule/CitronLexer.swift b/Sources/CitronLexerModule/CitronLexer.swift index 5c943e0..ea75796 100644 --- a/Sources/CitronLexerModule/CitronLexer.swift +++ b/Sources/CitronLexerModule/CitronLexer.swift @@ -1,25 +1,6 @@ -/* - Copyright (C) 2017 Roopesh Chander - - 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. -*/ +// SPDX-License-Identifier: MIT +// Copyright (C) 2017 Roopesh Chander +// This file is part of the Citron Lexer Module import Foundation diff --git a/Sources/CitronLexerModule/LICENSE.txt b/Sources/CitronLexerModule/LICENSE.txt new file mode 100644 index 0000000..011b875 --- /dev/null +++ b/Sources/CitronLexerModule/LICENSE.txt @@ -0,0 +1,22 @@ +Citron Lexer Module + +Copyright (C) 2017 Roopesh Chander + +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. diff --git a/Sources/CitronParserModule/CitronParser.swift b/Sources/CitronParserModule/CitronParser.swift index 0c85c67..a8f2dd2 100644 --- a/Sources/CitronParserModule/CitronParser.swift +++ b/Sources/CitronParserModule/CitronParser.swift @@ -1,38 +1,8 @@ -/* +// SPDX-License-Identifier: MIT +// Copyright (C) 2017 Roopesh Chander +// This file is part of the Citron Parser Module -Lemon: LALR(1) parser generator that generates a parser in C - Author disclaimed copyright - - Public domain code. - -Citron: Modifications to Lemon to generate a parser in Swift - - Copyright (C) 2017 Roopesh Chander - - 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. -*/ - - -// This file is part of the Citron parser generator. -// // This file defines the CitronParser protocol. Citron shall // auto-generate a class conforming to this protocol based on the input // grammar. diff --git a/Sources/CitronParserModule/LICENSE.txt b/Sources/CitronParserModule/LICENSE.txt new file mode 100644 index 0000000..09761fe --- /dev/null +++ b/Sources/CitronParserModule/LICENSE.txt @@ -0,0 +1,22 @@ +Citron Parser Module + +Copyright (C) 2017 Roopesh Chander + +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. diff --git a/Sources/citron/main.c b/Sources/citron/main.c index 79ff721..db71fba 100644 --- a/Sources/citron/main.c +++ b/Sources/citron/main.c @@ -1,34 +1,8 @@ -/* - -Lemon: LALR(1) parser generator that generates a parser in C - - Author disclaimed copyright - - Public domain code. - -Citron: Modifications to Lemon to generate a parser in Swift - - Copyright (C) 2017 Roopesh Chander - - 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. -*/ +// This file is part of the Citron Parser Generator, +// derived from the Lemon Parser Generator. +// +// Authors disclaimed copyright +// Public domain code #include #include