From b99f3586dc56644a293304460467b26ebafb1efa Mon Sep 17 00:00:00 2001 From: erick-alcachofa Date: Thu, 25 Dec 2025 13:12:41 -0600 Subject: [PATCH] chore(license): Added NOTICE header to all source files Signed-off-by: erick-alcachofa --- add-notice.sh | 27 +++++++++++++++++++ frontend/src/main.cpp | 22 +++++++++++++++ lib/include/artichoke/Coroutine/Generator.hpp | 22 +++++++++++++++ lib/include/artichoke/Coroutine/Utils.hpp | 22 +++++++++++++++ lib/include/artichoke/Parser/AST/AST.hpp | 22 +++++++++++++++ lib/include/artichoke/Parser/AST/Common.hpp | 22 +++++++++++++++ .../artichoke/Parser/AST/Declarations.hpp | 22 +++++++++++++++ .../artichoke/Parser/AST/Expressions.hpp | 22 +++++++++++++++ lib/include/artichoke/Parser/AST/Literals.hpp | 22 +++++++++++++++ .../artichoke/Parser/AST/Statements.hpp | 22 +++++++++++++++ lib/include/artichoke/Parser/AST/Types.hpp | 22 +++++++++++++++ lib/include/artichoke/Parser/Parser.hpp | 22 +++++++++++++++ lib/include/artichoke/Tokenizer/Token.hpp | 22 +++++++++++++++ lib/include/artichoke/Tokenizer/Tokenizer.hpp | 22 +++++++++++++++ .../artichoke/Tokenizer/TokenizerRange.hpp | 22 +++++++++++++++ lib/include/artichoke/Util/Demangle.hpp | 22 +++++++++++++++ lib/include/artichoke/Util/Expected.hpp | 22 +++++++++++++++ lib/include/artichoke/Util/OverloadSet.hpp | 22 +++++++++++++++ lib/include/artichoke/Util/Strings.hpp | 22 +++++++++++++++ lib/include/artichoke/Util/TrieMap.hpp | 22 +++++++++++++++ lib/src/Parser/AST/toDot.cpp | 22 +++++++++++++++ lib/src/Parser/AST/toString.cpp | 22 +++++++++++++++ lib/src/Parser/Declarations.cpp | 22 +++++++++++++++ lib/src/Parser/Expressions.cpp | 22 +++++++++++++++ lib/src/Parser/Literals.cpp | 22 +++++++++++++++ lib/src/Parser/Parser.cpp | 22 +++++++++++++++ lib/src/Parser/Statements.cpp | 22 +++++++++++++++ lib/src/Parser/Types.cpp | 22 +++++++++++++++ lib/src/Tokenizer/Token.cpp | 22 +++++++++++++++ lib/src/Tokenizer/Tokenizer.cpp | 22 +++++++++++++++ lib/src/Tokenizer/TokenizerRange.cpp | 22 +++++++++++++++ lib/src/Util/Demangle.cpp | 22 +++++++++++++++ tests/Tokenizer/src/Api.cpp | 22 +++++++++++++++ tests/Tokenizer/src/Comments.cpp | 22 +++++++++++++++ tests/Tokenizer/src/Identifiers.cpp | 22 +++++++++++++++ tests/Tokenizer/src/Keywords.cpp | 22 +++++++++++++++ tests/Tokenizer/src/Numbers.cpp | 22 +++++++++++++++ tests/Tokenizer/src/Operators.cpp | 22 +++++++++++++++ tests/Tokenizer/src/Strings.cpp | 22 +++++++++++++++ tests/include/Utils.hpp | 22 +++++++++++++++ 40 files changed, 885 insertions(+) create mode 100755 add-notice.sh diff --git a/add-notice.sh b/add-notice.sh new file mode 100755 index 0000000..963ec4b --- /dev/null +++ b/add-notice.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +# Path to your notice file +NOTICE_FILE="./NOTICE" + +# Check if notice file exists +if [ ! -f "$NOTICE_FILE" ]; then + echo "Error: $NOTICE_FILE not found!" + exit 1 +fi + +# Find all .cpp, .hpp, .h, and .cc files +# Excluding the .git directory +find . -type d -name ".git" -prune -o -type d -name "build" -prune -o -type f \( -name "*.cpp" -o -name "*.hpp" -o -name "*.h" -o -name "*.cc" \) -print | while read -r file; do + + # Check if the file already contains a specific keyword from your notice + # to avoid double-prepending (e.g., "Copyright") + if grep -q "Copyright" "$file"; then + echo "Skipping $file (License already exists)" + else + echo "Adding notice to $file" + # Create a temp file: notice + newline + original content + { cat "$NOTICE_FILE"; echo ""; cat "$file"; } > "$file.tmp" && mv "$file.tmp" "$file" + fi +done + +echo "Done!" diff --git a/frontend/src/main.cpp b/frontend/src/main.cpp index 1f689a0..67adcc8 100644 --- a/frontend/src/main.cpp +++ b/frontend/src/main.cpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #include #include #include diff --git a/lib/include/artichoke/Coroutine/Generator.hpp b/lib/include/artichoke/Coroutine/Generator.hpp index 899f8f1..839bdbb 100644 --- a/lib/include/artichoke/Coroutine/Generator.hpp +++ b/lib/include/artichoke/Coroutine/Generator.hpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #pragma once #include diff --git a/lib/include/artichoke/Coroutine/Utils.hpp b/lib/include/artichoke/Coroutine/Utils.hpp index 6a6341c..89f39eb 100644 --- a/lib/include/artichoke/Coroutine/Utils.hpp +++ b/lib/include/artichoke/Coroutine/Utils.hpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #pragma once #define yield co_yield diff --git a/lib/include/artichoke/Parser/AST/AST.hpp b/lib/include/artichoke/Parser/AST/AST.hpp index d45cc33..8a8a10c 100644 --- a/lib/include/artichoke/Parser/AST/AST.hpp +++ b/lib/include/artichoke/Parser/AST/AST.hpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #pragma once #include diff --git a/lib/include/artichoke/Parser/AST/Common.hpp b/lib/include/artichoke/Parser/AST/Common.hpp index 740ba63..2d90531 100644 --- a/lib/include/artichoke/Parser/AST/Common.hpp +++ b/lib/include/artichoke/Parser/AST/Common.hpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #pragma once #include diff --git a/lib/include/artichoke/Parser/AST/Declarations.hpp b/lib/include/artichoke/Parser/AST/Declarations.hpp index 744eb8e..cac62f0 100644 --- a/lib/include/artichoke/Parser/AST/Declarations.hpp +++ b/lib/include/artichoke/Parser/AST/Declarations.hpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #pragma once #include diff --git a/lib/include/artichoke/Parser/AST/Expressions.hpp b/lib/include/artichoke/Parser/AST/Expressions.hpp index 64599d4..e210ea1 100644 --- a/lib/include/artichoke/Parser/AST/Expressions.hpp +++ b/lib/include/artichoke/Parser/AST/Expressions.hpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #pragma once #include diff --git a/lib/include/artichoke/Parser/AST/Literals.hpp b/lib/include/artichoke/Parser/AST/Literals.hpp index 3699b8e..e6871b7 100644 --- a/lib/include/artichoke/Parser/AST/Literals.hpp +++ b/lib/include/artichoke/Parser/AST/Literals.hpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #pragma once #include diff --git a/lib/include/artichoke/Parser/AST/Statements.hpp b/lib/include/artichoke/Parser/AST/Statements.hpp index 23834a0..f0b50a4 100644 --- a/lib/include/artichoke/Parser/AST/Statements.hpp +++ b/lib/include/artichoke/Parser/AST/Statements.hpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #pragma once #include diff --git a/lib/include/artichoke/Parser/AST/Types.hpp b/lib/include/artichoke/Parser/AST/Types.hpp index f3bf72e..040d76b 100644 --- a/lib/include/artichoke/Parser/AST/Types.hpp +++ b/lib/include/artichoke/Parser/AST/Types.hpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #pragma once #include diff --git a/lib/include/artichoke/Parser/Parser.hpp b/lib/include/artichoke/Parser/Parser.hpp index 34a970a..eb0f82a 100644 --- a/lib/include/artichoke/Parser/Parser.hpp +++ b/lib/include/artichoke/Parser/Parser.hpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #pragma once #include diff --git a/lib/include/artichoke/Tokenizer/Token.hpp b/lib/include/artichoke/Tokenizer/Token.hpp index 5192d8a..d258958 100644 --- a/lib/include/artichoke/Tokenizer/Token.hpp +++ b/lib/include/artichoke/Tokenizer/Token.hpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #pragma once #include diff --git a/lib/include/artichoke/Tokenizer/Tokenizer.hpp b/lib/include/artichoke/Tokenizer/Tokenizer.hpp index 73b474c..0bf5dda 100644 --- a/lib/include/artichoke/Tokenizer/Tokenizer.hpp +++ b/lib/include/artichoke/Tokenizer/Tokenizer.hpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #pragma once #include diff --git a/lib/include/artichoke/Tokenizer/TokenizerRange.hpp b/lib/include/artichoke/Tokenizer/TokenizerRange.hpp index 63891d5..bca3f63 100644 --- a/lib/include/artichoke/Tokenizer/TokenizerRange.hpp +++ b/lib/include/artichoke/Tokenizer/TokenizerRange.hpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #pragma once #include diff --git a/lib/include/artichoke/Util/Demangle.hpp b/lib/include/artichoke/Util/Demangle.hpp index 20db504..bffe357 100644 --- a/lib/include/artichoke/Util/Demangle.hpp +++ b/lib/include/artichoke/Util/Demangle.hpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #pragma once #include diff --git a/lib/include/artichoke/Util/Expected.hpp b/lib/include/artichoke/Util/Expected.hpp index d439e41..5ab2933 100644 --- a/lib/include/artichoke/Util/Expected.hpp +++ b/lib/include/artichoke/Util/Expected.hpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #pragma once #include diff --git a/lib/include/artichoke/Util/OverloadSet.hpp b/lib/include/artichoke/Util/OverloadSet.hpp index 5ad8bbb..3371304 100644 --- a/lib/include/artichoke/Util/OverloadSet.hpp +++ b/lib/include/artichoke/Util/OverloadSet.hpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #pragma once namespace arti::lang { diff --git a/lib/include/artichoke/Util/Strings.hpp b/lib/include/artichoke/Util/Strings.hpp index e011a69..cc18b4a 100644 --- a/lib/include/artichoke/Util/Strings.hpp +++ b/lib/include/artichoke/Util/Strings.hpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #pragma once #include diff --git a/lib/include/artichoke/Util/TrieMap.hpp b/lib/include/artichoke/Util/TrieMap.hpp index c6cbe3c..a871ee2 100644 --- a/lib/include/artichoke/Util/TrieMap.hpp +++ b/lib/include/artichoke/Util/TrieMap.hpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #pragma once #include diff --git a/lib/src/Parser/AST/toDot.cpp b/lib/src/Parser/AST/toDot.cpp index 4be334a..811b923 100644 --- a/lib/src/Parser/AST/toDot.cpp +++ b/lib/src/Parser/AST/toDot.cpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #include #include diff --git a/lib/src/Parser/AST/toString.cpp b/lib/src/Parser/AST/toString.cpp index c66949e..c86b264 100644 --- a/lib/src/Parser/AST/toString.cpp +++ b/lib/src/Parser/AST/toString.cpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #include #include diff --git a/lib/src/Parser/Declarations.cpp b/lib/src/Parser/Declarations.cpp index 67be10e..00b4e79 100644 --- a/lib/src/Parser/Declarations.cpp +++ b/lib/src/Parser/Declarations.cpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #include namespace arti::lang { diff --git a/lib/src/Parser/Expressions.cpp b/lib/src/Parser/Expressions.cpp index e69de29..c03cfc7 100644 --- a/lib/src/Parser/Expressions.cpp +++ b/lib/src/Parser/Expressions.cpp @@ -0,0 +1,22 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + diff --git a/lib/src/Parser/Literals.cpp b/lib/src/Parser/Literals.cpp index e69de29..c03cfc7 100644 --- a/lib/src/Parser/Literals.cpp +++ b/lib/src/Parser/Literals.cpp @@ -0,0 +1,22 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + diff --git a/lib/src/Parser/Parser.cpp b/lib/src/Parser/Parser.cpp index 3f4119d..637d8e1 100644 --- a/lib/src/Parser/Parser.cpp +++ b/lib/src/Parser/Parser.cpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #include namespace arti::lang { diff --git a/lib/src/Parser/Statements.cpp b/lib/src/Parser/Statements.cpp index 9e41c81..f418b64 100644 --- a/lib/src/Parser/Statements.cpp +++ b/lib/src/Parser/Statements.cpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #include namespace arti::lang { diff --git a/lib/src/Parser/Types.cpp b/lib/src/Parser/Types.cpp index 49c6eb2..c354de0 100644 --- a/lib/src/Parser/Types.cpp +++ b/lib/src/Parser/Types.cpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #include #include diff --git a/lib/src/Tokenizer/Token.cpp b/lib/src/Tokenizer/Token.cpp index 9f74897..106b673 100644 --- a/lib/src/Tokenizer/Token.cpp +++ b/lib/src/Tokenizer/Token.cpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #include #include diff --git a/lib/src/Tokenizer/Tokenizer.cpp b/lib/src/Tokenizer/Tokenizer.cpp index 03a3a73..11d7862 100644 --- a/lib/src/Tokenizer/Tokenizer.cpp +++ b/lib/src/Tokenizer/Tokenizer.cpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #include #include diff --git a/lib/src/Tokenizer/TokenizerRange.cpp b/lib/src/Tokenizer/TokenizerRange.cpp index 299c816..f4b7f0e 100644 --- a/lib/src/Tokenizer/TokenizerRange.cpp +++ b/lib/src/Tokenizer/TokenizerRange.cpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #include #include diff --git a/lib/src/Util/Demangle.cpp b/lib/src/Util/Demangle.cpp index 6b2569b..5fe39a4 100644 --- a/lib/src/Util/Demangle.cpp +++ b/lib/src/Util/Demangle.cpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #include #include diff --git a/tests/Tokenizer/src/Api.cpp b/tests/Tokenizer/src/Api.cpp index 68b6f50..3a61970 100644 --- a/tests/Tokenizer/src/Api.cpp +++ b/tests/Tokenizer/src/Api.cpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #include #include diff --git a/tests/Tokenizer/src/Comments.cpp b/tests/Tokenizer/src/Comments.cpp index 30cbdc6..3679a16 100644 --- a/tests/Tokenizer/src/Comments.cpp +++ b/tests/Tokenizer/src/Comments.cpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #include #include diff --git a/tests/Tokenizer/src/Identifiers.cpp b/tests/Tokenizer/src/Identifiers.cpp index b34317d..5b2841b 100644 --- a/tests/Tokenizer/src/Identifiers.cpp +++ b/tests/Tokenizer/src/Identifiers.cpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #include #include diff --git a/tests/Tokenizer/src/Keywords.cpp b/tests/Tokenizer/src/Keywords.cpp index fd85cec..cfc2c76 100644 --- a/tests/Tokenizer/src/Keywords.cpp +++ b/tests/Tokenizer/src/Keywords.cpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #include #include diff --git a/tests/Tokenizer/src/Numbers.cpp b/tests/Tokenizer/src/Numbers.cpp index 1fac2f5..bdb5e36 100644 --- a/tests/Tokenizer/src/Numbers.cpp +++ b/tests/Tokenizer/src/Numbers.cpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #include #include diff --git a/tests/Tokenizer/src/Operators.cpp b/tests/Tokenizer/src/Operators.cpp index cca6eca..d38a7db 100644 --- a/tests/Tokenizer/src/Operators.cpp +++ b/tests/Tokenizer/src/Operators.cpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #include #include diff --git a/tests/Tokenizer/src/Strings.cpp b/tests/Tokenizer/src/Strings.cpp index a16a57c..b518a0a 100644 --- a/tests/Tokenizer/src/Strings.cpp +++ b/tests/Tokenizer/src/Strings.cpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #include #include diff --git a/tests/include/Utils.hpp b/tests/include/Utils.hpp index 84f9d46..f42f02d 100644 --- a/tests/include/Utils.hpp +++ b/tests/include/Utils.hpp @@ -1,3 +1,25 @@ +//============================================================================// +// // +// artichoke programming language // +// // +// Copyright (C) 2025 Erick Saul Guzman Ramos, whoami.artichoke.dev // +// // +// // +// This program is free software: you can redistribute it and/or modify // +// it under the terms of the GNU Affero General Public License as published // +// by the Free Software Foundation, either version 3 of the License, or // +// (at your option) any later version. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU Affero General Public License for more details. // +// // +// You should have received a copy of the GNU Affero General Public License // +// along with this program. If not, see . // +// // +//============================================================================// + #pragma once #include