From 46eb6d6412118d005d74c9f8a179ee276ff950f5 Mon Sep 17 00:00:00 2001 From: TsukimotoX Date: Sun, 21 Jun 2026 17:53:13 +0300 Subject: [PATCH 1/3] Initial commit --- .idea/neoluma.iml | 8 - CMakeLists.txt | 173 -- CMakePresets.json | 29 - build.bat | 63 - build.sh | 328 --- crowdin.yml | 3 - example.nm | 134 -- resources/app.icns | Bin 234546 -> 0 bytes resources/app.ico | Bin 9768 -> 0 bytes resources/app.rc | 1 - run.bat | 1 - src/CLI/CLI.cpp | 142 -- src/CLI/CLI.hpp | 180 -- src/CLI/CLIHelperFunctions.cpp | 209 -- src/CLI/CLIHelperFunctions.hpp | 34 - src/CLI/LicenseTemplates/Apache.txt | 201 -- src/CLI/LicenseTemplates/BSDv2Simplified.txt | 24 - src/CLI/LicenseTemplates/BSDv3NewRevised.txt | 28 - src/CLI/LicenseTemplates/BoostV1.txt | 23 - src/CLI/LicenseTemplates/CC0v1.txt | 121 - src/CLI/LicenseTemplates/EclipseV2.txt | 277 --- src/CLI/LicenseTemplates/GNUAGPLv3.txt | 661 ----- src/CLI/LicenseTemplates/GNUGPLv2.txt | 339 --- src/CLI/LicenseTemplates/GNUGPLv3.txt | 674 ------ src/CLI/LicenseTemplates/GNULGPLv2_1.txt | 504 ---- src/CLI/LicenseTemplates/MIT.txt | 21 - src/CLI/LicenseTemplates/MozillaV2.txt | 373 --- src/CLI/LicenseTemplates/Unlicense.txt | 24 - src/Core/Backend/Codegen/filler | 0 src/Core/Compiler.cpp | 78 - src/Core/Compiler.hpp | 93 - src/Core/Extras/ErrorManager/ErrorManager.cpp | 170 -- src/Core/Extras/ErrorManager/ErrorManager.hpp | 233 -- src/Core/Extras/LangPacks/filler | 0 .../Extras/ProjectManager/ProjectManager.hpp | 52 - src/Core/Frontend/Lexer/Lexer.cpp | 275 --- src/Core/Frontend/Lexer/Lexer.hpp | 43 - src/Core/Frontend/Nodes.cpp | 612 ----- src/Core/Frontend/Nodes.hpp | 595 ----- .../Frontend/Orchestrator/Orchestrator.cpp | 294 --- .../Frontend/Orchestrator/Orchestrator.hpp | 58 - src/Core/Frontend/Parser/ASTBuilder.hpp | 210 -- src/Core/Frontend/Parser/Parser.cpp | 2116 ----------------- src/Core/Frontend/Parser/Parser.hpp | 150 -- .../SemanticAnalysis/SemanticAnalysis.cpp | 468 ---- .../SemanticAnalysis/SemanticAnalysis.hpp | 81 - src/Core/Frontend/Token.cpp | 122 - src/Core/Frontend/Token.hpp | 77 - .../Middleend/IRGenerator/IRGenerator.cpp | 597 ----- .../Middleend/IRGenerator/IRGenerator.hpp | 88 - src/Core/Middleend/Optimizer/filler | 0 src/HelperFunctions.cpp | 27 - src/HelperFunctions.hpp | 75 - src/IntrinsicModules/std/LICENSE | 201 -- src/IntrinsicModules/std/src/fs.nm | 13 - src/IntrinsicModules/std/src/io.nm | 14 - src/IntrinsicModules/std/src/iter.nm | 5 - src/IntrinsicModules/std/src/math.nm | 24 - src/IntrinsicModules/std/src/random.nm | 5 - src/IntrinsicModules/std/src/time.nm | 6 - src/IntrinsicModules/std/std.nlp | 11 - src/Libraries/Asker/Asker.cpp | 80 - src/Libraries/Asker/Asker.hpp | 65 - src/Libraries/Color/Color.cpp | 35 - src/Libraries/Color/Color.hpp | 31 - src/Libraries/Json/Json.cpp | 683 ------ src/Libraries/Json/Json.hpp | 168 -- src/Libraries/Json/JsonGet.hpp | 36 - src/Libraries/Localization/Localization.cpp | 149 -- src/Libraries/Localization/Localization.hpp | 23 - src/Libraries/Paths/Paths.cpp | 120 - src/Libraries/Paths/Paths.hpp | 17 - src/Libraries/Toml/Toml.cpp | 162 -- src/Libraries/Toml/Toml.hpp | 49 - src/Libraries/Utils/Types/Array.hpp | 31 - src/Libraries/Utils/Types/Hashmap.hpp | 21 - src/Libraries/Utils/Types/String.cpp | 41 - src/Libraries/Utils/Types/String.hpp | 109 - src/Libraries/Utils/Utils.hpp | 5 - src/Localization/CLI/ar_SA.jsonc | 25 - src/Localization/CLI/de_DE.jsonc | 27 - src/Localization/CLI/en_US.jsonc | 27 - src/Localization/CLI/it_IT.jsonc | 11 - src/Localization/CLI/ru_RU.jsonc | 27 - src/Localization/ErrorManager/en_US.jsonc | 275 --- src/Localization/ErrorManager/ru_RU.jsonc | 258 -- src/Localization/Libraries/ar_SA.jsonc | 5 - src/Localization/Libraries/de_DE.jsonc | 5 - src/Localization/Libraries/en_US.jsonc | 5 - src/Localization/Libraries/ru_RU.jsonc | 5 - src/main.cpp | 78 - tests/.gitignore | 1 - tests/README.md | 15 - .../invalid/empty_project/expect.json | 6 - .../bar.nm | 1 - .../expect.json | 8 - .../foo.nm | 1 - .../main.nm | 5 - .../invalid/no_entrypoint/expect.json | 8 - .../invalid/no_entrypoint/main.nm | 1 - .../invalid/malformed_array/expect.json | 8 - .../parser/invalid/malformed_array/main.nm | 4 - .../parser/invalid/malformed_dict/expect.json | 8 - .../parser/invalid/malformed_dict/main.nm | 4 - .../parser/invalid/malformed_set/expect.json | 8 - .../parser/invalid/malformed_set/main.nm | 4 - .../parser/valid/decorator_entry/expect.json | 3 - .../parser/valid/decorator_entry/main.nm | 2 - .../invalid/break_outside_loop/expect.json | 8 - .../invalid/break_outside_loop/main.nm | 4 - .../invalid/const_reassignment/expect.json | 8 - .../invalid/const_reassignment/main.nm | 5 - .../invalid/continue_outside_loop/expect.json | 8 - .../invalid/continue_outside_loop/main.nm | 4 - .../invalid/duplicate_parameter/expect.json | 8 - .../invalid/duplicate_parameter/main.nm | 2 - .../return_outside_function/expect.json | 8 - .../invalid/return_outside_function/main.nm | 4 - .../invalid/undefined_function/expect.json | 8 - .../invalid/undefined_function/main.nm | 4 - .../invalid/undefined_variable/expect.json | 8 - .../invalid/undefined_variable/main.nm | 4 - tests/runner/testrunner.py | 188 -- 123 files changed, 14299 deletions(-) delete mode 100644 .idea/neoluma.iml delete mode 100644 CMakeLists.txt delete mode 100644 CMakePresets.json delete mode 100644 build.bat delete mode 100644 build.sh delete mode 100644 crowdin.yml delete mode 100644 example.nm delete mode 100644 resources/app.icns delete mode 100644 resources/app.ico delete mode 100644 resources/app.rc delete mode 100644 run.bat delete mode 100644 src/CLI/CLI.cpp delete mode 100644 src/CLI/CLI.hpp delete mode 100644 src/CLI/CLIHelperFunctions.cpp delete mode 100644 src/CLI/CLIHelperFunctions.hpp delete mode 100644 src/CLI/LicenseTemplates/Apache.txt delete mode 100644 src/CLI/LicenseTemplates/BSDv2Simplified.txt delete mode 100644 src/CLI/LicenseTemplates/BSDv3NewRevised.txt delete mode 100644 src/CLI/LicenseTemplates/BoostV1.txt delete mode 100644 src/CLI/LicenseTemplates/CC0v1.txt delete mode 100644 src/CLI/LicenseTemplates/EclipseV2.txt delete mode 100644 src/CLI/LicenseTemplates/GNUAGPLv3.txt delete mode 100644 src/CLI/LicenseTemplates/GNUGPLv2.txt delete mode 100644 src/CLI/LicenseTemplates/GNUGPLv3.txt delete mode 100644 src/CLI/LicenseTemplates/GNULGPLv2_1.txt delete mode 100644 src/CLI/LicenseTemplates/MIT.txt delete mode 100644 src/CLI/LicenseTemplates/MozillaV2.txt delete mode 100644 src/CLI/LicenseTemplates/Unlicense.txt delete mode 100644 src/Core/Backend/Codegen/filler delete mode 100644 src/Core/Compiler.cpp delete mode 100644 src/Core/Compiler.hpp delete mode 100644 src/Core/Extras/ErrorManager/ErrorManager.cpp delete mode 100644 src/Core/Extras/ErrorManager/ErrorManager.hpp delete mode 100644 src/Core/Extras/LangPacks/filler delete mode 100644 src/Core/Extras/ProjectManager/ProjectManager.hpp delete mode 100644 src/Core/Frontend/Lexer/Lexer.cpp delete mode 100644 src/Core/Frontend/Lexer/Lexer.hpp delete mode 100644 src/Core/Frontend/Nodes.cpp delete mode 100644 src/Core/Frontend/Nodes.hpp delete mode 100644 src/Core/Frontend/Orchestrator/Orchestrator.cpp delete mode 100644 src/Core/Frontend/Orchestrator/Orchestrator.hpp delete mode 100644 src/Core/Frontend/Parser/ASTBuilder.hpp delete mode 100644 src/Core/Frontend/Parser/Parser.cpp delete mode 100644 src/Core/Frontend/Parser/Parser.hpp delete mode 100644 src/Core/Frontend/SemanticAnalysis/SemanticAnalysis.cpp delete mode 100644 src/Core/Frontend/SemanticAnalysis/SemanticAnalysis.hpp delete mode 100644 src/Core/Frontend/Token.cpp delete mode 100644 src/Core/Frontend/Token.hpp delete mode 100644 src/Core/Middleend/IRGenerator/IRGenerator.cpp delete mode 100644 src/Core/Middleend/IRGenerator/IRGenerator.hpp delete mode 100644 src/Core/Middleend/Optimizer/filler delete mode 100644 src/HelperFunctions.cpp delete mode 100644 src/HelperFunctions.hpp delete mode 100644 src/IntrinsicModules/std/LICENSE delete mode 100644 src/IntrinsicModules/std/src/fs.nm delete mode 100644 src/IntrinsicModules/std/src/io.nm delete mode 100644 src/IntrinsicModules/std/src/iter.nm delete mode 100644 src/IntrinsicModules/std/src/math.nm delete mode 100644 src/IntrinsicModules/std/src/random.nm delete mode 100644 src/IntrinsicModules/std/src/time.nm delete mode 100644 src/IntrinsicModules/std/std.nlp delete mode 100644 src/Libraries/Asker/Asker.cpp delete mode 100644 src/Libraries/Asker/Asker.hpp delete mode 100644 src/Libraries/Color/Color.cpp delete mode 100644 src/Libraries/Color/Color.hpp delete mode 100644 src/Libraries/Json/Json.cpp delete mode 100644 src/Libraries/Json/Json.hpp delete mode 100644 src/Libraries/Json/JsonGet.hpp delete mode 100644 src/Libraries/Localization/Localization.cpp delete mode 100644 src/Libraries/Localization/Localization.hpp delete mode 100644 src/Libraries/Paths/Paths.cpp delete mode 100644 src/Libraries/Paths/Paths.hpp delete mode 100644 src/Libraries/Toml/Toml.cpp delete mode 100644 src/Libraries/Toml/Toml.hpp delete mode 100644 src/Libraries/Utils/Types/Array.hpp delete mode 100644 src/Libraries/Utils/Types/Hashmap.hpp delete mode 100644 src/Libraries/Utils/Types/String.cpp delete mode 100644 src/Libraries/Utils/Types/String.hpp delete mode 100644 src/Libraries/Utils/Utils.hpp delete mode 100644 src/Localization/CLI/ar_SA.jsonc delete mode 100644 src/Localization/CLI/de_DE.jsonc delete mode 100644 src/Localization/CLI/en_US.jsonc delete mode 100644 src/Localization/CLI/it_IT.jsonc delete mode 100644 src/Localization/CLI/ru_RU.jsonc delete mode 100644 src/Localization/ErrorManager/en_US.jsonc delete mode 100644 src/Localization/ErrorManager/ru_RU.jsonc delete mode 100644 src/Localization/Libraries/ar_SA.jsonc delete mode 100644 src/Localization/Libraries/de_DE.jsonc delete mode 100644 src/Localization/Libraries/en_US.jsonc delete mode 100644 src/Localization/Libraries/ru_RU.jsonc delete mode 100644 src/main.cpp delete mode 100644 tests/.gitignore delete mode 100644 tests/README.md delete mode 100644 tests/cases/orchestrator/invalid/empty_project/expect.json delete mode 100644 tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/bar.nm delete mode 100644 tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/expect.json delete mode 100644 tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/foo.nm delete mode 100644 tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/main.nm delete mode 100644 tests/cases/orchestrator/invalid/no_entrypoint/expect.json delete mode 100644 tests/cases/orchestrator/invalid/no_entrypoint/main.nm delete mode 100644 tests/cases/parser/invalid/malformed_array/expect.json delete mode 100644 tests/cases/parser/invalid/malformed_array/main.nm delete mode 100644 tests/cases/parser/invalid/malformed_dict/expect.json delete mode 100644 tests/cases/parser/invalid/malformed_dict/main.nm delete mode 100644 tests/cases/parser/invalid/malformed_set/expect.json delete mode 100644 tests/cases/parser/invalid/malformed_set/main.nm delete mode 100644 tests/cases/parser/valid/decorator_entry/expect.json delete mode 100644 tests/cases/parser/valid/decorator_entry/main.nm delete mode 100644 tests/cases/semantic/invalid/break_outside_loop/expect.json delete mode 100644 tests/cases/semantic/invalid/break_outside_loop/main.nm delete mode 100644 tests/cases/semantic/invalid/const_reassignment/expect.json delete mode 100644 tests/cases/semantic/invalid/const_reassignment/main.nm delete mode 100644 tests/cases/semantic/invalid/continue_outside_loop/expect.json delete mode 100644 tests/cases/semantic/invalid/continue_outside_loop/main.nm delete mode 100644 tests/cases/semantic/invalid/duplicate_parameter/expect.json delete mode 100644 tests/cases/semantic/invalid/duplicate_parameter/main.nm delete mode 100644 tests/cases/semantic/invalid/return_outside_function/expect.json delete mode 100644 tests/cases/semantic/invalid/return_outside_function/main.nm delete mode 100644 tests/cases/semantic/invalid/undefined_function/expect.json delete mode 100644 tests/cases/semantic/invalid/undefined_function/main.nm delete mode 100644 tests/cases/semantic/invalid/undefined_variable/expect.json delete mode 100644 tests/cases/semantic/invalid/undefined_variable/main.nm delete mode 100644 tests/runner/testrunner.py diff --git a/.idea/neoluma.iml b/.idea/neoluma.iml deleted file mode 100644 index 74258b3..0000000 --- a/.idea/neoluma.iml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt deleted file mode 100644 index 9cbe402..0000000 --- a/CMakeLists.txt +++ /dev/null @@ -1,173 +0,0 @@ -cmake_minimum_required(VERSION 4.0) -set(CMAKE_SUPPRESS_DEVELOPER_WARNINGS 1 CACHE INTERNAL "No dev warnings") - -# ---- Project Setup ---- -project(neoluma LANGUAGES C CXX) - -set(CMAKE_CXX_STANDARD 23) -set(CMAKE_CXX_STANDARD_REQUIRED ON) -set(CMAKE_CXX_EXTENSIONS ON) - -message(STATUS "[Neoluma] Using C++ version: ${CMAKE_CXX_STANDARD}") -message(STATUS "[Neoluma] C++ extensions are ${CMAKE_CXX_EXTENSIONS}") - -# Options -option(NEOLUMA_PORTABLE "Portable layout (resources near executable)") - -# Set up LLVM -find_package(LLVM REQUIRED CONFIG) -message(STATUS "[Neoluma] Found LLVM ${LLVM_PACKAGE_VERSION}") -message(STATUS "[Neoluma] Using LLVMConfig.cmake in: ${LLVM_DIR}") - -# ---- Sources ---- -file(GLOB_RECURSE CORE_FILES CONFIGURE_DEPENDS - ${CMAKE_CURRENT_SOURCE_DIR}/src/Core/*.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/src/Core/*.hpp -) -file(GLOB_RECURSE CLI_FILES CONFIGURE_DEPENDS - ${CMAKE_CURRENT_SOURCE_DIR}/src/CLI/*.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/src/CLI/*.hpp -) -file(GLOB_RECURSE LIB_FILES CONFIGURE_DEPENDS - ${CMAKE_CURRENT_SOURCE_DIR}/src/Libraries/*.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/src/Libraries/*.hpp -) - -add_library(NeolumaCore ${CORE_FILES}) -add_library(NeolumaCLI ${CLI_FILES}) -add_library(NeolumaLibs ${LIB_FILES}) - -set(NEOLUMA_ICON_RC "") -if(WIN32) - set(NEOLUMA_ICON_RC "${CMAKE_SOURCE_DIR}/resources/app.rc") -endif() - -add_executable(neoluma - ${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/src/HelperFunctions.hpp - ${CMAKE_CURRENT_SOURCE_DIR}/src/HelperFunctions.cpp - ${NEOLUMA_ICON_RC} -) - -if(APPLE) - set_target_properties(neoluma PROPERTIES - MACOSX_BUNDLE TRUE - MACOSX_BUNDLE_ICON_FILE "app.icns" - ) - - set(APP_ICON_MACOS "${CMAKE_SOURCE_DIR}/resources/app.icns") - set_source_files_properties(${APP_ICON_MACOS} PROPERTIES - MACOSX_PACKAGE_LOCATION "Resources" - ) - - target_sources(neoluma PRIVATE ${APP_ICON_MACOS}) -endif() - - -# ---- Include dirs (target-based) ---- -target_include_directories(NeolumaCore PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src) -target_include_directories(NeolumaCLI PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src) -target_include_directories(NeolumaLibs PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src) - -target_include_directories(neoluma PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src) - -# LLVM includes/defs -target_include_directories(neoluma PRIVATE ${LLVM_INCLUDE_DIRS}) -target_compile_definitions(neoluma PRIVATE ${LLVM_DEFINITIONS}) -target_include_directories(NeolumaCore PRIVATE ${LLVM_INCLUDE_DIRS}) -target_compile_definitions(NeolumaCore PRIVATE ${LLVM_DEFINITIONS}) - -# ---- LLVM libs ---- -llvm_map_components_to_libnames(LLVM_LIBS - Core - Support - IRReader -) - -target_link_libraries(neoluma PRIVATE - ${LLVM_LIBS} - NeolumaCLI - NeolumaCore - NeolumaLibs -) - -# ---- Output layout for executable ---- -set(OutputRoot "${CMAKE_CURRENT_SOURCE_DIR}/.build") - -# config name: Debug/Release/etc -set_target_properties(neoluma PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${OutputRoot}/.executables/$" - LIBRARY_OUTPUT_DIRECTORY "${OutputRoot}/.libs/$" - ARCHIVE_OUTPUT_DIRECTORY "${OutputRoot}/.libs/$" -) - -# shuts up cmake about having extensions -target_compile_options(NeolumaCLI PRIVATE - $<$:-Wno-c23-extensions> -) - -# ---- Installation rules ---- -include(GNUInstallDirs) - -install(TARGETS neoluma - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} -) - -install(DIRECTORY ${CMAKE_SOURCE_DIR}/src/Localization/ DESTINATION ${CMAKE_INSTALL_DATADIR}/locales) -install(DIRECTORY ${CMAKE_SOURCE_DIR}/src/IntrinsicModules/ DESTINATION ${CMAKE_INSTALL_DATADIR}/modules) - -# ---- Tests implementation ---- -#set(NEOLUMA_TEST_RUNNER "${CMAKE_SOURCE_DIR}/tests/runner/testrunner.py") - -#add_custom_target(frontend_tests -# COMMAND "${NEOLUMA_POWERSHELL_EXECUTABLE}" -# -ExecutionPolicy Bypass -# -File "${NEOLUMA_TEST_RUNNER}" -# -ExePath "$" -# WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" -# DEPENDS neoluma -# COMMENT "Running frontend regression tests..." -# VERBATIM -#) - -# ---- Payload creation. ---- -# payload is bundled into installer resources later on. -# make payload dirs unique per platform+arch+config to avoid overwriting when switching OS/builds -set(NEOLUMA_PAYLOAD_ROOT "${CMAKE_SOURCE_DIR}/.build/payload/${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}/$") -set(NEOLUMA_STAGE_DIR "${NEOLUMA_PAYLOAD_ROOT}/stage") -set(NEOLUMA_PAYLOAD_ZIP "${NEOLUMA_PAYLOAD_ROOT}/payload.zip") - -# multi-config generators require --config. single-config i use (ninja) doesn't. -set(NEOLUMA_INSTALL_CONFIG_ARG "") -if(CMAKE_CONFIGURATION_TYPES) - set(NEOLUMA_INSTALL_CONFIG_ARG --config $) -endif() - -add_custom_command( - OUTPUT "${NEOLUMA_PAYLOAD_ZIP}" - - DEPENDS neoluma - - # clean stage folder - COMMAND ${CMAKE_COMMAND} -E rm -rf "${NEOLUMA_STAGE_DIR}" - - # create payload root - COMMAND ${CMAKE_COMMAND} -E make_directory "${NEOLUMA_PAYLOAD_ROOT}" - - # install to stage/ folder - COMMAND ${CMAKE_COMMAND} --install "${CMAKE_BINARY_DIR}" - --prefix "${NEOLUMA_STAGE_DIR}" - ${NEOLUMA_INSTALL_CONFIG_ARG} - - # remove old zip - COMMAND ${CMAKE_COMMAND} -E rm -f "${NEOLUMA_PAYLOAD_ZIP}" - - # create zip from stage contents - COMMAND ${CMAKE_COMMAND} -E chdir "${NEOLUMA_STAGE_DIR}" - ${CMAKE_COMMAND} -E tar "cf" "${NEOLUMA_PAYLOAD_ZIP}" --format=zip -- . - - COMMENT "[Neoluma] Creating payload.zip for ${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR} ($)..." - VERBATIM -) - -add_custom_target(payload DEPENDS "${NEOLUMA_PAYLOAD_ZIP}") diff --git a/CMakePresets.json b/CMakePresets.json deleted file mode 100644 index 9bfedba..0000000 --- a/CMakePresets.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "version": 6, - "configurePresets": [ - { - "name": "debug-ninja", - "generator": "Ninja", - "binaryDir": "${sourceDir}/.build/cmake-debug", - "cacheVariables": { - "CMAKE_BUILD_TYPE": "Debug", - "CMAKE_INSTALL_PREFIX": "${sourceDir}/.build/.runtime/Debug", - "NEOLUMA_PORTABLE": "ON" - } - }, - { - "name": "release-ninja", - "generator": "Ninja", - "binaryDir": "${sourceDir}/.build/cmake-release", - "cacheVariables": { - "CMAKE_BUILD_TYPE": "Release", - "CMAKE_INSTALL_PREFIX": "${sourceDir}/.build/.runtime/Release", - "NEOLUMA_PORTABLE": "OFF" - } - } - ], - "buildPresets": [ - { "name": "debug", "configurePreset": "debug-ninja" }, - { "name": "release", "configurePreset": "release-ninja" } - ] -} \ No newline at end of file diff --git a/build.bat b/build.bat deleted file mode 100644 index 2b5ea1f..0000000 --- a/build.bat +++ /dev/null @@ -1,63 +0,0 @@ -@echo off -setlocal EnableExtensions -for /f %%A in ('echo prompt $E ^| cmd') do set "ESC=%%A" - -set "MODE=%~1" -if "%MODE%"=="" set "MODE=release" - -set "CFG_PRESET=release-ninja" -set "BUILD_PRESET=release" -set "CONFIG=Release" - -if /I "%MODE%"=="debug" ( - set "CFG_PRESET=debug-ninja" - set "BUILD_PRESET=debug" - set "CONFIG=Debug" -) - -echo %ESC%[38;2;232;75;133m[INFO]%ESC%[0m Configure preset: %CFG_PRESET% -echo %ESC%[38;2;232;75;133m[INFO]%ESC%[0m Build preset: %BUILD_PRESET% - -echo %ESC%[38;2;232;75;133m[INFO]%ESC%[0m Configuring... -cmake --preset "%CFG_PRESET%" -if errorlevel 1 goto :cfg_fail - -goto :build - -:build -echo %ESC%[38;2;232;75;133m[INFO]%ESC%[0m Building neoluma... -cmake --build --preset "%BUILD_PRESET%" --target install -if errorlevel 1 goto :build_fail -echo %ESC%[38;2;232;75;133m[INFO]%ESC%[0m Building payload... -cmake --build --preset "%BUILD_PRESET%" --target payload -if errorlevel 1 goto :build_fail -goto :after_build - -:after_build -set "EXE=.build\.executables\%CONFIG%\neoluma.exe" -set "RUNTIME=.build\.runtime\%CONFIG%\" -if exist "%EXE%" ( - echo %ESC%[38;2;117;255;135m[SUCCESS]%ESC%[0m Built: %EXE% -) else ( - echo %ESC%[38;2;255;80;80m[ERROR]%ESC%[0m Can't find built exe at: %EXE% - exit /b 1 -) -if exist "%RUNTIME%" ( - echo %ESC%[38;2;117;255;135m[SUCCESS]%ESC%[0m Runtime built at: %RUNTIME% -) else ( - echo %ESC%[38;2;255;80;80m[ERROR]%ESC%[0m Can't find built runtime at: %RUNTIME% - exit /b 1 -) -goto :done - -:cfg_fail -echo %ESC%[38;2;255;80;80m[ERROR]%ESC%[0m CMake configure failed. -exit /b 1 - -:build_fail -echo %ESC%[38;2;255;80;80m[ERROR]%ESC%[0m Build failed. -exit /b 1 - -:done -echo %ESC%[38;2;117;255;135m[DONE]%ESC%[0m -exit /b 0 \ No newline at end of file diff --git a/build.sh b/build.sh deleted file mode 100644 index 46b4522..0000000 --- a/build.sh +++ /dev/null @@ -1,328 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail -trap 'echo -e "\n${ERR} Failed at line ${LINENO}: ${BASH_COMMAND}"' ERR - -ESC=$'\033' -INFO="${ESC}[38;2;232;75;133m[INFO]${ESC}[0m" -OK="${ESC}[38;2;117;255;135m[SUCCESS]${ESC}[0m" -ERR="${ESC}[38;2;255;80;80m[ERROR]${ESC}[0m" -DONE="${ESC}[38;2;117;255;135m[DONE]${ESC}[0m" - -# ============================================================ -# Usage: -# ./build.sh [release|debug] [neoluma|payload|installer|all] [--no-install] -# -# Examples: -# ./build.sh -# ./build.sh release all -# ./build.sh debug payload -# ./build.sh release installer --no-install -# ============================================================ - -MODE="${1:-release}" -TARGET="${2:-neoluma}" -TARGET_LC="${TARGET,,}" - -AUTO_INSTALL=1 -for arg in "$@"; do - [[ "$arg" == "--no-install" ]] && AUTO_INSTALL=0 -done - -CFG_PRESET="release-ninja" -BUILD_PRESET="release" -CONFIG="Release" -if [[ "${MODE,,}" == "debug" ]]; then - CFG_PRESET="debug-ninja" - BUILD_PRESET="debug" - CONFIG="Debug" -fi - -# ---- Toolchain: clang-22 + libc++ ---- -export CC="clang-22" -export CXX="clang++-22" -export CXXFLAGS="${CXXFLAGS:-} -stdlib=libc++" -export LDFLAGS="${LDFLAGS:-} -stdlib=libc++" - -have_cmd() { command -v "$1" >/dev/null 2>&1; } -is_wsl() { grep -qi microsoft /proc/version 2>/dev/null; } - -PM="" -detect_pm() { - if have_cmd apt-get; then PM="apt" - elif have_cmd dnf; then PM="dnf" - elif have_cmd pacman; then PM="pacman" - elif have_cmd zypper; then PM="zypper" - else PM="" - fi -} - -pkg_installed() { - local pkg="$1" - case "$PM" in - apt) - have_cmd dpkg-query || return 1 - dpkg-query -W -f='${Status}\n' "$pkg" 2>/dev/null | grep -q "install ok installed" - ;; - dnf|zypper) - have_cmd rpm || return 1 - rpm -q "$pkg" >/dev/null 2>&1 - ;; - pacman) - have_cmd pacman || return 1 - pacman -Q "$pkg" >/dev/null 2>&1 - ;; - *) return 1 ;; - esac -} -pm_install() { - local pkgs=("$@") - if (( AUTO_INSTALL == 0 )); then - echo "${ERR} Missing packages (auto-install disabled):" - printf " %s\n" "${pkgs[@]}" - exit 1 - fi - if [[ -z "$PM" ]]; then - echo "${ERR} No supported package manager (apt/dnf/pacman/zypper). Install manually:" - printf " %s\n" "${pkgs[@]}" - exit 1 - fi - - echo "${INFO} Installing via ${PM}:" - printf " %s\n" "${pkgs[@]}" - - case "$PM" in - apt) - sudo apt-get update - sudo apt-get install -y "${pkgs[@]}" - ;; - dnf) - sudo dnf install -y "${pkgs[@]}" - ;; - pacman) - sudo pacman -Sy --noconfirm "${pkgs[@]}" - ;; - zypper) - sudo zypper --non-interactive install "${pkgs[@]}" - ;; - esac -} - -ensure_pkgs() { - local desired=("$@") - local missing=() - - for p in "${desired[@]}"; do - [[ -z "$p" ]] && continue - if ! pkg_installed "$p"; then - missing+=("$p") - fi - done - - if (( ${#missing[@]} > 0 )); then - pm_install "${missing[@]}" - fi -} - -pkgs_cpp_for_pm() { - case "$PM" in - apt) cat <<'EOF' -ninja-build -build-essential -pkg-config -clang-22 -lld-22 -llvm-22-dev -libc++-22-dev -libc++abi-22-dev -zlib1g-dev -libzstd-dev -libcurl4-openssl-dev -libedit-dev -libxml2-dev -EOF - ;; - dnf) cat <<'EOF' -ninja-build -gcc-c++ -pkgconf-pkg-config -clang -lld -llvm-devel -libcxx-devel -libcxxabi-devel -zlib-devel -libzstd-devel -libcurl-devel -libedit-devel -libxml2-devel -EOF - ;; - pacman) cat <<'EOF' -ninja -base-devel -pkgconf -clang -lld -llvm -libc++ -zlib -zstd -curl -libedit -libxml2 -EOF - ;; - zypper) cat <<'EOF' -ninja -patterns-devel-base-devel_basis -pkg-config -clang -lld -llvm-devel -libc++-devel -libc++abi-devel -zlib-devel -libzstd-devel -libcurl-devel -libedit-devel -libxml2-devel -EOF - ;; - esac -} - -pkgs_tauri_for_pm() { - case "$PM" in - apt) cat <<'EOF' -nodejs -npm -libglib2.0-dev -libgtk-3-dev -libwebkit2gtk-4.1-dev -libappindicator3-dev -librsvg2-dev -patchelf -EOF - ;; - dnf) cat <<'EOF' -nodejs -npm -glib2-devel -gtk3-devel -webkit2gtk4.1-devel -libappindicator-gtk3-devel -librsvg2-devel -patchelf -EOF - ;; - pacman) cat <<'EOF' -nodejs -npm -glib2 -gtk3 -webkit2gtk-4.1 -libappindicator-gtk3 -librsvg -patchelf -EOF - ;; - zypper) cat <<'EOF' -nodejs -npm -glib2-devel -gtk3-devel -webkit2gtk3-devel -libappindicator3-devel -librsvg-devel -patchelf -EOF - ;; - esac -} - -ensure_npm_is_linux() { - if ! have_cmd npm; then - echo "${ERR} npm not found." - exit 1 - fi - local npm_path - npm_path="$(command -v npm)" - if is_wsl && [[ "$npm_path" == *".exe" ]]; then - echo "${ERR} Windows npm inside WSL detected: $npm_path" - echo "${ERR} Install Linux npm (apt): sudo apt-get install -y nodejs npm" - exit 1 - fi -} - -ensure_toolchain_cmds() { - for t in cmake ninja "${CC}" "${CXX}"; do - if ! have_cmd "$t"; then - echo "${ERR} Required tool missing: $t" - exit 1 - fi - done -} - -ensure_deps() { - detect_pm - if [[ -z "$PM" ]]; then - echo "${ERR} No supported package manager found (apt/dnf/pacman/zypper)." - exit 1 - fi - - mapfile -t CPP_PKGS < <(pkgs_cpp_for_pm) - ensure_pkgs "${CPP_PKGS[@]}" - - if [[ "$TARGET_LC" == "installer" || "$TARGET_LC" == "all" ]]; then - mapfile -t TAURI_PKGS < <(pkgs_tauri_for_pm) - ensure_pkgs "${TAURI_PKGS[@]}" - ensure_npm_is_linux - fi - - ensure_toolchain_cmds -} - -build_neoluma() { - echo "${INFO} Building neoluma..." - cmake --build --preset "${BUILD_PRESET}" --target install - local out=".build/.runtime/${CONFIG}/bin/neoluma" - [[ -f "$out" ]] && echo "${OK} Built: $out" || true -} - -build_payload() { - echo "${INFO} Building payload..." - cmake --build --preset "${BUILD_PRESET}" --target payload -} - -build_tauri() { - echo "${INFO} Building Tauri installer..." - pushd src/Installer >/dev/null - npm run tauri build - popd >/dev/null -} - -# ---- Run ---- -echo "${INFO} Mode: ${MODE}" -echo "${INFO} Target: ${TARGET}" -echo "${INFO} Using toolchain: CC=${CC}, CXX=${CXX} (libc++)" - -ensure_deps - -echo "${INFO} Configuring..." -cmake --preset "${CFG_PRESET}" - -case "$TARGET_LC" in - neoluma) build_neoluma ;; - payload) build_payload ;; - installer|all) - build_payload - build_tauri - ;; - *) - echo "${ERR} Unknown target: ${TARGET}" - echo "Valid: neoluma, payload, installer, all" - exit 1 - ;; -esac - -echo "${DONE}" \ No newline at end of file diff --git a/crowdin.yml b/crowdin.yml deleted file mode 100644 index c3da6d1..0000000 --- a/crowdin.yml +++ /dev/null @@ -1,3 +0,0 @@ -files: - - source: /src/Localization/**/en_US.jsonc - translation: /src/Localization/**/%locale_with_underscore%.jsonc diff --git a/example.nm b/example.nm deleted file mode 100644 index af13346..0000000 --- a/example.nm +++ /dev/null @@ -1,134 +0,0 @@ -#unsafe - // Marks the code as unsafe for low-level operations - -// Line comment -/* - Block comment - spanning multiple lines -*/ - -// Variables -a = 20 -b: string = "Hello!" // Type is optional -const c = 42; - -myarray = [1, 2, 3] -mydict = {"x": 1, "y": 2} -myset = (true, "apple", 1.5) -mybool = false -nullable: int = null - -// Enums and Interfaces -enum Color { Red, Green, Blue } -interface IShape { name: string, area: float } - -// Class and method declaration -class Animal { - init() {} - - public fn speak() { - print("Sound") - } -} - -class Dog <- Animal { - @override - public static fn speak() { - print("Bark") - } -} - -// Lambda and concise syntax -lambda x, y: x + y -(x, y) => x * y - -''' -Entry point of program -''' -public function main(args: string[], number) { - print("Hello, ${args[0]}!") - - result = add(10, 5) - print("Sum: ${result}") -} - -private fn add(a, b) -> int { - return a + b -} - -public fn subtract(a, b) -> int => a - b - -// Unsafe memory access -#import "memory" - -ptr = &map(memory.allocate(4 * size(int))) -*ptr = 123 -print(*ptr) -memory.free(ptr) - -// Imports from Neoluma modules -#import "math" -#import "random" as rnd - -num = rnd.random(1, 100) -print(num) - -a = input("Say something: ") -with open("log.txt", "w") as file { - file.write(a) -} - -// Control flow -for (i in range(5)) { - print(i) -} - -while (true) { - break -} - -if (num > 50) { - print("Big number") -} else { - print("Small number") -} - -switch (num) { - case 1: - print("One") - case 2: - print("Two") - default: - print("Other") -} - -// Namespace -namespace app.tools - -// Generators (list comprehension) -squares = [x * x for x in range(10)] - -// Importing external language pack -#import "cpp:mathlib" as math - -public fn calc() -> int { - return math.sqrt(144) -} - -// Try/catch/throw -try { - risky() -} catch (err) { - print("Error: ${err}") - throw err -} - -fn risky() -> result { - return result.error("Oops!") -} - -// Decorator usage -@decorator -fn decorated_func() { - print("I'm decorated!") -} diff --git a/resources/app.icns b/resources/app.icns deleted file mode 100644 index fc80f8d7de335fb221c1695482d80d7350f371b6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 234546 zcmZU3WmKKZvh7;9JHeeG!5xCT2PY69xCM8Ig}b{13GVI$_u%gC?!kGBea?ROj`w~L z#vt8YHfvUO^=EEq?ErvGU^O>n<^lk48ABDnNFpQPBLDyZWN9feW$kj~vawEW;K-9Y{0NSJV5snfm>2 zS4bmQ+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kGrNl+mB#VC((gt+&(FLL3rd_8Raix z7FMn9CndpF^y**B6kR7^#&Tq~o5X!}^vcl$E*H*G+=z#JX6payGS|dM>GyaCF$0}r zBj|s{NrP!TEgrn<$m$VH3M0)rAAO&&s7&R)38Pm0tF%LqimS$XawztCf((` zR>+K@MWiq+y9eu8zVFZ(1U3~Nrl2x=x@j1WsFKJ}i%X=p2DHp2jRC%7XkCHccIFK0eh zCV#5Mq87GIX&@+(eJ&CNi~QjzoB3R%3Kp3iQ?!DtN&s*P7fgbI>li9}RWCJ85R2D_ zZlaw&P5S^E;{d`wvIowBdx$C`6{rF`q8SdlW>zX2=5ZR8E6kKA27^ISwKIhRerUt= b5Qn*N!Ql0M{+Vv@1>@@-;KlixeCGcE?YW+i diff --git a/resources/app.ico b/resources/app.ico deleted file mode 100644 index 8c8c89217eab7b652ced4bf92a9ff2b56688c87b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 9768 zcmbt)c|26%+xI!A8D=bDtPzHcrL3t4Wl*vc6|$z#Mnn{uIkHFgkT8m9MI~#@L{d?d zva~SBQnrz8FlOE}{oeO^pFf`eo-?2M%sF$G>$<+z_xj$~J#zy9h`hKP2;c#nG5|;* z`$-OVhXnbg`H)>fON#@J+_T&_h6nj@zj)t|dvxKV-4U?sZg@Tb5IQXnm>jwMZKe== zS?p-T%EtIw)tn{fgor~JG|)3(P*^D3TZOU+-}9_0Hi{qmsHb=>aYsoCzb1S=)!>>z z`1ry{_V3P1Kk7aTBu_){XRl={oE&eOi+tGFV_ReASl;+>Es8S1*_9va{MB-UG;!q8 z*9UHa!z2H@ZKul;-wrxc+ugl6!T2Tp*wq{DDeb31O5?xjW52(YwT3%Z7>C4I7%#~a z6+UOR_4Ge42$sFq^vnTryN0RpV5+mz2OQmp=?bZXn(-6@?SD9UxhX`4g`BRCI0i>e z{C>xn@`ONjup+0$9(#&;Nh=!2CIZ&*quq?rDaFp+0zsj-{s4%9c1D6^A}U^o6`w_v zvZAq9#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Uo zkM?3+rg2qOC;?t--0;NNXw;+uC}twgwd!$C`O9YV{f)VIZC@3!-Ko0qgkm>ld;hSI zFSGu*Q);0~Hg|>1Q)J=GS_~y^6~XMsLP+pat{aFStzB(MFekbDa5PbChWFCd@oa^8aeX;TBn`yWY RS>y#+9<)19Vd{PD{{S2#0=xhK diff --git a/resources/app.rc b/resources/app.rc deleted file mode 100644 index 72d9110..0000000 --- a/resources/app.rc +++ /dev/null @@ -1 +0,0 @@ -IDI_ICON1 ICON "app.ico" \ No newline at end of file diff --git a/run.bat b/run.bat deleted file mode 100644 index 5dcd372..0000000 --- a/run.bat +++ /dev/null @@ -1 +0,0 @@ -.\.build\.runtime\Debug\bin\neoluma.exe check --project "TestProject/testproject.nlp" \ No newline at end of file diff --git a/src/CLI/CLI.cpp b/src/CLI/CLI.cpp deleted file mode 100644 index 69aa30c..0000000 --- a/src/CLI/CLI.cpp +++ /dev/null @@ -1,142 +0,0 @@ -#include "CLI.hpp" -#include "Core/Compiler.hpp" - -#include "Libraries/Localization/Localization.hpp" -#include "Libraries/Color/Color.hpp" -#include "Libraries/Paths/Paths.hpp" - -#include - -// ==== Main functions ==== - -void build(const std::string& nlpFile) { - ProjectConfig config = parseProjectFile(nlpFile); - std::println("{} {}", Localization::translate("CLI.build.initialization"), config.name); - // todo: compiler call, executable generation -} - -void run(const std::string& nlpFile) { - build(nlpFile); - std::println("{}\n", Localization::translate("CLI.run.initialization")); - // todo: launch the file using std::system or CreateProcess -} - -void check(const std::string& nlpFile, bool jsonOutput) { - ProjectConfig config = parseProjectFile(nlpFile); - CompilationInput input; - - input.targetOutput = config.output; - input.settings = parseCompilerSettings(config.compilerSettings); - for (const auto& file : std:: filesystem::recursive_directory_iterator(std::filesystem::path(config.sourcePath) / config.sourceFolder, std::filesystem::directory_options::skip_permission_denied)) { - if (file.is_regular_file() && file.path().extension() == ".nm") input.files.push_back(file.path()); - } - - DependencyInput stdDependency = { - .rootPath = std::filesystem::path(Paths::dataDir()) / "modules" / "std", - .sourceFolder = "src" - }; - input.dependencies["std"] = stdDependency; // todo: doesn't support external for now - - Compiler compiler = Compiler(input); - if (!jsonOutput) std::println("{}{}{}", Color::TextHex("#75ff87"), formatStr(Localization::translate("CLI.check.initialization"), config.name), Color::Reset); - compiler.check(jsonOutput); -} - -void createProject() { - ProjectConfig config; - int steps = 5; int step = 0; - std::string title = formatStr("{} ", Localization::translate("CLI.createProject.initialization")); - - clearScreen(); - showProgressBar(title, step++, steps); - - config.name = asker::input(Localization::translate("CLI.createProject.projectName"), true); - clearScreen(); - showProgressBar(title, step++, steps); - config.version = asker::input(Localization::translate("CLI.createProject.projectVersion")); - clearScreen(); - showProgressBar(title, step++, steps); - std::vector authors = split(asker::input(Localization::translate("CLI.createProject.projectAuthors"), true), ','); - std::string authorList = listAuthors(authors); - config.author = authors; - clearScreen(); - showProgressBar(title, step++, steps); - std::string licenses[14] = { "MIT", "Apache 2.0", "GNU GPL v3", "BSD 2-Clause \"Simplified\"", "BSD 3-Clause \"New\" or \"Revised\"", "Boost Software 1.0", "CC0 v1 Universal", "Eclipse", "GNU AGPL v3", "GNU GPL v2", "GNU LGPL v2.1", "Mozilla 2.0", "The Unlicense", "Custom"}; - std::string license = asker::selectList(Localization::translate("CLI.createProject.projectLicense"), licenses); - - if (license == "MIT") config.license = License::MIT; - else if (license == "Apache 2.0") config.license = License::Apache; - else if (license == "GNU GPL v3") config.license = License::GPL3; - else if (license == "BSD 2-Clause \"Simplified\"") config.license = License::BSD2; - else if (license == "BSD 3-Clause \"New\" or \"Revised\"") config.license = License::BSD3; - else if (license == "Boost Software 1.0") config.license = License::Boost; - else if (license == "CC0 v1 Universal") config.license = License::CC0; - else if (license == "Eclipse") config.license = License::Eclipse; - else if (license == "GNU AGPL v3") config.license = License::AGPL; - else if (license == "GNU GPL v2") config.license = License::GPL2; - else if (license == "GNU LGPL v2.1") config.license = License::LGPL; - else if (license == "Mozilla 2.0") config.license = License::Mozilla; - else if (license == "The Unlicense") config.license = License::Unlicense; - else config.license = License::Custom; - - clearScreen(); - showProgressBar(title, step++, steps); - bool confirmation = asker::confirm(formatStr("{}{}{}", Color::TextHex("#FF8C75"), - formatStr(Localization::translate("CLI.createProject.confirmation"), config.name, - config.version, authorList, license, Color::TextHex("#96fcbd")), - Color::Reset)); - if (confirmation) { - createProject(config); - clearScreen(); - std::println(std::cout, "{}", formatStr(Localization::translate("CLI.createProject.confirmation.yes"), Color::TextHex("#75ff87"), Color::Reset)); - } else { - std::println(std::cout, "{}", formatStr(Localization::translate("CLI.createProject.confirmation.no"), Color::TextHex("#ff5050"), Color::Reset)); - } - std::println(Color::Reset); -} - -void createProject(ProjectConfig config) { - std::filesystem::path projectPath = std::filesystem::current_path() / config.name; - std::filesystem::create_directory(projectPath); - std::filesystem::create_directory(projectPath / "src"); - - std::ofstream mainFile(projectPath / "src/main.nm"); - mainFile << std::format("// {} \n@entry\nfn main() {{\n print(\"{}\");\n}}", Localization::translate("CLI.createProject.template.main.comment"), Localization::translate("CLI.createProject.template.main.printmsg")); - mainFile.close(); - - Toml::Table table; - Toml::Table project; - project["name"] = config.name; - project["version"] = config.version; - - Toml::TomlArray authors_array; - for (const auto& author : config.author) authors_array.push_back(Toml::TomlValue(author)); - project["authors"] = Toml::TomlValue(authors_array); - project["license"] = licenseID(config.license); - project["output"] = outputID(config.output); - project["sourceFolder"] = config.sourceFolder; - project["buildFolder"] = config.buildFolder; - table["project"] = project.get(); - - Toml::Table tasks; - tasks["dev"] = "neoluma run --debug"; - table["tasks"] = tasks.get(); - - std::ofstream cfg(projectPath / std::format("{}.nlp", formatNameToSnakeCase(config.name))); - if (cfg.is_open()){ - Toml::serializeTable(cfg, table.get()); - } - cfg.close(); - - std::ofstream license(projectPath / "LICENSE"); - if (license.is_open()) { - Licenses licenses; - license << licenses.checkLicense(config, config.license); - } - license.close(); -} - -void printHelp() { - std::println(std::cout, "{}", Localization::translate("CLI.helpMessage")); -} - diff --git a/src/CLI/CLI.hpp b/src/CLI/CLI.hpp deleted file mode 100644 index 6580735..0000000 --- a/src/CLI/CLI.hpp +++ /dev/null @@ -1,180 +0,0 @@ -#pragma once -#include "CLIHelperFunctions.hpp" -#include "HelperFunctions.hpp" - -#include "Libraries/Asker/Asker.hpp" - -#include -#include -#include - -// CLIArgs is a struct that allows me to parse CLI arguments -struct CLIArgs { - std::string command; // parses commands like new, build, run, check and help - std::map options; // parses --arguments with_values.nlp - std::vector positional; // anything that is not an --argument -}; - -// Argument parsing -CLIArgs parseArgs(int argc, char** argv); - -// ==== Main functions ==== - -void build(const std::string& nlpFile); // Compiles Neoluma program into a binary executable -void run(const std::string& nlpFile); // Runs the code interpreted way. Useful for testing. -void check(const std::string& nlpFile, bool jsonOutput = false); // Checks code on errors. Doesn't generate any binaries -void createProject(ProjectConfig config); // Creates a project -void createProject(); // Creates a project (Without ProjectConfig) - -// Help function that just tells details about compiler and it's CLI. -void printHelp(); - -// Licenses templates -class Licenses { - static inline const std::string MIT_TEMPLATE = { - #embed "LicenseTemplates/MIT.txt" - }; - static inline const std::string APACHE_TEMPLATE = { - #embed "LicenseTemplates/Apache.txt" - }; - static inline const std::string GNUGPLv3_TEMPLATE = { - #embed "LicenseTemplates/GNUGPLv3.txt" - }; - static inline const std::string BSDv2Simplified_TEMPLATE = { - #embed "LicenseTemplates/BSDv2Simplified.txt" - }; - static inline const std::string BSDv3NewRevised_TEMPLATE = { - #embed "LicenseTemplates/BSDv3NewRevised.txt" - }; - static inline const std::string BoostV1_TEMPLATE = { - #embed "LicenseTemplates/BoostV1.txt" - }; - static inline const std::string CC0v1_TEMPLATE = { - #embed "LicenseTemplates/CC0v1.txt" - }; - static inline const std::string EclipseV2_TEMPLATE = { - #embed "LicenseTemplates/EclipseV2.txt" - }; - static inline const std::string GNUAGPLv3_TEMPLATE = { - #embed "LicenseTemplates/GNUAGPLv3.txt" - }; - static inline const std::string GNUGPLv2_TEMPLATE = { - #embed "LicenseTemplates/GNUGPLv2.txt" - }; - static inline const std::string GNULGPLv2_1_TEMPLATE = { - #embed "LicenseTemplates/GNULGPLv2_1.txt" - }; - static inline const std::string MozillaV2_TEMPLATE = { - #embed "LicenseTemplates/MozillaV2.txt" - }; - static inline const std::string Unlicense_TEMPLATE = { - #embed "LicenseTemplates/Unlicense.txt" - }; -public: - // Available identifiers: mit, apache, gpl2, gpl3, bsd2, bsd3, boost, cc0, eclipse, agpl, lgpl, mozilla, unlicense. Otherwise returns specific message - static std::string checkLicense(ProjectConfig config, License license) { - if (license == License::MIT) return MIT(listAuthors(config.author)); - if (license == License::Apache) return Apachev2(); - if (license == License::GPL2) return GNUGPLv2(); - if (license == License::GPL3) return GNUGPLv3(); - if (license == License::BSD2) return BSDv2Simplified(listAuthors(config.author)); - if (license == License::BSD3) return BSDv3NewRevised(listAuthors(config.author)); - if (license == License::Boost) return Boostv1(); - if (license == License::CC0) return CC0v1(); - if (license == License::Eclipse) return Eclipsev2(); - if (license == License::AGPL) return GNUAGPLv3(); - if (license == License::LGPL) return GNULGPLv2_1(); - if (license == License::Mozilla) return Mozillav2(); - if (license == License::Unlicense) return Unlicense(); - return "We haven't found licenses for your case. Please delete this text and insert your license here, or delete the license file completely."; - } - - /* A short and simple permissive license with conditions only requiring preservation of copyright and license notices. - Licensed works, modifications, and larger works may be distributed under different terms and without source code. */ - static std::string MIT(std::string author) { - const auto year = formatStr("{:%Y}", std::chrono::system_clock::now()); - return formatStr(MIT_TEMPLATE, year, author); - } - - /* A permissive license whose main conditions require preservation of copyright and license notices. - Contributors provide an express grant of patent rights. Licensed works, modifications, and larger works may be - distributed under different terms and without source code. */ - static std::string Apachev2() { - return APACHE_TEMPLATE; - } - - /*Permissions of this strong copyleft license are conditioned on making available complete source code of licensed works - and modifications, which include larger works using a licensed workunder the same license. Copyright and license notices - must be preserved. Contributors provide an express grant of patent rights.*/ - static std::string GNUGPLv3() { - return GNUGPLv3_TEMPLATE; - } - - /*A permissive license that comes in two variants, the BSD 2-Clause and BSD 3-Clause. - Both have very minute differences to the MIT license.*/ - static std::string BSDv2Simplified(std::string author){ - const auto year = formatStr("{:%Y}", std::chrono::system_clock::now()); - return formatStr(BSDv2Simplified_TEMPLATE, year, author); - } - - /*A permissive license similar to the BSD 2-Clause License, but with a 3rd clause that prohibits others from using the name - of the copyright holder or its contributors to promote derived products without written consent.*/ - static std::string BSDv3NewRevised(std::string author) { - const auto year = formatStr("{:%Y}", std::chrono::system_clock::now()); - return formatStr(BSDv3NewRevised_TEMPLATE, year, author); - } - - /*A simple permissive license only requiring preservation of copyright and license notices for source (and not binary) distribution. - Licensed works, modifications, and larger works may be distributed under different terms and without source code.*/ - static std::string Boostv1() { - return BoostV1_TEMPLATE; - } - - /*The Creative Commons CC0 Public Domain Dedication waives copyright interest in a work you've created and dedicates - it to the world-wide public domain. Use CC0 to opt out of copyright entirely and ensure your work has the widest reach. - As with the Unlicense and typical software licenses, CC0 disclaims warranties. CC0 is very similar to the Unlicense.*/ - static std::string CC0v1() { - return CC0v1_TEMPLATE; - } - - /*This commercially-friendly copyleft license provides the ability to commercially license binaries; a modern royalty-free patent - license grant; and the ability for linked works to use other licenses, including commercial ones.*/ - static std::string Eclipsev2() { - return EclipseV2_TEMPLATE; - } - - /*Permissions of this strongest copyleft license are conditioned on making available complete source code of licensed works - and modifications, which include larger works using a licensed work, under the same license. Copyright and license notices - must be preserved. Contributors provide an express grant of patent rights. When a modified version is used to provide - a service over a network, the complete source code of the modified version must be made available.*/ - static std::string GNUAGPLv3() { - return GNUAGPLv3_TEMPLATE; - } - - /* The GNU GPL is the most widely used free software license and has a strong copyleft requirement. - When distributing derived works, the source code of the work must be made available under the same license. - There are multiple variants of the GNU GPL, each with different requirements. */ - static std::string GNUGPLv2() { - return GNUGPLv2_TEMPLATE; - } - - /* Primarily used for software libraries, the GNU LGPL requires that derived works be licensed under the same license, but works that - only link to it do not fall under this restriction. There are two commonly used versions of the GNU LGPL.*/ - static std::string GNULGPLv2_1() { - return GNULGPLv2_1_TEMPLATE; - } - - /*Permissions of this weak copyleft license are conditioned on making available source code of licensed files and modifications of those - files under the same license (or in certain cases, one of the GNU licenses). Copyright and license notices must be preserved. - Contributors provide an express grant of patent rights. However, a larger work using the licensed work may be distributed under - different terms and without source code for files added in the larger work.*/ - static std::string Mozillav2() { - return MozillaV2_TEMPLATE; - } - - /*A license with no conditions whatsoever which dedicates works to the public domain. Unlicensed works, modifications, - and larger works may be distributed under different terms and without source code.*/ - static std::string Unlicense() { - return Unlicense_TEMPLATE; - } -}; \ No newline at end of file diff --git a/src/CLI/CLIHelperFunctions.cpp b/src/CLI/CLIHelperFunctions.cpp deleted file mode 100644 index b4abb88..0000000 --- a/src/CLI/CLIHelperFunctions.cpp +++ /dev/null @@ -1,209 +0,0 @@ -#include "CLIHelperFunctions.hpp" - -#include "CLI.hpp" -#include "Libraries/Asker/Asker.hpp" -#include "Libraries/Color/Color.hpp" -#include "Libraries/Localization/Localization.hpp" - -// ======== Helping functions ======== - -// Lists authors by comma. If author is only mentioned once, just author name is inputted -std::string listAuthors(const std::vector& authors) { - std::string authorList; - bool first = true; - - for (const std::string& raw : authors) { - std::string name = trim(raw); - if (name.empty()) continue; - - if (!first) authorList += ", "; - authorList += name; - first = false; - } - - return authorList; -} - -// Formats the input string to letters and underscores. -std::string formatNameToSnakeCase(const std::string& input) { - std::string result = input; - - for (char& c : result) { - if (c == ' ') c = '_'; - else c = std::tolower(static_cast(c)); - } - - return result; -} - -// Returns progress bar for CLI -void showProgressBar(const std::string& stepName, int step, int total) { - int percentage = (step * 100) / total; - int hashes = percentage / 5; - if (percentage != 100) std::println("{} [ {} ({}{}) {}% ] {}", Color::TextHex("#f6ff75"), stepName, std::string(hashes, '#'), std::string(20 - hashes, '_'), percentage, Color::TextHex("#01e0d4")); - else std::println("{} [ {} ({}{}) {}%! ] {}", Color::TextHex("#75ff87"), stepName, std::string(hashes, '#'), std::string(20 - hashes, '_'), percentage, Color::TextHex("#01e0d4")); -} - -// Clears terminal screen -void clearScreen() { - std::cout << "\033[0m\033[2J\033[H"; -} - -// -------- stuff required for parseProjectFile -std::string getString(const Toml::TomlTable& table, const std::string& key, const std::string& def) { - for (const auto& [k, v] : table) - if (k == key && v.type == Toml::TomlType::String) - return std::get(v.value); - return def; -} - -std::vector getStringArray(const Toml::TomlTable& table, const std::string& key) { - for (const auto& [k, v] : table) { - if (k == key && v.type == Toml::TomlType::Array) { - std::vector result; - const auto& arr = std::get(v.value); - for (const auto& item : arr) - if (item.type == Toml::TomlType::String) - result.push_back(std::get(item.value)); - return result; - } - } - return {}; -} - -std::map extractMap(const Toml::TomlTable& root, const std::string& key) { - std::map result; - - for (const auto& [k, v] : root) { - if (k == key && v.type == Toml::TomlType::Table) { - const auto& tbl = std::get(v.value); - for (const auto& [tk, tv] : tbl) - if (tv.type == Toml::TomlType::String) - result[tk] = std::get(tv.value); - } - } - - return result; -} -// -------- - -// Argument parsing -CLIArgs parseArgs(int argc, char** argv) { - CLIArgs args; - if (argc > 1) args.command = argv[1]; - - for (int i = 2; i < argc; i++) { - std::string token = argv[i]; - if (token.rfind("--", 0) == 0) { - std::string key = token.substr(2); - std::string value; - - while (i + 1 < argc && argv[i + 1][0] != '-') { - if (!value.empty()) value += " "; - value += argv[++i]; - } - args.options[key] = value; - } else args.positional.push_back(token); - } - - return args; -} - -ProjectConfig parseProjectFile(const std::string& file) { - std::string contents = readFile(file); - std::istringstream ss(contents); - Toml::TomlTable root = Toml::parseToml(ss); - ProjectConfig config; - - // project table parsing - auto it = std::find_if(root.begin(), root.end(), [](const auto& kv){ return kv.first == "project"; }); - if (it != root.end() && it->second.type == Toml::TomlType::Table) { - const auto& project = std::get(it->second.value); - config.name = getString(project, "name", config.name); - config.version = getString(project, "version", config.version); - config.author = getStringArray(project, "authors"); - config.license = parseLicense(getString(project, "license", "")); - config.sourceFolder = getString(project, "sourceFolder", config.sourceFolder); - config.output = parseOutput(getString(project, "output", "")); - config.buildFolder = getString(project, "buildFolder", config.buildFolder); - } - - // get configured tasks, dependencies, tests and languagePacks - config.tasks = extractMap(root, "tasks"); - config.dependencies = extractMap(root, "dependencies"); - config.tests = extractMap(root, "tests"); - config.languagePacks = extractMap(root, "languagePacks"); - - // configure source path - config.sourcePath = std::filesystem::path(file).parent_path().string(); - - return config; -} - -CompilerSettings parseCompilerSettings(const std::map& map) { - CompilerSettings config; - - config.verbose = map.contains("verbose") ? std::get(map.at("verbose")) : config.verbose; - config.baremetal = map.contains("baremetal") ? std::get(map.at("baremetal")) : config.baremetal; - - return config; -} - -std::string licenseID(License license) { - switch (license) { - case License::AGPL: return "agpl"; - case License::Apache: return "apache"; - case License::Boost: return "boost"; - case License::BSD2: return "bsd2"; - case License::BSD3: return "bsd3"; - case License::CC0: return "cc0"; - case License::Eclipse: return "eclipse"; - case License::GPL2: return "gpl2"; - case License::GPL3: return "gpl3"; - case License::LGPL: return "lgpl"; - case License::MIT: return "mit"; - case License::Mozilla: return "mozilla"; - case License::Unlicense: return "unlicense"; - default: return "custom"; - } -} - -std::string outputID(OutputType type) { - switch (type) { - case OutputType::Executable: return "exe"; - case OutputType::IR: return "ir"; - case OutputType::LLVM_IR: return "llvm_ir"; - case OutputType::Object: return "obj"; - case OutputType::SharedLibrary: return "sharedlib"; - case OutputType::StaticLibrary: return "staticlib"; - default: return ""; - } -} - -License parseLicense(std::string license) { - if (license == "mit") return License::MIT; - if (license == "apache") return License::Apache; - if (license == "gpl3") return License::GPL3; - if (license == "bsd2") return License::BSD2; - if (license == "bsd3") return License::BSD3; - if (license == "boost") return License::Boost; - if (license == "cc0") return License::CC0; - if (license == "eclipse") return License::Eclipse; - if (license == "agpl") return License::AGPL; - if (license == "gpl2") return License::GPL2; - if (license == "lgpl") return License::LGPL; - if (license == "mozilla") return License::Mozilla; - if (license == "unlicense") return License::Unlicense; - return License::Custom; -} - -OutputType parseOutput(std::string outputType) { - if (outputType == "exe") return OutputType::Executable; - if (outputType == "ir") return OutputType::IR; - if (outputType == "llvm_ir") return OutputType::LLVM_IR; - if (outputType == "obj") return OutputType::Object; - if (outputType == "sharedlib") return OutputType::SharedLibrary; - if (outputType == "staticlib") return OutputType::StaticLibrary; - std::println(std::cerr, "{}[NeolumaCLI/IDtoOutput] {}", Color::TextHex("#ff5050"), Localization::translate("CLI.parseProjectFile.parseOutputError")); - return OutputType::None; -} \ No newline at end of file diff --git a/src/CLI/CLIHelperFunctions.hpp b/src/CLI/CLIHelperFunctions.hpp deleted file mode 100644 index 9a27356..0000000 --- a/src/CLI/CLIHelperFunctions.hpp +++ /dev/null @@ -1,34 +0,0 @@ -#pragma once - -#include "Core/Extras/ProjectManager/ProjectManager.hpp" - -#include "Libraries/Toml/Toml.hpp" - -#include -#include - -struct CLIArgs; -// ======== Helping functions ======== - -// Lists authors by comma. If author is only mentioned once, just author name is inputted -std::string listAuthors(const std::vector& authors); -// Formats the input string to letters and underscores. -std::string formatNameToSnakeCase(const std::string& input); - -// Returns progress bar for CLI -void showProgressBar(const std::string& stepName, int step, int total); -// Clears terminal screen -void clearScreen(); - -// stuff required for parseProjectFile -std::string getString(const Toml::TomlTable& table, const std::string& key, const std::string& def); -std::vector getStringArray(const Toml::TomlTable& table, const std::string& key); -std::map extractMap(const Toml::TomlTable& root, const std::string& key); - -ProjectConfig parseProjectFile(const std::string& file); -CompilerSettings parseCompilerSettings(const std::map& map); - -std::string licenseID(License license); -std::string outputID(OutputType type); -License parseLicense(std::string license); -OutputType parseOutput(std::string outputType); \ No newline at end of file diff --git a/src/CLI/LicenseTemplates/Apache.txt b/src/CLI/LicenseTemplates/Apache.txt deleted file mode 100644 index 261eeb9..0000000 --- a/src/CLI/LicenseTemplates/Apache.txt +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/src/CLI/LicenseTemplates/BSDv2Simplified.txt b/src/CLI/LicenseTemplates/BSDv2Simplified.txt deleted file mode 100644 index d2f52c3..0000000 --- a/src/CLI/LicenseTemplates/BSDv2Simplified.txt +++ /dev/null @@ -1,24 +0,0 @@ -BSD 2-Clause License - -Copyright (c) {}, {} - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/src/CLI/LicenseTemplates/BSDv3NewRevised.txt b/src/CLI/LicenseTemplates/BSDv3NewRevised.txt deleted file mode 100644 index 284f054..0000000 --- a/src/CLI/LicenseTemplates/BSDv3NewRevised.txt +++ /dev/null @@ -1,28 +0,0 @@ -BSD 3-Clause License - -Copyright (c) {}, {} - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -3. Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/src/CLI/LicenseTemplates/BoostV1.txt b/src/CLI/LicenseTemplates/BoostV1.txt deleted file mode 100644 index 36b7cd9..0000000 --- a/src/CLI/LicenseTemplates/BoostV1.txt +++ /dev/null @@ -1,23 +0,0 @@ -Boost Software License - Version 1.0 - August 17th, 2003 - -Permission is hereby granted, free of charge, to any person or organization -obtaining a copy of the software and accompanying documentation covered by -this license (the "Software") to use, reproduce, display, distribute, -execute, and transmit the Software, and to prepare derivative works of the -Software, and to permit third-parties to whom the Software is furnished to -do so, all subject to the following: - -The copyright notices in the Software and this entire statement, including -the above license grant, this restriction and the following disclaimer, -must be included in all copies of the Software, in whole or in part, and -all derivative works of the Software, unless such copies or derivative -works are solely in the form of machine-executable object code generated by -a source language processor. - -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, TITLE AND NON-INFRINGEMENT. IN NO EVENT -SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE -FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN 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/src/CLI/LicenseTemplates/CC0v1.txt b/src/CLI/LicenseTemplates/CC0v1.txt deleted file mode 100644 index 0e259d4..0000000 --- a/src/CLI/LicenseTemplates/CC0v1.txt +++ /dev/null @@ -1,121 +0,0 @@ -Creative Commons Legal Code - -CC0 1.0 Universal - - CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE - LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN - ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS - INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES - REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS - PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM - THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED - HEREUNDER. - -Statement of Purpose - -The laws of most jurisdictions throughout the world automatically confer -exclusive Copyright and Related Rights (defined below) upon the creator -and subsequent owner(s) (each and all, an "owner") of an original work of -authorship and/or a database (each, a "Work"). - -Certain owners wish to permanently relinquish those rights to a Work for -the purpose of contributing to a commons of creative, cultural and -scientific works ("Commons") that the public can reliably and without fear -of later claims of infringement build upon, modify, incorporate in other -works, reuse and redistribute as freely as possible in any form whatsoever -and for any purposes, including without limitation commercial purposes. -These owners may contribute to the Commons to promote the ideal of a free -culture and the further production of creative, cultural and scientific -works, or to gain reputation or greater distribution for their Work in -part through the use and efforts of others. - -For these and/or other purposes and motivations, and without any -expectation of additional consideration or compensation, the person -associating CC0 with a Work (the "Affirmer"), to the extent that he or she -is an owner of Copyright and Related Rights in the Work, voluntarily -elects to apply CC0 to the Work and publicly distribute the Work under its -terms, with knowledge of his or her Copyright and Related Rights in the -Work and the meaning and intended legal effect of CC0 on those rights. - -1. Copyright and Related Rights. A Work made available under CC0 may be -protected by copyright and related or neighboring rights ("Copyright and -Related Rights"). Copyright and Related Rights include, but are not -limited to, the following: - - i. the right to reproduce, adapt, distribute, perform, display, - communicate, and translate a Work; - ii. moral rights retained by the original author(s) and/or performer(s); -iii. publicity and privacy rights pertaining to a person's image or - likeness depicted in a Work; - iv. rights protecting against unfair competition in regards to a Work, - subject to the limitations in paragraph 4(a), below; - v. rights protecting the extraction, dissemination, use and reuse of data - in a Work; - vi. database rights (such as those arising under Directive 96/9/EC of the - European Parliament and of the Council of 11 March 1996 on the legal - protection of databases, and under any national implementation - thereof, including any amended or successor version of such - directive); and -vii. other similar, equivalent or corresponding rights throughout the - world based on applicable law or treaty, and any national - implementations thereof. - -2. Waiver. To the greatest extent permitted by, but not in contravention -of, applicable law, Affirmer hereby overtly, fully, permanently, -irrevocably and unconditionally waives, abandons, and surrenders all of -Affirmer's Copyright and Related Rights and associated claims and causes -of action, whether now known or unknown (including existing as well as -future claims and causes of action), in the Work (i) in all territories -worldwide, (ii) for the maximum duration provided by applicable law or -treaty (including future time extensions), (iii) in any current or future -medium and for any number of copies, and (iv) for any purpose whatsoever, -including without limitation commercial, advertising or promotional -purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each -member of the public at large and to the detriment of Affirmer's heirs and -successors, fully intending that such Waiver shall not be subject to -revocation, rescission, cancellation, termination, or any other legal or -equitable action to disrupt the quiet enjoyment of the Work by the public -as contemplated by Affirmer's express Statement of Purpose. - -3. Public License Fallback. Should any part of the Waiver for any reason -be judged legally invalid or ineffective under applicable law, then the -Waiver shall be preserved to the maximum extent permitted taking into -account Affirmer's express Statement of Purpose. In addition, to the -extent the Waiver is so judged Affirmer hereby grants to each affected -person a royalty-free, non transferable, non sublicensable, non exclusive, -irrevocable and unconditional license to exercise Affirmer's Copyright and -Related Rights in the Work (i) in all territories worldwide, (ii) for the -maximum duration provided by applicable law or treaty (including future -time extensions), (iii) in any current or future medium and for any number -of copies, and (iv) for any purpose whatsoever, including without -limitation commercial, advertising or promotional purposes (the -"License"). The License shall be deemed effective as of the date CC0 was -applied by Affirmer to the Work. Should any part of the License for any -reason be judged legally invalid or ineffective under applicable law, such -partial invalidity or ineffectiveness shall not invalidate the remainder -of the License, and in such case Affirmer hereby affirms that he or she -will not (i) exercise any of his or her remaining Copyright and Related -Rights in the Work or (ii) assert any associated claims and causes of -action with respect to the Work, in either case contrary to Affirmer's -express Statement of Purpose. - -4. Limitations and Disclaimers. - - a. No trademark or patent rights held by Affirmer are waived, abandoned, - surrendered, licensed or otherwise affected by this document. - b. Affirmer offers the Work as-is and makes no representations or - warranties of any kind concerning the Work, express, implied, - statutory or otherwise, including without limitation warranties of - title, merchantability, fitness for a particular purpose, non - infringement, or the absence of latent or other defects, accuracy, or - the present or absence of errors, whether or not discoverable, all to - the greatest extent permissible under applicable law. - c. Affirmer disclaims responsibility for clearing rights of other persons - that may apply to the Work or any use thereof, including without - limitation any person's Copyright and Related Rights in the Work. - Further, Affirmer disclaims responsibility for obtaining any necessary - consents, permissions or other rights required for any use of the - Work. - d. Affirmer understands and acknowledges that Creative Commons is not a - party to this document and has no duty or obligation with respect to - this CC0 or use of the Work. diff --git a/src/CLI/LicenseTemplates/EclipseV2.txt b/src/CLI/LicenseTemplates/EclipseV2.txt deleted file mode 100644 index e48e096..0000000 --- a/src/CLI/LicenseTemplates/EclipseV2.txt +++ /dev/null @@ -1,277 +0,0 @@ -Eclipse Public License - v 2.0 - - THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE - PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION - OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. - -1. DEFINITIONS - -"Contribution" means: - - a) in the case of the initial Contributor, the initial content - Distributed under this Agreement, and - - b) in the case of each subsequent Contributor: - i) changes to the Program, and - ii) additions to the Program; - where such changes and/or additions to the Program originate from - and are Distributed by that particular Contributor. A Contribution - "originates" from a Contributor if it was added to the Program by - such Contributor itself or anyone acting on such Contributor's behalf. - Contributions do not include changes or additions to the Program that - are not Modified Works. - -"Contributor" means any person or entity that Distributes the Program. - -"Licensed Patents" mean patent claims licensable by a Contributor which -are necessarily infringed by the use or sale of its Contribution alone -or when combined with the Program. - -"Program" means the Contributions Distributed in accordance with this -Agreement. - -"Recipient" means anyone who receives the Program under this Agreement -or any Secondary License (as applicable), including Contributors. - -"Derivative Works" shall mean any work, whether in Source Code or other -form, that is based on (or derived from) the Program and for which the -editorial revisions, annotations, elaborations, or other modifications -represent, as a whole, an original work of authorship. - -"Modified Works" shall mean any work in Source Code or other form that -results from an addition to, deletion from, or modification of the -contents of the Program, including, for purposes of clarity any new file -in Source Code form that contains any contents of the Program. Modified -Works shall not include works that contain only declarations, -interfaces, types, classes, structures, or files of the Program solely -in each case in order to link to, bind by name, or subclass the Program -or Modified Works thereof. - -"Distribute" means the acts of a) distributing or b) making available -in any manner that enables the transfer of a copy. - -"Source Code" means the form of a Program preferred for making -modifications, including but not limited to software source code, -documentation source, and configuration files. - -"Secondary License" means either the GNU General Public License, -Version 2.0, or any later versions of that license, including any -exceptions or additional permissions as identified by the initial -Contributor. - -2. GRANT OF RIGHTS - - a) Subject to the terms of this Agreement, each Contributor hereby - grants Recipient a non-exclusive, worldwide, royalty-free copyright - license to reproduce, prepare Derivative Works of, publicly display, - publicly perform, Distribute and sublicense the Contribution of such - Contributor, if any, and such Derivative Works. - - b) Subject to the terms of this Agreement, each Contributor hereby - grants Recipient a non-exclusive, worldwide, royalty-free patent - license under Licensed Patents to make, use, sell, offer to sell, - import and otherwise transfer the Contribution of such Contributor, - if any, in Source Code or other form. This patent license shall - apply to the combination of the Contribution and the Program if, at - the time the Contribution is added by the Contributor, such addition - of the Contribution causes such combination to be covered by the - Licensed Patents. The patent license shall not apply to any other - combinations which include the Contribution. No hardware per se is - licensed hereunder. - - c) Recipient understands that although each Contributor grants the - licenses to its Contributions set forth herein, no assurances are - provided by any Contributor that the Program does not infringe the - patent or other intellectual property rights of any other entity. - Each Contributor disclaims any liability to Recipient for claims - brought by any other entity based on infringement of intellectual - property rights or otherwise. As a condition to exercising the - rights and licenses granted hereunder, each Recipient hereby - assumes sole responsibility to secure any other intellectual - property rights needed, if any. For example, if a third party - patent license is required to allow Recipient to Distribute the - Program, it is Recipient's responsibility to acquire that license - before distributing the Program. - - d) Each Contributor represents that to its knowledge it has - sufficient copyright rights in its Contribution, if any, to grant - the copyright license set forth in this Agreement. - - e) Notwithstanding the terms of any Secondary License, no - Contributor makes additional grants to any Recipient (other than - those set forth in this Agreement) as a result of such Recipient's - receipt of the Program under the terms of a Secondary License - (if permitted under the terms of Section 3). - -3. REQUIREMENTS - -3.1 If a Contributor Distributes the Program in any form, then: - - a) the Program must also be made available as Source Code, in - accordance with section 3.2, and the Contributor must accompany - the Program with a statement that the Source Code for the Program - is available under this Agreement, and informs Recipients how to - obtain it in a reasonable manner on or through a medium customarily - used for software exchange; and - - b) the Contributor may Distribute the Program under a license - different than this Agreement, provided that such license: - i) effectively disclaims on behalf of all other Contributors all - warranties and conditions, express and implied, including - warranties or conditions of title and non-infringement, and - implied warranties or conditions of merchantability and fitness - for a particular purpose; - - ii) effectively excludes on behalf of all other Contributors all - liability for damages, including direct, indirect, special, - incidental and consequential damages, such as lost profits; - - iii) does not attempt to limit or alter the recipients' rights - in the Source Code under section 3.2; and - - iv) requires any subsequent distribution of the Program by any - party to be under a license that satisfies the requirements - of this section 3. - -3.2 When the Program is Distributed as Source Code: - - a) it must be made available under this Agreement, or if the - Program (i) is combined with other material in a separate file or - files made available under a Secondary License, and (ii) the initial - Contributor attached to the Source Code the notice described in - Exhibit A of this Agreement, then the Program may be made available - under the terms of such Secondary Licenses, and - - b) a copy of this Agreement must be included with each copy of - the Program. - -3.3 Contributors may not remove or alter any copyright, patent, -trademark, attribution notices, disclaimers of warranty, or limitations -of liability ("notices") contained within the Program from any copy of -the Program which they Distribute, provided that Contributors may add -their own appropriate notices. - -4. COMMERCIAL DISTRIBUTION - -Commercial distributors of software may accept certain responsibilities -with respect to end users, business partners and the like. While this -license is intended to facilitate the commercial use of the Program, -the Contributor who includes the Program in a commercial product -offering should do so in a manner which does not create potential -liability for other Contributors. Therefore, if a Contributor includes -the Program in a commercial product offering, such Contributor -("Commercial Contributor") hereby agrees to defend and indemnify every -other Contributor ("Indemnified Contributor") against any losses, -damages and costs (collectively "Losses") arising from claims, lawsuits -and other legal actions brought by a third party against the Indemnified -Contributor to the extent caused by the acts or omissions of such -Commercial Contributor in connection with its distribution of the Program -in a commercial product offering. The obligations in this section do not -apply to any claims or Losses relating to any actual or alleged -intellectual property infringement. In order to qualify, an Indemnified -Contributor must: a) promptly notify the Commercial Contributor in -writing of such claim, and b) allow the Commercial Contributor to control, -and cooperate with the Commercial Contributor in, the defense and any -related settlement negotiations. The Indemnified Contributor may -participate in any such claim at its own expense. - -For example, a Contributor might include the Program in a commercial -product offering, Product X. That Contributor is then a Commercial -Contributor. If that Commercial Contributor then makes performance -claims, or offers warranties related to Product X, those performance -claims and warranties are such Commercial Contributor's responsibility -alone. Under this section, the Commercial Contributor would have to -defend claims against the other Contributors related to those performance -claims and warranties, and if a court requires any other Contributor to -pay any damages as a result, the Commercial Contributor must pay -those damages. - -5. NO WARRANTY - -EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT -PERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN "AS IS" -BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR -IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF -TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR -PURPOSE. Each Recipient is solely responsible for determining the -appropriateness of using and distributing the Program and assumes all -risks associated with its exercise of rights under this Agreement, -including but not limited to the risks and costs of program errors, -compliance with applicable laws, damage to or loss of data, programs -or equipment, and unavailability or interruption of operations. - -6. DISCLAIMER OF LIABILITY - -EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT -PERMITTED BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS -SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST -PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE -EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - -7. GENERAL - -If any provision of this Agreement is invalid or unenforceable under -applicable law, it shall not affect the validity or enforceability of -the remainder of the terms of this Agreement, and without further -action by the parties hereto, such provision shall be reformed to the -minimum extent necessary to make such provision valid and enforceable. - -If Recipient institutes patent litigation against any entity -(including a cross-claim or counterclaim in a lawsuit) alleging that the -Program itself (excluding combinations of the Program with other software -or hardware) infringes such Recipient's patent(s), then such Recipient's -rights granted under Section 2(b) shall terminate as of the date such -litigation is filed. - -All Recipient's rights under this Agreement shall terminate if it -fails to comply with any of the material terms or conditions of this -Agreement and does not cure such failure in a reasonable period of -time after becoming aware of such noncompliance. If all Recipient's -rights under this Agreement terminate, Recipient agrees to cease use -and distribution of the Program as soon as reasonably practicable. -However, Recipient's obligations under this Agreement and any licenses -granted by Recipient relating to the Program shall continue and survive. - -Everyone is permitted to copy and distribute copies of this Agreement, -but in order to avoid inconsistency the Agreement is copyrighted and -may only be modified in the following manner. The Agreement Steward -reserves the right to publish new versions (including revisions) of -this Agreement from time to time. No one other than the Agreement -Steward has the right to modify this Agreement. The Eclipse Foundation -is the initial Agreement Steward. The Eclipse Foundation may assign the -responsibility to serve as the Agreement Steward to a suitable separate -entity. Each new version of the Agreement will be given a distinguishing -version number. The Program (including Contributions) may always be -Distributed subject to the version of the Agreement under which it was -received. In addition, after a new version of the Agreement is published, -Contributor may elect to Distribute the Program (including its -Contributions) under the new version. - -Except as expressly stated in Sections 2(a) and 2(b) above, Recipient -receives no rights or licenses to the intellectual property of any -Contributor under this Agreement, whether expressly, by implication, -estoppel or otherwise. All rights in the Program not expressly granted -under this Agreement are reserved. Nothing in this Agreement is intended -to be enforceable by any entity that is not a Contributor or Recipient. -No third-party beneficiary rights are created under this Agreement. - -Exhibit A - Form of Secondary Licenses Notice - -"This Source Code may also be made available under the following -Secondary Licenses when the conditions for such availability set forth -in the Eclipse Public License, v. 2.0 are satisfied: {name license(s), -version(s), and exceptions or additional permissions here}." - - Simply including a copy of this Agreement, including this Exhibit A - is not sufficient to license the Source Code under Secondary Licenses. - - If it is not possible or desirable to put the notice in a particular - file, then You may include the notice in a location (such as a LICENSE - file in a relevant directory) where a recipient would be likely to - look for such a notice. - - You may add additional accurate notices of copyright ownership. diff --git a/src/CLI/LicenseTemplates/GNUAGPLv3.txt b/src/CLI/LicenseTemplates/GNUAGPLv3.txt deleted file mode 100644 index 0ad25db..0000000 --- a/src/CLI/LicenseTemplates/GNUAGPLv3.txt +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - 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 . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/src/CLI/LicenseTemplates/GNUGPLv2.txt b/src/CLI/LicenseTemplates/GNUGPLv2.txt deleted file mode 100644 index d159169..0000000 --- a/src/CLI/LicenseTemplates/GNUGPLv2.txt +++ /dev/null @@ -1,339 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 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 General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. diff --git a/src/CLI/LicenseTemplates/GNUGPLv3.txt b/src/CLI/LicenseTemplates/GNUGPLv3.txt deleted file mode 100644 index 228f9b3..0000000 --- a/src/CLI/LicenseTemplates/GNUGPLv3.txt +++ /dev/null @@ -1,674 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. diff --git a/src/CLI/LicenseTemplates/GNULGPLv2_1.txt b/src/CLI/LicenseTemplates/GNULGPLv2_1.txt deleted file mode 100644 index 8000a6f..0000000 --- a/src/CLI/LicenseTemplates/GNULGPLv2_1.txt +++ /dev/null @@ -1,504 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 2.1, February 1999 - - Copyright (C) 1991, 1999 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the Lesser GPL. It also counts - as the successor of the GNU Library Public License, version 2, hence - the version number 2.1.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Lesser General Public License, applies to some -specially designated software packages--typically libraries--of the -Free Software Foundation and other authors who decide to use it. You -can use it too, but we suggest you first think carefully about whether -this license or the ordinary General Public License is the better -strategy to use in any particular case, based on the explanations below. - - When we speak of free software, we are referring to freedom of use, -not price. Our General Public Licenses are designed to make sure that -you have the freedom to distribute copies of free software (and charge -for this service if you wish); that you receive source code or can get -it if you want it; that you can change the software and use pieces of -it in new free programs; and that you are informed that you can do -these things. - - To protect your rights, we need to make restrictions that forbid -distributors to deny you these rights or to ask you to surrender these -rights. These restrictions translate to certain responsibilities for -you if you distribute copies of the library or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link other code with the library, you must provide -complete object files to the recipients, so that they can relink them -with the library after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - We protect your rights with a two-step method: (1) we copyright the -library, and (2) we offer you this license, which gives you legal -permission to copy, distribute and/or modify the library. - - To protect each distributor, we want to make it very clear that -there is no warranty for the free library. Also, if the library is -modified by someone else and passed on, the recipients should know -that what they have is not the original version, so that the original -author's reputation will not be affected by problems that might be -introduced by others. - - Finally, software patents pose a constant threat to the existence of -any free program. We wish to make sure that a company cannot -effectively restrict the users of a free program by obtaining a -restrictive license from a patent holder. Therefore, we insist that -any patent license obtained for a version of the library must be -consistent with the full freedom of use specified in this license. - - Most GNU software, including some libraries, is covered by the -ordinary GNU General Public License. This license, the GNU Lesser -General Public License, applies to certain designated libraries, and -is quite different from the ordinary General Public License. We use -this license for certain libraries in order to permit linking those -libraries into non-free programs. - - When a program is linked with a library, whether statically or using -a shared library, the combination of the two is legally speaking a -combined work, a derivative of the original library. The ordinary -General Public License therefore permits such linking only if the -entire combination fits its criteria of freedom. The Lesser General -Public License permits more lax criteria for linking other code with -the library. - - We call this license the "Lesser" General Public License because it -does Less to protect the user's freedom than the ordinary General -Public License. It also provides other free software developers Less -of an advantage over competing non-free programs. These disadvantages -are the reason we use the ordinary General Public License for many -libraries. However, the Lesser license provides advantages in certain -special circumstances. - - For example, on rare occasions, there may be a special need to -encourage the widest possible use of a certain library, so that it becomes -a de-facto standard. To achieve this, non-free programs must be -allowed to use the library. A more frequent case is that a free -library does the same job as widely used non-free libraries. In this -case, there is little to gain by limiting the free library to free -software only, so we use the Lesser General Public License. - - In other cases, permission to use a particular library in non-free -programs enables a greater number of people to use a large body of -free software. For example, permission to use the GNU C Library in -non-free programs enables many more people to use the whole GNU -operating system, as well as its variant, the GNU/Linux operating -system. - - Although the Lesser General Public License is Less protective of the -users' freedom, it does ensure that the user of a program that is -linked with the Library has the freedom and the wherewithal to run -that program using a modified version of the Library. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, whereas the latter must -be combined with the library in order to run. - - GNU LESSER GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library or other -program which contains a notice placed by the copyright holder or -other authorized party saying it may be distributed under the terms of -this Lesser General Public License (also called "this License"). -Each licensee is addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also combine or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (1) uses at run time a - copy of the library already present on the user's computer system, - rather than copying library functions into the executable, and (2) - will operate properly with a modified version of the library, if - the user installs one, as long as the modified version is - interface-compatible with the version that the work was made with. - - c) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - d) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - e) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the materials to be distributed need not include anything that is -normally distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties with -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Lesser General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 - USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random - Hacker. - - , 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! diff --git a/src/CLI/LicenseTemplates/MIT.txt b/src/CLI/LicenseTemplates/MIT.txt deleted file mode 100644 index 6254824..0000000 --- a/src/CLI/LicenseTemplates/MIT.txt +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) {} {} - -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/src/CLI/LicenseTemplates/MozillaV2.txt b/src/CLI/LicenseTemplates/MozillaV2.txt deleted file mode 100644 index d0a1fa1..0000000 --- a/src/CLI/LicenseTemplates/MozillaV2.txt +++ /dev/null @@ -1,373 +0,0 @@ -Mozilla Public License Version 2.0 -================================== - -1. Definitions --------------- - -1.1. "Contributor" - means each individual or legal entity that creates, contributes to - the creation of, or owns Covered Software. - -1.2. "Contributor Version" - means the combination of the Contributions of others (if any) used - by a Contributor and that particular Contributor's Contribution. - -1.3. "Contribution" - means Covered Software of a particular Contributor. - -1.4. "Covered Software" - means Source Code Form to which the initial Contributor has attached - the notice in Exhibit A, the Executable Form of such Source Code - Form, and Modifications of such Source Code Form, in each case - including portions thereof. - -1.5. "Incompatible With Secondary Licenses" - means - - (a) that the initial Contributor has attached the notice described - in Exhibit B to the Covered Software; or - - (b) that the Covered Software was made available under the terms of - version 1.1 or earlier of the License, but not also under the - terms of a Secondary License. - -1.6. "Executable Form" - means any form of the work other than Source Code Form. - -1.7. "Larger Work" - means a work that combines Covered Software with other material, in - a separate file or files, that is not Covered Software. - -1.8. "License" - means this document. - -1.9. "Licensable" - means having the right to grant, to the maximum extent possible, - whether at the time of the initial grant or subsequently, any and - all of the rights conveyed by this License. - -1.10. "Modifications" - means any of the following: - - (a) any file in Source Code Form that results from an addition to, - deletion from, or modification of the contents of Covered - Software; or - - (b) any new file in Source Code Form that contains any Covered - Software. - -1.11. "Patent Claims" of a Contributor - means any patent claim(s), including without limitation, method, - process, and apparatus claims, in any patent Licensable by such - Contributor that would be infringed, but for the grant of the - License, by the making, using, selling, offering for sale, having - made, import, or transfer of either its Contributions or its - Contributor Version. - -1.12. "Secondary License" - means either the GNU General Public License, Version 2.0, the GNU - Lesser General Public License, Version 2.1, the GNU Affero General - Public License, Version 3.0, or any later versions of those - licenses. - -1.13. "Source Code Form" - means the form of the work preferred for making modifications. - -1.14. "You" (or "Your") - means an individual or a legal entity exercising rights under this - License. For legal entities, "You" includes any entity that - controls, is controlled by, or is under common control with You. For - purposes of this definition, "control" means (a) the power, direct - or indirect, to cause the direction or management of such entity, - whether by contract or otherwise, or (b) ownership of more than - fifty percent (50%) of the outstanding shares or beneficial - ownership of such entity. - -2. License Grants and Conditions --------------------------------- - -2.1. Grants - -Each Contributor hereby grants You a world-wide, royalty-free, -non-exclusive license: - -(a) under intellectual property rights (other than patent or trademark) - Licensable by such Contributor to use, reproduce, make available, - modify, display, perform, distribute, and otherwise exploit its - Contributions, either on an unmodified basis, with Modifications, or - as part of a Larger Work; and - -(b) under Patent Claims of such Contributor to make, use, sell, offer - for sale, have made, import, and otherwise transfer either its - Contributions or its Contributor Version. - -2.2. Effective Date - -The licenses granted in Section 2.1 with respect to any Contribution -become effective for each Contribution on the date the Contributor first -distributes such Contribution. - -2.3. Limitations on Grant Scope - -The licenses granted in this Section 2 are the only rights granted under -this License. No additional rights or licenses will be implied from the -distribution or licensing of Covered Software under this License. -Notwithstanding Section 2.1(b) above, no patent license is granted by a -Contributor: - -(a) for any code that a Contributor has removed from Covered Software; - or - -(b) for infringements caused by: (i) Your and any other third party's - modifications of Covered Software, or (ii) the combination of its - Contributions with other software (except as part of its Contributor - Version); or - -(c) under Patent Claims infringed by Covered Software in the absence of - its Contributions. - -This License does not grant any rights in the trademarks, service marks, -or logos of any Contributor (except as may be necessary to comply with -the notice requirements in Section 3.4). - -2.4. Subsequent Licenses - -No Contributor makes additional grants as a result of Your choice to -distribute the Covered Software under a subsequent version of this -License (see Section 10.2) or under the terms of a Secondary License (if -permitted under the terms of Section 3.3). - -2.5. Representation - -Each Contributor represents that the Contributor believes its -Contributions are its original creation(s) or it has sufficient rights -to grant the rights to its Contributions conveyed by this License. - -2.6. Fair Use - -This License is not intended to limit any rights You have under -applicable copyright doctrines of fair use, fair dealing, or other -equivalents. - -2.7. Conditions - -Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted -in Section 2.1. - -3. Responsibilities -------------------- - -3.1. Distribution of Source Form - -All distribution of Covered Software in Source Code Form, including any -Modifications that You create or to which You contribute, must be under -the terms of this License. You must inform recipients that the Source -Code Form of the Covered Software is governed by the terms of this -License, and how they can obtain a copy of this License. You may not -attempt to alter or restrict the recipients' rights in the Source Code -Form. - -3.2. Distribution of Executable Form - -If You distribute Covered Software in Executable Form then: - -(a) such Covered Software must also be made available in Source Code - Form, as described in Section 3.1, and You must inform recipients of - the Executable Form how they can obtain a copy of such Source Code - Form by reasonable means in a timely manner, at a charge no more - than the cost of distribution to the recipient; and - -(b) You may distribute such Executable Form under the terms of this - License, or sublicense it under different terms, provided that the - license for the Executable Form does not attempt to limit or alter - the recipients' rights in the Source Code Form under this License. - -3.3. Distribution of a Larger Work - -You may create and distribute a Larger Work under terms of Your choice, -provided that You also comply with the requirements of this License for -the Covered Software. If the Larger Work is a combination of Covered -Software with a work governed by one or more Secondary Licenses, and the -Covered Software is not Incompatible With Secondary Licenses, this -License permits You to additionally distribute such Covered Software -under the terms of such Secondary License(s), so that the recipient of -the Larger Work may, at their option, further distribute the Covered -Software under the terms of either this License or such Secondary -License(s). - -3.4. Notices - -You may not remove or alter the substance of any license notices -(including copyright notices, patent notices, disclaimers of warranty, -or limitations of liability) contained within the Source Code Form of -the Covered Software, except that You may alter any license notices to -the extent required to remedy known factual inaccuracies. - -3.5. Application of Additional Terms - -You may choose to offer, and to charge a fee for, warranty, support, -indemnity or liability obligations to one or more recipients of Covered -Software. However, You may do so only on Your own behalf, and not on -behalf of any Contributor. You must make it absolutely clear that any -such warranty, support, indemnity, or liability obligation is offered by -You alone, and You hereby agree to indemnify every Contributor for any -liability incurred by such Contributor as a result of warranty, support, -indemnity or liability terms You offer. You may include additional -disclaimers of warranty and limitations of liability specific to any -jurisdiction. - -4. Inability to Comply Due to Statute or Regulation ---------------------------------------------------- - -If it is impossible for You to comply with any of the terms of this -License with respect to some or all of the Covered Software due to -statute, judicial order, or regulation then You must: (a) comply with -the terms of this License to the maximum extent possible; and (b) -describe the limitations and the code they affect. Such description must -be placed in a text file included with all distributions of the Covered -Software under this License. Except to the extent prohibited by statute -or regulation, such description must be sufficiently detailed for a -recipient of ordinary skill to be able to understand it. - -5. Termination --------------- - -5.1. The rights granted under this License will terminate automatically -if You fail to comply with any of its terms. However, if You become -compliant, then the rights granted under this License from a particular -Contributor are reinstated (a) provisionally, unless and until such -Contributor explicitly and finally terminates Your grants, and (b) on an -ongoing basis, if such Contributor fails to notify You of the -non-compliance by some reasonable means prior to 60 days after You have -come back into compliance. Moreover, Your grants from a particular -Contributor are reinstated on an ongoing basis if such Contributor -notifies You of the non-compliance by some reasonable means, this is the -first time You have received notice of non-compliance with this License -from such Contributor, and You become compliant prior to 30 days after -Your receipt of the notice. - -5.2. If You initiate litigation against any entity by asserting a patent -infringement claim (excluding declaratory judgment actions, -counter-claims, and cross-claims) alleging that a Contributor Version -directly or indirectly infringes any patent, then the rights granted to -You by any and all Contributors for the Covered Software under Section -2.1 of this License shall terminate. - -5.3. In the event of termination under Sections 5.1 or 5.2 above, all -end user license agreements (excluding distributors and resellers) which -have been validly granted by You or Your distributors under this License -prior to termination shall survive termination. - -************************************************************************ -* * -* 6. Disclaimer of Warranty * -* ------------------------- * -* * -* Covered Software is provided under this License on an "as is" * -* basis, without warranty of any kind, either expressed, implied, or * -* statutory, including, without limitation, warranties that the * -* Covered Software is free of defects, merchantable, fit for a * -* particular purpose or non-infringing. The entire risk as to the * -* quality and performance of the Covered Software is with You. * -* Should any Covered Software prove defective in any respect, You * -* (not any Contributor) assume the cost of any necessary servicing, * -* repair, or correction. This disclaimer of warranty constitutes an * -* essential part of this License. No use of any Covered Software is * -* authorized under this License except under this disclaimer. * -* * -************************************************************************ - -************************************************************************ -* * -* 7. Limitation of Liability * -* -------------------------- * -* * -* Under no circumstances and under no legal theory, whether tort * -* (including negligence), contract, or otherwise, shall any * -* Contributor, or anyone who distributes Covered Software as * -* permitted above, be liable to You for any direct, indirect, * -* special, incidental, or consequential damages of any character * -* including, without limitation, damages for lost profits, loss of * -* goodwill, work stoppage, computer failure or malfunction, or any * -* and all other commercial damages or losses, even if such party * -* shall have been informed of the possibility of such damages. This * -* limitation of liability shall not apply to liability for death or * -* personal injury resulting from such party's negligence to the * -* extent applicable law prohibits such limitation. Some * -* jurisdictions do not allow the exclusion or limitation of * -* incidental or consequential damages, so this exclusion and * -* limitation may not apply to You. * -* * -************************************************************************ - -8. Litigation -------------- - -Any litigation relating to this License may be brought only in the -courts of a jurisdiction where the defendant maintains its principal -place of business and such litigation shall be governed by laws of that -jurisdiction, without reference to its conflict-of-law provisions. -Nothing in this Section shall prevent a party's ability to bring -cross-claims or counter-claims. - -9. Miscellaneous ----------------- - -This License represents the complete agreement concerning the subject -matter hereof. If any provision of this License is held to be -unenforceable, such provision shall be reformed only to the extent -necessary to make it enforceable. Any law or regulation which provides -that the language of a contract shall be construed against the drafter -shall not be used to construe this License against a Contributor. - -10. Versions of the License ---------------------------- - -10.1. New Versions - -Mozilla Foundation is the license steward. Except as provided in Section -10.3, no one other than the license steward has the right to modify or -publish new versions of this License. Each version will be given a -distinguishing version number. - -10.2. Effect of New Versions - -You may distribute the Covered Software under the terms of the version -of the License under which You originally received the Covered Software, -or under the terms of any subsequent version published by the license -steward. - -10.3. Modified Versions - -If you create software not governed by this License, and you want to -create a new license for such software, you may create and use a -modified version of this License if you rename the license and remove -any references to the name of the license steward (except to note that -such modified license differs from this License). - -10.4. Distributing Source Code Form that is Incompatible With Secondary -Licenses - -If You choose to distribute Source Code Form that is Incompatible With -Secondary Licenses under the terms of this version of the License, the -notice described in Exhibit B of this License must be attached. - -Exhibit A - Source Code Form License Notice -------------------------------------------- - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at https://mozilla.org/MPL/2.0/. - -If it is not possible or desirable to put the notice in a particular -file, then You may include the notice in a location (such as a LICENSE -file in a relevant directory) where a recipient would be likely to look -for such a notice. - -You may add additional accurate notices of copyright ownership. - -Exhibit B - "Incompatible With Secondary Licenses" Notice ---------------------------------------------------------- - - This Source Code Form is "Incompatible With Secondary Licenses", as - defined by the Mozilla Public License, v. 2.0. diff --git a/src/CLI/LicenseTemplates/Unlicense.txt b/src/CLI/LicenseTemplates/Unlicense.txt deleted file mode 100644 index fdddb29..0000000 --- a/src/CLI/LicenseTemplates/Unlicense.txt +++ /dev/null @@ -1,24 +0,0 @@ -This is free and unencumbered software released into the public domain. - -Anyone is free to copy, modify, publish, use, compile, sell, or -distribute this software, either in source code form or as a compiled -binary, for any purpose, commercial or non-commercial, and by any -means. - -In jurisdictions that recognize copyright laws, the author or authors -of this software dedicate any and all copyright interest in the -software to the public domain. We make this dedication for the benefit -of the public at large and to the detriment of our heirs and -successors. We intend this dedication to be an overt act of -relinquishment in perpetuity of all present and future rights to this -software under copyright law. - -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 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. - -For more information, please refer to diff --git a/src/Core/Backend/Codegen/filler b/src/Core/Backend/Codegen/filler deleted file mode 100644 index e69de29..0000000 diff --git a/src/Core/Compiler.cpp b/src/Core/Compiler.cpp deleted file mode 100644 index 37a01d1..0000000 --- a/src/Core/Compiler.cpp +++ /dev/null @@ -1,78 +0,0 @@ -#include "Compiler.hpp" - -#include "Libraries/Asker/Asker.hpp" -#include "Libraries/Color/Color.hpp" -#include "Libraries/Json/Json.hpp" -#include "Libraries/Localization/Localization.hpp" - -Compiler::Compiler(const CompilationInput& input) { - program.input = input; - - lexer.errorManager = &errorManager; - parser.errorManager = &errorManager; - orchestrator.setCompiler(this); // it requires for internal project checks - semanticAnalysis.errorManager = &errorManager; -} - -void Compiler::check(bool jsonOutput) { - // TODO: Tolerate sourceFolder choice - // Parsing dependencies before getting started - std::vector files = program.input.files; - - for (const auto& [name, dependency] : program.input.dependencies) { - std::filesystem::path sourcePath = dependency.rootPath / dependency.sourceFolder; - for (const auto& file : std::filesystem::recursive_directory_iterator( sourcePath, std::filesystem::directory_options::skip_permission_denied)) { - if (file.is_regular_file() && file.path().extension() == ".nm") files.push_back(file.path()); - } - } - - // Parsing the project itself - for (const auto& file : files){ - // Lexer: breaks code down into tokens. - std::string source = readFile(file.string()); - std::vector tokens = lexer.tokenize(file.string()); - //lexer.printTokens(); - - // Parser: builds a module tree out of tokens - parser.parseModule(tokens, file.string()); - //parser.printModule(); - MemoryPtr tree = std::move(parser.moduleSource); - - // Adding modules to program's tree - if (!tree) std::println(std::cerr, "[Neoluma/check] An empty tree was found for: {}", file.string()); - if (tree) program.modules.push_back(std::move(tree)); - } - - // Orchestrator: stitches files together into a full program, used for Semantic Analysis and more. - program.namespaces = orchestrator.collectNamespaces(program.modules); - program.entryPoint = orchestrator.findEntryPoint(program.modules); - program.moduleInfos = orchestrator.resolveImports(program); - // /*std::println(std::cout, "=== ModuleId map ==="); - // for (const auto& info : infos){ - // std::println(std::cout, "[{}] file={}", info.id, info.module ? info.module->filePath : ""); - // std::println(std::cout, " deps={}", info.dependencies.size()); - // for (auto d : info.dependencies) std::println(std::cout, " -> {}", d.moduleId); - // }*/ - orchestrator.stitchProgram(program); - /*std::println(std::cout, "Entry module id: {}", program.entryModule); - std::println(std::cout, "Order:"); - for (auto id : program.order) { - std::println(std::cout, " {}", id); - }*/ - - // Semantic Analysis: Make sure the program runs logically correct, before turned into a machine code - semanticAnalysis.analyzeProgram(program); - - if (errorManager.hasErrors()) { - if (jsonOutput) { - std::println(std::cout, "{}", json::stringify(errorManager.toJson(), {.pretty = true, .emit_comments = false})); - } else { - errorManager.printErrors(); - std::println(std::cout, "{}{}{}", Color::TextHex("#ff5050"), Localization::translate("CLI.check.failed"), Color::Reset); - } - } else if (jsonOutput) { - std::println(std::cout, "{}", json::stringify(errorManager.toJson(), {.pretty = true, .emit_comments = false})); - } else { - std::println(std::cout, "{}{}{}", Color::TextHex("#75ff87"), Localization::translate("CLI.check.complete"), Color::Reset); - } -} diff --git a/src/Core/Compiler.hpp b/src/Core/Compiler.hpp deleted file mode 100644 index 42a8dfb..0000000 --- a/src/Core/Compiler.hpp +++ /dev/null @@ -1,93 +0,0 @@ -#pragma once -#include -#include - -#include "Frontend/Lexer/Lexer.hpp" -#include "Frontend/Parser/Parser.hpp" -#include "Extras/ErrorManager/ErrorManager.hpp" -#include "Frontend/SemanticAnalysis/SemanticAnalysis.hpp" -#include "Frontend/Orchestrator/Orchestrator.hpp" - -enum class OutputType { Executable, StaticLibrary, SharedLibrary, Object, IR, LLVM_IR, None }; - -// Compiler settings for the project tell the compiler what to set up before building -struct CompilerSettings { - /** - * @brief `Verbose` is an option that allows extra keywords, syntactic sugar. Not recommended for people who loves keeping shape of a language. Recommended for people who don't give a heck and love copypasting answers from StackOverflow. - * @param true - enables this option - * @param false - disables this option - */ - bool verbose = false; - /** - * @brief `Baremetal` is an option that toggles the ability to develop software for bare metal hardware. It disables platform-based ABI (including std) and compiles into binary. - * @param true - enables this option - * @param false - disables this option - */ - bool baremetal = false; - - struct Memory { - enum class MemoryOptions { None, Rusty, ARC, Default }; - - /** - * @brief `level` is an option of `Memory` struct that goes through types of Memory options and, depending on chosen option, will manage the memory in the application the preferred way. - * @param Default - enables default Garbage Collector (Java, C#, others) - * @param ARC - enables Automatic Reference Counter (Python, JS, others) - * @param Rusty - enables Borrow Checker (Rust) - * @param None - No memory management tools (C, C++, maybe others) - */ - MemoryOptions level = MemoryOptions::Default; - }; -}; - -struct DependencyInput { - std::filesystem::path rootPath; - std::filesystem::path sourceFolder = "src"; -}; - -struct CompilationInput { - OutputType targetOutput; - std::vector files; - std::map dependencies; - CompilerSettings settings; -}; - -// Program is a class that stores results of compilation here for easy access to all information -struct Program { - CompilationInput input; // Compilation data for the compiler - - // Parser result - std::vector> modules; // all files of the project - - // Orchestrator result - std::vector moduleInfos; - EntryPoint entryPoint; - std::vector order; - - // global namespaces for the entire program - std::unordered_map namespaces; -}; - -/** - * @brief Compiler is a general class that allows Neoluma compiler to turn source code into machine code. - */ -class Compiler { -public: - // Constructor - Compiler(const CompilationInput& input); - - // Functions - void compile(); // compiled way - void check(bool jsonOutput = false); - void run(); // interpreted way - - ErrorManager errorManager; - - // Data - Program program; -private: - // All parts of compiler - Lexer lexer; - Parser parser; - Orchestrator orchestrator; - SemanticAnalysis semanticAnalysis; -}; \ No newline at end of file diff --git a/src/Core/Extras/ErrorManager/ErrorManager.cpp b/src/Core/Extras/ErrorManager/ErrorManager.cpp deleted file mode 100644 index 1662b21..0000000 --- a/src/Core/Extras/ErrorManager/ErrorManager.cpp +++ /dev/null @@ -1,170 +0,0 @@ -#include "ErrorManager.hpp" -#include "../../../Libraries/Color/Color.hpp" -#include -#include -#include - -#include "HelperFunctions.hpp" -#include "Libraries/Localization/Localization.hpp" - -//void printSpanContext(const ErrorSpan& span, const ) - -void ErrorManager::printErrors() { - if (errors.empty()) return; - - // stores file sources as keys for easier context access - std::unordered_map fileCache; - - int errorCount = 0; - int warningCount = 0; - - for (const auto& e : errors) { - if (e.severity == ErrorSeverity::Error) errorCount++; - if (e.severity == ErrorSeverity::Warning) warningCount++; - - // Copies a new path, normalizes \\ into / in paths. yea we're fixing windows bad designs now. - String filePath = normalizePath(e.span.filePath); - - // read a file and cache it if it's not in fileCache - if (!filePath.empty() && !fileCache.contains(filePath)) - fileCache[filePath] = readFile(filePath); - - // Gets the line context - // From what i've checked it's guaranteed here for a file to be in vector. - std::istringstream srcStream(fileCache[filePath]); - String prevLine, line, errorLine, nextLine; - - int lineNumber = std::max(1, e.span.line); - int columnNumber = std::max(1, e.span.column); - int previousLine = lineNumber - 1; - int caretOffset = columnNumber - 1; // ^^^^^^^^^^ - - int lineNum = 1; - while (std::getline(srcStream, line)) { - if (lineNum == lineNumber) { - errorLine = line; - if (!std::getline(srcStream, nextLine)) nextLine.clear(); - break; - } - - prevLine = line; - lineNum++; - } - - // Error message (localized) - String msg = Localization::translatef(e.messageKey, e.messageArgs); - - // Header message - std::println("{}[{}] {} {}{}", std::move(formatColor(e.code)), formatCode(e.code), std::move(formatIcon(e.severity)), msg, Color::Reset); - // path:line:column - std::println("➡️ {}:{}:{}", e.span.filePath, lineNumber, columnNumber); - // Context - if (previousLine > 0) std::println("{:>3} | {}", previousLine, prevLine); - std::println("{:>3} | {}{}{}", lineNumber, std::move(Color::TextHex("#ff5050")), errorLine, Color::Reset); - std::println("{}| {}{} {}", std::string(lineNumber + 2, ' '), std::string(caretOffset, ' '), std::string(e.span.len + 2, '^'), msg); - if (!nextLine.empty()) std::println("{:>3} | {}", lineNumber + 1, nextLine); - // Notes - for (const auto& note : e.notes) { - String noteMsg = Localization::translatef(note.messageKey, note.messageArgs); - std::println("{}ℹ️ {}: {}", Color::TextHex("#46b0ba"), Localization::translate("ErrorManager.note"), noteMsg); - - String notePrevLine, noteLine, noteErrorLine, noteNextLine; - int noteLineNumber = std::max(1, note.span.line); - int noteColumnNumber = std::max(1, note.span.column); - int notePreviousLine = noteLineNumber - 1; - int noteCaretOffset = noteColumnNumber - 1; - - int noteLineNum = 1; - while (std::getline(srcStream, noteLine)) { - if (noteLineNum == noteLineNumber) { - noteErrorLine = noteLine; - if (!std::getline(srcStream, noteNextLine)) noteNextLine.clear(); - break; - } - - notePrevLine = noteLine; - noteLineNum++; - } - - if (notePreviousLine > 0) std::println("{:>3} | {}", notePreviousLine, notePrevLine); - std::println("{:>3} | {}{}{}", noteLineNumber, std::move(Color::TextHex("#ff5050")), noteErrorLine, Color::Reset); - std::println("{}| {}{} {}", std::string(noteLineNumber + 2, ' '), std::string(noteCaretOffset, ' '), std::string(note.span.len + 2, '^'), noteMsg); - if (!nextLine.empty()) std::println("{:>3} | {}", noteLineNumber + 1, noteNextLine); - } - // Hint - if (!e.hintKey.empty()) std::println(std::cout, "{}{}{}\n", std::move(Color::TextHex("#f6ff75")), formatStr(Localization::translate("ErrorManager.hint"), Localization::translatef(e.hintKey, e.hintArgs)), Color::Reset); - } - - if (errorCount > 0) std::println(std::cout, "{}{}{}", Color::TextHex("#ff5050"), Localization::translatef("ErrorManager.errorsFound", {std::to_string(errors.size())}), Color::Reset); - if (warningCount > 0) std::println(std::cout, "{}{}{}", Color::TextHex("#f6ff75"), Localization::translatef("ErrorManager.warningsFound", {std::to_string(errors.size())}), Color::Reset); -} - -String ErrorManager::formatCode(ErrorCode code){ - if (optionIs(code)) return formatStr("NSyE{}", (int)getOption(code)+1); - if (optionIs(code)) return formatStr("NAnE{}", (int)getOption(code)+1); - if (optionIs(code)) return formatStr("NPrE{}", (int)getOption(code)+1); - if (optionIs(code)) return formatStr("NCoE{}", (int)getOption(code)+1); - if (optionIs(code)) return formatStr("NRuE{}", (int)getOption(code)+1); - return "N??E?"; -} - -String ErrorManager::formatColor(ErrorCode code) { - if (optionIs(code)) return Color::TextHex("#ff5050"); - if (optionIs(code)) return Color::TextHex("#ff9f40"); - if (optionIs(code)) return Color::TextHex("#00bfff"); - if (optionIs(code)) return Color::TextHex("#ff75d7"); - if (optionIs(code)) return Color::TextHex("#ffa500"); - return Color::TextHex("#4A2BD6"); -} - -String ErrorManager::formatIcon(ErrorSeverity severity) { - switch (severity) { - case ErrorSeverity::Error: return "❌"; - case ErrorSeverity::Warning: return "⚠️"; - } - return "❔"; -} - -String ErrorManager::formatSeverity(ErrorSeverity severity) { - switch (severity) { - case ErrorSeverity::Error: return "error"; - case ErrorSeverity::Warning: return "warning"; - } - return "???"; -} - -// TODO: this clanker made solution should be begone -json::Value ErrorManager::toJson() const { - json::Object root; - root.emplace_back("status", hasErrors() ? json::Value("ok") : json::Value("error")); - - json::Array errorArray; - errorArray.reserve(errors.size()); - - for (const auto& error : errors) { - json::Object item; - item.emplace_back("severity", formatSeverity(error.severity)); - item.emplace_back("error_code", formatCode(error.code)); - item.emplace_back("file", error.span.filePath); - item.emplace_back("line", (std::int64_t)error.span.line); - item.emplace_back("column", (std::int64_t)error.span.column); - item.emplace_back("length", (std::int64_t)error.span.len); - item.emplace_back("message_key", error.messageKey); - item.emplace_back("message", Localization::translatef(error.messageKey, error.messageArgs)); - item.emplace_back("hint_key", error.hintKey); - item.emplace_back("hint", error.hintKey.empty() ? json::Value("") : json::Value(Localization::translatef(error.hintKey, error.hintArgs))); - - json::Array messageArgs; - for (const auto& arg : error.messageArgs) messageArgs.emplace_back(arg); - item.emplace_back("message_args", std::move(messageArgs)); - - json::Array hintArgs; - for (const auto& arg : error.hintArgs) hintArgs.emplace_back(arg); - item.emplace_back("hint_args", std::move(hintArgs)); - - errorArray.emplace_back(std::move(item)); - } - - root.emplace_back("Errors", std::move(errorArray)); - return json::Value(std::move(root)); -} diff --git a/src/Core/Extras/ErrorManager/ErrorManager.hpp b/src/Core/Extras/ErrorManager/ErrorManager.hpp deleted file mode 100644 index 6e41404..0000000 --- a/src/Core/Extras/ErrorManager/ErrorManager.hpp +++ /dev/null @@ -1,233 +0,0 @@ -#pragma once -#include - -#include "Libraries/Json/Json.hpp" -#include "HelperFunctions.hpp" - -// NSyE{x} -enum struct SyntaxErrors { - UnexpectedToken, - MissingToken, - InvalidStatement, - UnterminatedString, - UnterminatedComment, - InvalidNumberFormat, - UnexpectedEndOfFile, - MismatchedBrackets, -}; - -// NAnE{x} -enum struct AnalysisErrors { - // Variables & Scope - UndefinedVariable, - RedefinedVariable, - UninitializedVariable, - ConstantReassignment, - VariableOutOfScope, - ShadowedVariable, - - // Functions - FunctionMismatch, - UndefinedFunction, - WrongArgumentCount, - MissingRequiredParameter, - DuplicateParameterName, - InvalidParameterOrder, - MissingReturnStatement, - ReturnOutsideFunction, - - // Classes & OOP - UndefinedMember, - CircularInheritance, - InvalidConstructor, - MissingSuperCall, - InvalidSuperCall, - AccessViolation, - InvalidOverride, - OverrideSignatureMismatch, - - // Modifiers & Decorators - InvalidModifierUsage, - ConflictingModifiers, - DecoratorMisuse, - UndefinedDecorator, - DecoratorOnInvalidTarget, - DecoratorArgumentMismatch, - MultipleEntryPoints, - NoEntryPoints, - - // Control Flow - BreakOutsideLoop, - ContinueOutsideLoop, - UnreachableCode, - DuplicateCaseValue, - CaseTypeMismatch, - - // Interfaces & Enums - InterfaceNotImplemented, - InterfaceSignatureMismatch, - DuplicateEnumMember, - - // Lambdas & Closures - InvalidCapture, - ModifyingCapturedConst, - - // Special Features - AwaitOutsideAsync, - YieldOutsideGenerator, - - // Assignment - AssignmentToNonLValue, - - // Core Type Errors - TypeMismatch, - UnknownType, - InvalidCast, - LiteralOverflow, - - // Operations - AssignmentTypeMismatch, - BinaryOperationTypeMismatch, - UnaryOperationTypeMismatch, - ReturnTypeMismatch, - ArgumentTypeMismatch, - - // Nullable - NullAssignmentToNonNullable, - NullableAccessWithoutCheck, - - // Collections - ArrayElementTypeMismatch, - SetDuplicateValue, - DictKeyTypeMismatch, - DictValueTypeMismatch, - InvalidIndexType, - IndexingNonIndexable, - - // Result Type - ResultUnwrapWithoutCheck, - - // Member Access - MemberAccessOnNonObject, - MemberAccessOnNullable, - - // Inference - TypeInferenceFailed, - AmbiguousType, -}; - -// NPrE{x} -enum struct PreprocessorErrors { - // Import - ImportNotFound, - CircularImport, - ImportAliasConflict, - InvalidImportPath, - ForeignImportWithoutLangpack, - - // Macro - MacroError, - UndefinedMacro, - MacroExpansionError, - - // Directive - InvalidDirective, - UnsafeWithoutDirective, - BaremetalWithoutDirective, - ConflictingDirectives, - DirectiveInWrongContext, - - // ??? - InvalidConsoleArgument -}; - -//NCoE{x} -enum struct CodegenErrors { - LLVMGenerationError, - UnsupportedFeature, - OptimizationFailure, - LinkageError, - TargetNotSupported, -}; - -//NRuE{x} -enum struct RuntimeErrors { - DivisionByZero, - NullReference, - IndexOutOfBounds, - FloatingPointError, - IntegerOverflow, - UninitializedVariableAccess, - KeyNotFound, - StackOverflow, - UnhandledError, -}; - -enum struct ErrorSeverity { - Error, - Warning, -}; - -using ErrorCode = Option; - -struct ErrorSpan { - String filePath; - int len = 0; - int line = 0; - int column = 1; - - ErrorSpan(String filePath, String value, int line, int column): filePath(std::move(filePath)), len((int)std::move(value).length()), line(line), column(column) {}; -}; - -// Additional context related to an error or warning. -struct ErrorNote { - ErrorSpan span; - String messageKey; - Array messageArgs; -}; - -struct Error { - ErrorSeverity severity; - ErrorCode code; - ErrorSpan span; - - String messageKey; // Message explaining what's wrong, takes localization key - Array messageArgs; // Arguments to make message more precise - String hintKey; // Hint to fix the error, takes localization key - Array hintArgs;// Arguments to make hints more precise - - Array notes; - - Error(ErrorSeverity severity, ErrorCode code, ErrorSpan span, String messageKey, Array messageArgs = {}, - String hintKey = "", Array hintArgs = {}, Array notes = {}) : severity(severity), - code(std::move(code)), span(std::move(span)), messageKey(std::move(messageKey)), messageArgs(std::move(messageArgs)), - hintKey(std::move(hintKey)), hintArgs(std::move(hintArgs)), notes(std::move(notes)) {} -}; - -class ErrorManager { -public: - void addError(ErrorCode code, ErrorSpan span, String messageKey, Array messageArgs = {}, String hintKey = "", - Array hintArgs = {}, Array notes = {}) { errors.push_back(Error{ErrorSeverity::Error, code, span, - messageKey, messageArgs, hintKey, hintArgs, notes});} - - void addWarning(ErrorCode code, ErrorSpan span, String messageKey, Array messageArgs = {}, String hintKey = "", - Array hintArgs = {}, Array notes = {}) { errors.push_back(Error{ErrorSeverity::Warning, code, span, - messageKey, messageArgs, hintKey, hintArgs, notes}); } - - [[nodiscard]] bool hasErrors() const { - for (const auto& error : errors) if (error.severity == ErrorSeverity::Error) return true; - return false; - } - [[nodiscard]] bool hasWarnings() const { - for (const auto& error : errors) if (error.severity == ErrorSeverity::Warning) return true; - return false; - } - void printErrors(); -private: - Array errors; - static String formatCode(ErrorCode code); - static String formatColor(ErrorCode code); - static String formatIcon(ErrorSeverity severity); - static String formatSeverity(ErrorSeverity severity); - json::Value toJson() const; -}; diff --git a/src/Core/Extras/LangPacks/filler b/src/Core/Extras/LangPacks/filler deleted file mode 100644 index e69de29..0000000 diff --git a/src/Core/Extras/ProjectManager/ProjectManager.hpp b/src/Core/Extras/ProjectManager/ProjectManager.hpp deleted file mode 100644 index 8be503a..0000000 --- a/src/Core/Extras/ProjectManager/ProjectManager.hpp +++ /dev/null @@ -1,52 +0,0 @@ -#pragma once - -#include -#include - -#include "Core/Compiler.hpp" - -struct PlatformTarget { - enum class Platform { Windows, Linux, MacOS, iOS, Android, Other }; - Platform platform; - std::string arch; // x86_64, arm64, wasm32 - - std::string toString() const { - std::string s = arch + "-"; - - switch (platform) { - case Platform::Windows: s += "windows"; break; - case Platform::Linux: s += "linux"; break; - case Platform::MacOS: s += "macos"; break; - case Platform::iOS: s += "ios"; break; - case Platform::Android: s += "android"; break; - default: s += "unknown"; break; - } - - return s; - } -}; - -enum class License { MIT, Apache, GPL2, GPL3, BSD2, BSD3, Boost, CC0, Eclipse, AGPL, LGPL, Mozilla, Unlicense, Custom }; - -using ProjectSettingValue = std::variant; - -// ProjectConfig is a struct that allows me to determine project structure. -struct ProjectConfig { - std::string name = "Untitled Project"; - std::string version = "1.0.0"; - std::vector author = { "Untitled Author" }; - std::vector targets; - License license = License::MIT; - OutputType output = OutputType::Executable; - std::string sourceFolder = "src/"; - std::string buildFolder = "build/"; - std::map dependencies; - std::map tasks; - std::map tests; - std::map languagePacks; - - //CompilerSettings settings; - std::map compilerSettings; - std::vector filesList; // List of files inside the project to feed to compiler. - std::string sourcePath; // Absolute path to locate the project -}; \ No newline at end of file diff --git a/src/Core/Frontend/Lexer/Lexer.cpp b/src/Core/Frontend/Lexer/Lexer.cpp deleted file mode 100644 index 85dff42..0000000 --- a/src/Core/Frontend/Lexer/Lexer.cpp +++ /dev/null @@ -1,275 +0,0 @@ -#include "Lexer.hpp" -#include "../Token.hpp" - -#include -#include -#include -#include - -#include "HelperFunctions.hpp" - -// ==== Main ==== -std::vector Lexer::tokenize(const std::string& filePath) { - tokens.clear(); - this->source = readFile(filePath); - this->filePath = filePath; - pos = 0; line = 1; column = 1; - - while (!isAtEnd()) { - char c = curChar(); - - if (c=='\n') { - const int sl = line; const int sc = column; - move(); - tokens.push_back(Token{TokenType::Delimeter, "\\n", filePath, sl, sc}); - } - else if (isspace(c)) move(); - else if (isalpha(c) || c == '_') parseIK(); - else if (isdigit(c)) parseNumber(); - else if (c == '"') parseString(); - else if (c == '/' && pos + 1 < this->source.size() && (this->source[pos+1] == '/' || this->source[pos+1] == '*')) skipComment(); - else if (std::string("+-*/%^=<>!&|?~").find(c) != std::string::npos) parseOperator(); - else if (std::string("(){};:,.[]").find(c) != std::string::npos) parseDelimeter(); - else if (c == '#') parsePreprocessor(); - else if (c == '@') parseDecorator(); - else { - std::string unknown(1, move()); - auto tok = Token{TokenType::Unknown, unknown, filePath, line, column}; - unsigned char uc = (unsigned char)c; - if (uc > 127) { - while (!isAtEnd() && (unsigned char)curChar() >= 128 && (unsigned char)curChar() < 192) move(); - } - errorManager->addError( - ErrorType::Syntax, - SyntaxErrors::UnexpectedToken, - ErrorSpan{filePath, tok.value, tok.line, tok.column}, - "ErrorManager.Syntax.UnexpectedToken.message", {tok.value}, - "ErrorManager.Syntax.UnexpectedToken.hint"); - tokens.push_back(tok); - } - } - - tokens.push_back(Token{TokenType::EndOfFile, "", filePath, line, column}); - return tokens; -} - -// ==== Helpers ==== - -char Lexer::curChar() const { return isAtEnd() ? '\0' : source[pos]; } -char Lexer::move() { - char c = source[pos++]; - - if (c=='\n') { - line++; - column = 1; - } else column++; - - return c; -} - -bool Lexer::isAtEnd() const { return pos >= source.size(); } - -// ==== Parsing functions ==== -void Lexer::parseIK() { - const int sl = line; const int sc = column; - std::string word; - - while (!isAtEnd() && (isalnum(curChar()) || curChar() == '_')) word += move(); - - if (km.find(word) != km.end()) tokens.push_back(Token{TokenType::Keyword, word, filePath, sl, sc}); - else if (word == "null") tokens.push_back(Token{TokenType::Null, word, filePath, sl, sc}); - else if (om.find(word) != om.end()) tokens.push_back(Token{TokenType::Operator, word, filePath, sl, sc}); - else tokens.push_back(Token{TokenType::Identifier, word, filePath, sl, sc}); -} -void Lexer::parseNumber() -{ - const int sl = line; const int sc = column; - std::string number; - - while (!isAtEnd() && isdigit(curChar())) number += move(); - - if (!isAtEnd() && curChar() == '.') - { - number += move(); - - if (isAtEnd() || !isdigit(curChar())) { - errorManager->addError(ErrorType::Syntax, SyntaxErrors::InvalidNumberFormat, - ErrorSpan{filePath, number, sl, sc}, - "ErrorManager.Syntax.InvalidNumberFormat.message", {number}, - "ErrorManager.Syntax.InvalidNumberFormat.hint"); - tokens.push_back(Token{TokenType::Number, number, filePath, sl, sc}); - return; - } - while (!isAtEnd() && isdigit(curChar())) number += move(); - } - - if (!isAtEnd() && (curChar() == 'e' || curChar() == 'E')) { - number += move(); - - if (!isAtEnd() && (curChar() == '+' || curChar() == '-')) number += move(); - - if (isAtEnd() || !isdigit(curChar())) { - errorManager->addError(ErrorType::Syntax, SyntaxErrors::InvalidNumberFormat, - ErrorSpan{filePath, number, sl, sc}, - "ErrorManager.Syntax.InvalidNumberFormat.message", {number}, - "ErrorManager.Syntax.InvalidNumberFormat.hint"); - tokens.push_back(Token{TokenType::Number, number, filePath, sl, sc}); - return; - } - while (!isAtEnd() && isdigit(curChar())) number += move(); - } - - tokens.push_back(Token{TokenType::Number, number, filePath, sl, sc}); -} -void Lexer::parseString() { - const int sl = line; const int sc = column; - /* hardest thing to make. strings in neoluma can be multiline, - have f-strings (variables inside ${}) inside them and support \n \t or anything i forgor. - */ - - move(); - std::string value; - bool esc = false; // multipurpose \n stuff checker.. - bool closedStr = false; - - while (!isAtEnd()) { - char c = curChar(); - if (esc) { - switch (c) { - case 'n': value += '\n'; break; - case 't': value += '\t'; break; - case '\\': value += '\\'; break; - case '"': value += '"'; break; - default: - errorManager->addError(ErrorType::Syntax, SyntaxErrors::UnexpectedToken, - ErrorSpan{ filePath, formatStr("\\{}",c), line, column}, - "ErrorManager.Syntax.UnexpectedToken.message", {formatStr("\\{}",c)}, - "ErrorManager.Syntax.UnexpectedToken.hint"); - value += c; - break; - } - esc = false; - } - else if (c == '\\') esc = true; - else if (c == '"') { - move(); - closedStr = true; - break; - } - else value += c; - - move(); - } - if (!closedStr){ - errorManager->addError(ErrorType::Syntax, SyntaxErrors::UnterminatedString, - ErrorSpan{filePath, "\"", line, column}, - "ErrorManager.Syntax.UnterminatedString.message"); - return; - } - tokens.push_back(Token{TokenType::String, value, filePath, sl, sc}); -} -void Lexer::parseOperator() { - const int sl = line; const int sc = column; - std::string op; - op += move(); - - if (!isAtEnd()) { - std::string twoChar = op + curChar(); - if (om.find(twoChar) != om.end()) - op += move(); - } - tokens.push_back(Token{TokenType::Operator, op, filePath, sl, sc}); -} -void Lexer::parseDelimeter() { - const int sl = line; const int sc = column; - std::string delimeter; - delimeter += move(); - - if (dm.find(delimeter) != dm.end()) tokens.push_back(Token{TokenType::Delimeter, delimeter, filePath, sl, sc}); - else { - errorManager->addError( - ErrorType::Syntax, - SyntaxErrors::UnexpectedToken, - ErrorSpan{filePath, delimeter, sl, sc}, - "ErrorManager.Syntax.UnexpectedToken.message", {delimeter}, - "ErrorManager.Syntax.UnexpectedToken.hint"); - tokens.push_back(Token{TokenType::Unknown, delimeter, filePath, sl, sc}); - } -} -void Lexer::parsePreprocessor() { - const int sl = line; const int sc = column; - move(); - std::string word; - - while (!isAtEnd() && (isalpha(curChar()) || curChar() == '_')) word += move(); - - if (pm.find(word) != pm.end()) tokens.push_back(Token{TokenType::Preprocessor, word, filePath, sl, sc}); - else { - errorManager->addError( - ErrorType::Preprocessor, - PreprocessorErrors::InvalidDirective, - ErrorSpan{filePath, '#'+word, sl, sc}, - "ErrorManager.Preprocessor.InvalidDirective.message", {"#"+word}, - "ErrorManager.Preprocessor.InvalidDirective.hint"); - tokens.push_back(Token{TokenType::Unknown, "#" + word, filePath, sl, sc}); - } -} -void Lexer::parseDecorator() { - const int sl = line; const int sc = column; - move(); - std::string word; - - while (!isAtEnd() && (isalpha(curChar()) || curChar() == '_')) word += move(); - - tokens.push_back(Token{TokenType::Decorator, word, filePath, sl, sc}); -} -void Lexer::skipComment() { - const int sl = line; const int sc = column; - - // apparently if i don't do this check im gonna regret it - if (isAtEnd()) { - move(); - // single '/' at EOF - treat as operator - tokens.push_back(Token{TokenType::Operator, "/", filePath, sl, sc}); - return; - } - - // Single-line comment - if (source[pos] == '/' && source[pos+1] == '/') { - move(); // '/' - move(); // '/' - while (!isAtEnd() && curChar() != '\n') move(); - if (curChar() == '\n') move(); - return; - } - - // Block comment '/* ... */' - if (source[pos] == '/' && source[pos+1] == '*') { - move(); // '/' - move(); // '*' - while (!isAtEnd()) { - if (curChar() == '*' && (pos + 1 < source.size()) && source[pos + 1] == '/') { - move(); // '*' - move(); // '/' - return; - } - move(); // \n_terminator3000 - } - // Unterminated block comment - errorManager->addError(ErrorType::Syntax, SyntaxErrors::UnterminatedComment, - ErrorSpan{filePath, formatStr("{}{}", source[pos - 2], source[pos - 1]), sl, sc}, - "ErrorManager.Syntax.UnterminatedComment.message", {}, - "Close with */"); - return; - } - - // Not actually a comment sequence; treat as operator - move(); - tokens.push_back(Token{TokenType::Operator, "/", filePath, sl, sc}); -} - -void Lexer::printTokens() const { - std::println("=== Lexer Output ({}) ===", filePath); - for (const auto& token : tokens) std::cout << token.toStr(); - std::println("===================="); -} \ No newline at end of file diff --git a/src/Core/Frontend/Lexer/Lexer.hpp b/src/Core/Frontend/Lexer/Lexer.hpp deleted file mode 100644 index 88c04f3..0000000 --- a/src/Core/Frontend/Lexer/Lexer.hpp +++ /dev/null @@ -1,43 +0,0 @@ -#pragma once - -#include -#include -#include "../Token.hpp" -#include "Core/Extras/ErrorManager/ErrorManager.hpp" - - -class Lexer { -public: - std::vector tokenize(const std::string& filePath); - void printTokens() const; // Debug command to check tokens correctness - - // ErrorManager is used to report errors - ErrorManager* errorManager = nullptr; -private: - std::vector tokens; - - std::string source; - size_t pos = 0; - std::string filePath; - int line = 1; - int column = 1; - std::unordered_map om = getOperatorMap(); - std::unordered_map dm = getDelimeterMap(); - std::unordered_map pm = getPreprocessorMap(); - std::unordered_map km = getKeywordMap(); - - // Helpers - char curChar() const; - char move(); - bool isAtEnd() const; - - // Parsers - void parseIK(); // Parse identifier or keyword - void parseNumber(); - void parseString(); - void parseOperator(); - void parseDelimeter(); - void parsePreprocessor(); - void parseDecorator(); - void skipComment(); -}; diff --git a/src/Core/Frontend/Nodes.cpp b/src/Core/Frontend/Nodes.cpp deleted file mode 100644 index 5f81c74..0000000 --- a/src/Core/Frontend/Nodes.cpp +++ /dev/null @@ -1,612 +0,0 @@ -// nodes.cpp -// note from tsuki: this is tf2 coconut of this entire project. if you delete it -// the entire project will blow tf up. don't delete it. -// xD /jk -// -/* - * Note: this code is AI-generated. I didn't want to repetitively sit for hours trying to make a - * nice debug output tree. Nobody's gonna use this anyway unless for dev purposes like me, who cares?! -*/ -#include "Nodes.hpp" - -#include -#include -#include -#include - -ASTNode::~ASTNode() = default; - -// Pure-virtual can still have a body. -// If you get this output it means you screwed up -tsuki -std::string ASTNode::toString(int indent) const { return std::string(indent, ' ') + ""; } - -namespace { - -// ---------- tiny formatting helpers ---------- -inline std::string ind(int n) { return std::string(n, ' '); } -inline const char* b2s(bool v) { return v ? "true" : "false"; } - -static std::string modifierToString(ASTModifierType modifier) { - switch (modifier) { - case ASTModifierType::Public: return "Public"; - case ASTModifierType::Private: return "Private"; - case ASTModifierType::Protected: return "Protected"; - case ASTModifierType::Static: return "Static"; - case ASTModifierType::Const: return "Const"; - case ASTModifierType::Override: return "Override"; - case ASTModifierType::Async: return "Async"; - case ASTModifierType::Debug: return "Debug"; - default: return "Unknown"; - } -} - -static std::string importTypeToString(ASTImportType importType) { - switch (importType) { - case ASTImportType::Native: return "Native"; - case ASTImportType::Relative: return "Relative"; - case ASTImportType::Foreign: return "Foreign"; - case ASTImportType::ForeignRelative: return "ForeignRelative"; - default: return "Unknown"; - } -} - -static std::string directiveToString(ASTPreprocessorDirectiveType directive) { - switch (directive) { - case ASTPreprocessorDirectiveType::Import: return "Import"; - case ASTPreprocessorDirectiveType::Unsafe: return "Unsafe"; - case ASTPreprocessorDirectiveType::Macro: return "Macro"; - case ASTPreprocessorDirectiveType::None: return "None"; - default: return "Unknown"; - } -} - -// ---- Header building ---- -// Keep base fields minimal: line/column only if not 0:0, filePath only if non-empty, value only if non-empty. -static void appendBaseHeaderFields(std::vector>& fields, const ASTNode& n) { - if (!(n.line == 0 && n.column == 0)) { - fields.emplace_back("line", std::format("{}", n.line)); - fields.emplace_back("column", std::format("{}", n.column)); - } - if (!n.filePath.empty()) { - fields.emplace_back("filePath", n.filePath); - } - if (!n.value.empty()) { - fields.emplace_back("value", n.value); - } -} - -static std::string makeHeader(const std::string& nodeName, - const std::vector>& fields) { - if (fields.empty()) return nodeName; - - std::string out = nodeName; - out += "("; - for (size_t i = 0; i < fields.size(); ++i) { - out += std::format("{}: {}", fields[i].first, fields[i].second); - if (i + 1 < fields.size()) out += ", "; - } - out += ")"; - return out; -} - -// ---- printing fields in body ---- -template -static void appendPtrField(std::string& out, const char* name, const TPtr& p, int indent) { - if (!p) { - out += std::format("{}{}: null\n", ind(indent), name); - return; - } - out += std::format("{}{}:\n", ind(indent), name); - out += p->toString(indent + 2); - out += "\n"; -} - -template -static void appendPtrVec(std::string& out, const char* name, const TPtrVec& vec, int indent) { - if (vec.empty()) { - out += std::format("{}{}: []\n", ind(indent), name); - return; - } - - out += std::format("{}{}: [\n", ind(indent), name); - for (const auto& p : vec) { - if (p) out += p->toString(indent + 2); - else out += ind(indent + 2) + "null"; - out += "\n"; - } - out += std::format("{}]\n", ind(indent)); -} - -} // namespace - -// -------------------- leaf / basic -------------------- - -std::string LiteralNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); // includes value if not empty - return std::format("{}{}", ind(indent), makeHeader("Literal", hdr)); -} - -std::string VariableNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - hdr.emplace_back("varName", varName); - return std::format("{}{}", ind(indent), makeHeader("Variable", hdr)); -} - -// -------------------- expressions -------------------- - -std::string AssignmentNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - hdr.emplace_back("op", op); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("Assignment", hdr)); - appendPtrField(out, "variable", variable, indent + 2); - appendPtrField(out, "value", value, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string MemberAccessNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("MemberAccess", hdr)); - appendPtrField(out, "parent", parent, indent + 2); - appendPtrField(out, "val", val, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string BinaryOperationNode::toString(int indent) const { - // operator stored in base `value` - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("BinaryOperation", hdr)); - appendPtrField(out, "leftOperand", leftOperand, indent + 2); - appendPtrField(out, "rightOperand", rightOperand, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string RawTypeNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("RawType", hdr)); - appendPtrField(out, "varType", varType, indent + 2); - appendPtrField(out, "varSize", varSize, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string UnaryOperationNode::toString(int indent) const { - // operator stored in base `value` - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("UnaryOperation", hdr)); - appendPtrField(out, "operand", operand, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string CallExpressionNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("CallExpression", hdr)); - appendPtrField(out, "callee", callee, indent + 2); - appendPtrVec(out, "arguments", arguments, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string LambdaNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("Lambda", hdr)); - appendPtrVec(out, "params", params, indent + 2); - appendPtrField(out, "body", body, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -// -------------------- statements / control flow -------------------- - -std::string BlockNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("Block", hdr)); - appendPtrVec(out, "statements", statements, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string IfNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("If", hdr)); - appendPtrField(out, "condition", condition, indent + 2); - appendPtrField(out, "thenBlock", thenBlock, indent + 2); - appendPtrField(out, "elseBlock", elseBlock, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string SCDefaultNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("SCDefault", hdr)); - appendPtrField(out, "body", body, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string CaseNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("Case", hdr)); - appendPtrField(out, "condition", condition, indent + 2); - appendPtrField(out, "body", body, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string SwitchNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("Switch", hdr)); - appendPtrField(out, "expression", expression, indent + 2); - - if (cases.empty()) { - out += std::format("{}cases: []\n", ind(indent + 2)); - } else { - out += std::format("{}cases: [\n", ind(indent + 2)); - for (const auto& c : cases) { - out += (c ? c->toString(indent + 4) : ind(indent + 4) + "null"); - out += "\n"; - } - out += std::format("{}]\n", ind(indent + 2)); - } - - if (!defaultCase) out += std::format("{}defaultCase: null\n", ind(indent + 2)); - else { - out += std::format("{}defaultCase:\n", ind(indent + 2)); - out += defaultCase->toString(indent + 4); - out += "\n"; - } - - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string ForLoopNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("ForLoop", hdr)); - appendPtrField(out, "variable", variable, indent + 2); - appendPtrField(out, "iterable", iterable, indent + 2); - appendPtrField(out, "body", body, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string WhileLoopNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("WhileLoop", hdr)); - appendPtrField(out, "condition", condition, indent + 2); - appendPtrField(out, "body", body, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string BreakStatementNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - return std::format("{}{}", ind(indent), makeHeader("BreakStatement", hdr)); -} - -std::string ContinueStatementNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - return std::format("{}{}", ind(indent), makeHeader("ContinueStatement", hdr)); -} - -std::string ReturnStatementNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("ReturnStatement", hdr)); - appendPtrField(out, "expression", expression, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string ThrowStatementNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("ThrowStatement", hdr)); - appendPtrField(out, "expression", expression, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string TryCatchNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("TryCatch", hdr)); - appendPtrField(out, "tryBlock", tryBlock, indent + 2); - appendPtrField(out, "exception", exception, indent + 2); - appendPtrField(out, "catchBlock", catchBlock, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -// -------------------- composite data -------------------- - -std::string ArrayNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("Array", hdr)); - appendPtrVec(out, "elements", elements, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string SetNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("Set", hdr)); - appendPtrVec(out, "elements", elements, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string DictNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("Dict", hdr)); - - if (elements.empty()) { - out += std::format("{}elements: []\n", ind(indent + 2)); - } else { - out += std::format("{}elements: [\n", ind(indent + 2)); - for (const auto& kv : elements) { - out += std::format("{}{{\n", ind(indent + 4)); - - out += std::format("{}key:\n", ind(indent + 6)); - out += (kv.first ? kv.first->toString(indent + 8) : ind(indent + 8) + "null"); - out += "\n"; - - out += std::format("{}value:\n", ind(indent + 6)); - out += (kv.second ? kv.second->toString(indent + 8) : ind(indent + 8) + "null"); - out += "\n"; - - out += std::format("{}}}\n", ind(indent + 4)); - } - out += std::format("{}]\n", ind(indent + 2)); - } - - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string TupleNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("Tuple", hdr)); - appendPtrVec(out, "elements", elements, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string ResultNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - hdr.emplace_back("isError", b2s(isError)); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("Result", hdr)); - appendPtrField(out, "t", t, indent + 2); - appendPtrField(out, "e", e, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -// -------------------- higher structures -------------------- - -std::string ParameterNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - hdr.emplace_back("parameterName", parameterName); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("Parameter", hdr)); - appendPtrField(out, "parameterRawType", parameterRawType, indent + 2); - appendPtrField(out, "defaultValue", defaultValue, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string ModifierNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - hdr.emplace_back("modifier", modifierToString(modifier)); - - return std::format("{}{}", ind(indent), makeHeader("Modifier", hdr)); -} - -std::string EnumMemberNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - hdr.emplace_back("name", name); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("EnumMember", hdr)); - appendPtrField(out, "value", value, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string EnumNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - hdr.emplace_back("name", name); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("Enum", hdr)); - appendPtrVec(out, "decorators", decorators, indent + 2); - appendPtrVec(out, "modifiers", modifiers, indent + 2); - appendPtrVec(out, "elements", elements, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string InterfaceFieldNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - hdr.emplace_back("name", name); - hdr.emplace_back("isNullable", b2s(isNullable)); - hdr.emplace_back("isFunction", b2s(isFunction)); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("InterfaceField", hdr)); - appendPtrField(out, "rawType", rawType, indent + 2); - appendPtrVec(out, "parameters", parameters, indent + 2); - appendPtrField(out, "returnType", returnType, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string InterfaceNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - hdr.emplace_back("name", name); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("Interface", hdr)); - appendPtrVec(out, "decorators", decorators, indent + 2); - appendPtrVec(out, "modifiers", modifiers, indent + 2); - appendPtrVec(out, "elements", elements, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string FunctionNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - hdr.emplace_back("name", name); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("Function", hdr)); - appendPtrVec(out, "decorators", decorators, indent + 2); - appendPtrVec(out, "modifiers", modifiers, indent + 2); - appendPtrVec(out, "parameters", parameters, indent + 2); - appendPtrField(out, "returnType", returnType, indent + 2); - appendPtrField(out, "body", body, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string DeclarationNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - hdr.emplace_back("isNullable", b2s(isNullable)); - hdr.emplace_back("isTypeInference", b2s(isTypeInference)); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("Declaration", hdr)); - appendPtrVec(out, "decorators", decorators, indent + 2); - appendPtrVec(out, "modifiers", modifiers, indent + 2); - appendPtrField(out, "variable", variable, indent + 2); - appendPtrField(out, "rawType", rawType, indent + 2); - appendPtrField(out, "value", value, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string ClassNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - hdr.emplace_back("name", name); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("Class", hdr)); - appendPtrField(out, "constructor", constructor, indent + 2); - appendPtrField(out, "super", super, indent + 2); - appendPtrVec(out, "decorators", decorators, indent + 2); - appendPtrVec(out, "modifiers", modifiers, indent + 2); - appendPtrVec(out, "fields", fields, indent + 2); - appendPtrVec(out, "methods", methods, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string DecoratorNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - hdr.emplace_back("name", name); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("Decorator", hdr)); - appendPtrVec(out, "decorators", decorators, indent + 2); - appendPtrVec(out, "modifiers", modifiers, indent + 2); - appendPtrVec(out, "parameters", parameters, indent + 2); - appendPtrField(out, "body", body, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -std::string NamespaceNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("Namespace", hdr)); - appendPtrField(out, "name", name, indent + 2); - appendPtrVec(out, "body", body, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} - -// -------------------- imports / module / preprocessor -------------------- - -std::string ImportNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - - hdr.emplace_back("moduleName", moduleName); - hdr.emplace_back("alias", alias); - hdr.emplace_back("importType", importTypeToString(importType)); - - return std::format("{}{}", ind(indent), makeHeader("Import", hdr)); -} - -std::string PreprocessorDirectiveNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - hdr.emplace_back("directive", directiveToString(directive)); - // value is base `ASTNode::value` and is included only if not empty via appendBaseHeaderFields() - - return std::format("{}{}", ind(indent), makeHeader("Preprocessor", hdr)); -} - -std::string ModuleNode::toString(int indent) const { - std::vector> hdr; - appendBaseHeaderFields(hdr, *this); - hdr.emplace_back("moduleName", moduleName); - - std::string out = std::format("{}{} {{\n", ind(indent), makeHeader("Module", hdr)); - appendPtrVec(out, "body", body, indent + 2); - out += std::format("{}}}", ind(indent)); - return out; -} diff --git a/src/Core/Frontend/Nodes.hpp b/src/Core/Frontend/Nodes.hpp deleted file mode 100644 index 4d1b52b..0000000 --- a/src/Core/Frontend/Nodes.hpp +++ /dev/null @@ -1,595 +0,0 @@ -#pragma once -#include -#include -#include - -#include "../../HelperFunctions.hpp" - -enum struct ASTNodeType { - Literal, Variable, MemberAccess, Declaration, Assignment, BinaryOperation, UnaryOperation, CallExpression, - Block, IfStatement, ForLoop, WhileLoop, TryCatch, ReturnStatement, - Function, Class, Namespace, - Parameter, Modifier, - Switch, Case, SCDefault, - Module, - Import, Decorator, Preprocessor, - BreakStatement, ContinueStatement, ThrowStatement, - Array, Set, Dict, Tuple, Void, Result, Enum, Interface, Lambda, - EnumMember, InterfaceField, - RawType, GenericParameter, -}; - -enum struct ASTModifierType { - Public, Private, Protected, Static, Const, Override, Async, Debug, - Intrinsic -}; - -enum struct ASTPreprocessorDirectiveType { - Import, Unsafe, Macro, None -}; - -enum struct ASTImportType { - /* - Native - from dependencies - Relative - relative to path - Foreign - imported from other language via langpacks. - ForeignRelative - imported from other language via langpacks, but with relative path. - */ - Native, Relative, Foreign, ForeignRelative, -}; - -struct GenericParameter { - std::string name; - int line = 0; - int column = 0; - std::string filePath = ""; -}; - -struct ASTNode { - ASTNodeType type; - std::string value; // for basic values like literals, etc. - - // Tracking the node for the ErrorManager purposes - int line = 0; - int column = 0; - std::string filePath = ""; - - virtual ~ASTNode(); - virtual std::string toString(int indent) const = 0; -}; - -// All nodes available in Neoluma - -// This node only represents the existence of a variable (its name). Type info and initialized value are in DeclarationNode. -struct VariableNode : ASTNode { - std::string varName; - - VariableNode(const std::string& varName): varName(varName) { - this->type = ASTNodeType::Variable; - } - - std::string toString(int indent) const override; -}; - -struct LiteralNode : ASTNode { - LiteralNode(const std::string& val = "") { - this->type = ASTNodeType::Literal; - value = val; - } - - // TODO: add string statements to support inline data in strings - //std::optional>> stringStatements = std::nullopt; - std::string toString(int indent) const override; -}; - -// Assignment node assigns a value to an existing variable. -struct AssignmentNode : ASTNode { - MemoryPtr variable; - std::string op; // Assignment operator - MemoryPtr value; - - AssignmentNode(MemoryPtr variable, const std::string& op, MemoryPtr value) - : variable(std::move(variable)), op(op), value(std::move(value)) { - this->type = ASTNodeType::Assignment; - } - - std::string toString(int indent) const override; -}; - -struct MemberAccessNode : ASTNode { - MemoryPtr parent; - MemoryPtr val; - - MemberAccessNode(MemoryPtr parent, MemoryPtr val) - : parent(std::move(parent)), val(std::move(val)) { - this->type = ASTNodeType::MemberAccess; - } - - std::string toString(int indent) const override; -}; - -struct BinaryOperationNode : ASTNode { - MemoryPtr leftOperand; - MemoryPtr rightOperand; - - BinaryOperationNode(MemoryPtr leftOp, const std::string& op, MemoryPtr rightOp) - : leftOperand(std::move(leftOp)), rightOperand(std::move(rightOp)) { - this->type = ASTNodeType::BinaryOperation; - value = op; - } - - std::string toString(int indent) const override; -}; - - - -struct RawTypeNode : ASTNode { - MemoryPtr varType; - // ASTNode is used only for nullptr. Be aware! - MemoryPtr varSize; - - // array, dict, Box - std::vector> genericArguments; - - RawTypeNode(MemoryPtr varType, MemoryPtr varSize = nullptr, - std::vector> genericArguments = {}) - : varType(std::move(varType)), varSize(std::move(varSize)), genericArguments(std::move(genericArguments)) { - this->type = ASTNodeType::RawType; - } - - std::string toString(int indent) const override; -}; - -struct UnaryOperationNode : ASTNode { - MemoryPtr operand; - - UnaryOperationNode(const std::string& op, MemoryPtr operand) - : operand(std::move(operand)) { - this->type = ASTNodeType::UnaryOperation; - value = op; - } - - std::string toString(int indent) const override; -}; - -// statements -struct BlockNode : ASTNode { - std::vector> statements; - BlockNode() { this->type = ASTNodeType::Block; } - - std::string toString(int indent) const override; -}; - -struct IfNode : ASTNode { - MemoryPtr condition; - MemoryPtr thenBlock; - MemoryPtr elseBlock; - - IfNode(MemoryPtr condition, MemoryPtr thenBlock, MemoryPtr elseBlock = nullptr) - : condition(std::move(condition)), thenBlock(std::move(thenBlock)), elseBlock(std::move(elseBlock)) { - this->type = ASTNodeType::IfStatement; - } - - std::string toString(int indent) const override; -}; - -struct SCDefaultNode : ASTNode { - MemoryPtr body; - SCDefaultNode(MemoryPtr body) : body(std::move(body)) { - this->type = ASTNodeType::SCDefault; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent) const override; -}; - -struct CaseNode : ASTNode { - MemoryPtr condition; - MemoryPtr body; - CaseNode(MemoryPtr condition, MemoryPtr body) - : condition(std::move(condition)), body(std::move(body)) { - this->type = ASTNodeType::Case; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent) const override; -}; - -struct SwitchNode : ASTNode { - MemoryPtr expression; - std::vector> cases; - MemoryPtr defaultCase; - - SwitchNode(MemoryPtr expression, std::vector> cases, MemoryPtr defaultCase = nullptr) - : expression(std::move(expression)), cases(std::move(cases)), defaultCase(std::move(defaultCase)) { - this->type = ASTNodeType::Switch; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent) const override; -}; - -struct ForLoopNode : ASTNode { - MemoryPtr variable; - MemoryPtr iterable; - MemoryPtr body; - - ForLoopNode(MemoryPtr variable, MemoryPtr iterable, MemoryPtr body) - : variable(std::move(variable)), iterable(std::move(iterable)), body(std::move(body)) { - this->type = ASTNodeType::ForLoop; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent) const override; -}; - -struct WhileLoopNode : ASTNode { - MemoryPtr condition; - MemoryPtr body; - - WhileLoopNode(MemoryPtr condition, MemoryPtr body) - : condition(std::move(condition)), body(std::move(body)) { - this->type = ASTNodeType::WhileLoop; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent) const override; -}; - -struct BreakStatementNode : ASTNode { - BreakStatementNode() { this->type = ASTNodeType::BreakStatement; } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent) const override; -}; - -struct ContinueStatementNode : ASTNode { - ContinueStatementNode() { this->type = ASTNodeType::ContinueStatement; } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent) const override; -}; - -struct ReturnStatementNode : ASTNode { - MemoryPtr expression; - ReturnStatementNode(MemoryPtr expression) - : expression(std::move(expression)) { - this->type = ASTNodeType::ReturnStatement; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent) const override; -}; - -struct ThrowStatementNode : ASTNode { - MemoryPtr expression; - ThrowStatementNode(MemoryPtr expression) - : expression(std::move(expression)) { - this->type = ASTNodeType::ThrowStatement; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent) const override; -}; - -struct TryCatchNode : ASTNode { - MemoryPtr tryBlock; - MemoryPtr catchBlock; - MemoryPtr exception; - - TryCatchNode(MemoryPtr tryBlock, MemoryPtr exception, MemoryPtr catchBlock) - : tryBlock(std::move(tryBlock)), exception(std::move(exception)), catchBlock(std::move(catchBlock)) { - this->type = ASTNodeType::TryCatch; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent) const override; -}; - -// composite data -struct ArrayNode : ASTNode { - std::vector> elements; - /*MemoryPtr typeHint;*/ - - ArrayNode(std::vector> elements/*, MemoryPtr typeHint=nullptr*/) - : elements(std::move(elements))/*, typeHint(std::move(typeHint))*/ { - this->type = ASTNodeType::Array; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent) const override; -}; - -struct SetNode : ASTNode { - std::vector> elements; - //MemoryPtr typeHint; - - SetNode(std::vector> elements/*, MemoryPtr typeHint=nullptr*/) - : elements(std::move(elements))/*, typeHint(std::move(typeHint))*/ { - this->type = ASTNodeType::Set; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent) const override; -}; - -struct DictNode : ASTNode { - std::vector, MemoryPtr>> elements; - //std::array, 2> types; - - DictNode(std::vector, MemoryPtr>> elements/*, std::array, 2> types*/) - : elements(std::move(elements))/*, types(std::move(types))*/ { - this->type = ASTNodeType::Dict; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent) const override; -}; - -// For now it's used only in lambda conditions, it must be fixed later -struct TupleNode : ASTNode { - std::vector> elements; - - TupleNode(std::vector> elements) - : elements(std::move(elements)) { - this->type = ASTNodeType::Tuple; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent) const override; -}; - -struct ResultNode : ASTNode { - MemoryPtr t; - MemoryPtr e; - bool isError; - - ResultNode(MemoryPtr t, MemoryPtr e = nullptr, bool isError = false) - : t(std::move(t)), e(std::move(e)), isError(isError) { - this->type = ASTNodeType::Result; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent = 0) const override; -}; - -// higher structures -struct ParameterNode : ASTNode { - std::string parameterName; - MemoryPtr parameterRawType = nullptr; - MemoryPtr defaultValue = nullptr; // optional - - ParameterNode(const std::string& parameterName, MemoryPtr parameterRawType, MemoryPtr defaultValue) - : parameterName(parameterName), parameterRawType(std::move(parameterRawType)), defaultValue(std::move(defaultValue)) { - this->type = ASTNodeType::Parameter; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent = 0) const override; -}; - -struct ModifierNode : ASTNode { - ASTModifierType modifier; - ModifierNode(ASTModifierType& modifier) : modifier(modifier) { - this->type = ASTNodeType::Modifier; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent = 0) const override; -}; - -struct CallExpressionNode : ASTNode { - MemoryPtr callee; - std::vector> arguments; - bool isDecoratorCall = false; - - CallExpressionNode(MemoryPtr callee, std::vector> arguments, bool isDecoratorCall = false) - : callee(std::move(callee)), arguments(std::move(arguments)), isDecoratorCall(isDecoratorCall) { - this->type = ASTNodeType::CallExpression; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent = 0) const override; -}; - -struct EnumMemberNode : ASTNode { - std::string name; - MemoryPtr value; // TODO: Maybe allow expressions in the future that would return a number. - EnumMemberNode(const std::string& name, MemoryPtr value = nullptr) : name(name), value(std::move(value)) { - this->type = ASTNodeType::EnumMember; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent = 0) const override; -}; - -struct EnumNode : ASTNode { - std::string name; - std::vector> decorators; - std::vector> modifiers; - std::vector> elements; - - EnumNode(const std::string& name, std::vector> elements, std::vector> decorators = std::vector>{}, std::vector> modifiers = std::vector>{}) - : name(name) { - this->type = ASTNodeType::Enum; - this->elements = std::move(elements); - this->decorators = std::move(decorators); - this->modifiers = std::move(modifiers); - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent = 0) const override; -}; - -struct InterfaceFieldNode : ASTNode { - std::string name; - MemoryPtr rawType; - bool isNullable; - - bool isFunction = false; - std::vector> parameters = {}; - MemoryPtr returnType = nullptr; - - InterfaceFieldNode(const std::string& name, MemoryPtr type, bool isNullable = false, bool isFunction = false, std::vector> parameters = {}, MemoryPtr returnType = nullptr) - : name(name), rawType(std::move(type)), isNullable(isNullable), isFunction(isFunction), parameters(std::move(parameters)), returnType(std::move(returnType)) { - this->type = ASTNodeType::InterfaceField; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent = 0) const override; -}; - -struct InterfaceNode : ASTNode { - std::string name; - std::vector> decorators; - std::vector> modifiers; - std::vector genericParameters; - std::vector> elements; - - InterfaceNode(const std::string& name, std::vector> elements, std::vector> decorators = {}, std::vector> modifiers = {}, std::vector genericParameters = {}) - : name(name), elements(std::move(elements)), decorators(std::move(decorators)), modifiers(std::move(modifiers)), genericParameters(std::move(genericParameters)) { - this->type = ASTNodeType::Interface; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent = 0) const override; -}; - -struct LambdaNode : ASTNode { - std::vector> params; - MemoryPtr body; - - LambdaNode(std::vector> params, MemoryPtr body) - : params(std::move(params)), body(std::move(body)) { - this->type = ASTNodeType::Lambda; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent = 0) const override; -}; - -struct FunctionNode : ASTNode { - std::vector> decorators; - std::vector> modifiers; - std::vector genericParameters; - - std::string name; - std::vector> parameters; - MemoryPtr returnType = nullptr; - MemoryPtr body; - bool isIntrinsic = false; // Is this a function that passes through an LLVM call? - - FunctionNode(const std::string& name, std::vector> parameters, MemoryPtr returnType, MemoryPtr body,std::vector> decorators = {}, std::vector> modifiers = {}, std::vector genericParameters = {}) - : name(name), parameters(std::move(parameters)), body(std::move(body)), decorators(std::move(decorators)), modifiers(std::move(modifiers)), genericParameters(std::move(genericParameters)), returnType(std::move(returnType)) { - this->type = ASTNodeType::Function; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent = 0) const override; -}; - -// Declaration node holds type info, initialization value, and other metadata about a variable. -struct DeclarationNode : ASTNode { - std::vector> decorators; - std::vector> modifiers; - - MemoryPtr variable; - bool isNullable = false; - MemoryPtr rawType; - bool isTypeInference = false; - MemoryPtr value = nullptr; - - DeclarationNode(MemoryPtr variable, MemoryPtr rawType = nullptr, MemoryPtr value = nullptr, bool isNullable = false, bool isTypeInference = false, std::vector> decorators = {}, std::vector> modifiers = {}) - : variable(std::move(variable)), rawType(std::move(rawType)), value(std::move(value)), isNullable(isNullable), isTypeInference(isTypeInference), decorators(std::move(decorators)), modifiers(std::move(modifiers)) { - this->type = ASTNodeType::Declaration; - } - - std::string toString(int indent) const override; -}; - -struct ClassNode : ASTNode { - std::string name; - MemoryPtr constructor = nullptr; - MemoryPtr super = nullptr; // Name of class or interface being inherited from, if any - std::vector> decorators; - std::vector> modifiers; - std::vector genericParameters; - std::vector> fields; - std::vector> methods; - - ClassNode(const std::string& name, MemoryPtr constructor, MemoryPtr super, std::vector> fields, std::vector> methods, - std::vector> decorators = {}, std::vector> modifiers = {}, std::vector genericParameters = {}) - : name(name), constructor(std::move(constructor)), super(std::move(super)), fields(std::move(fields)), methods(std::move(methods)), decorators(std::move(decorators)), modifiers(std::move(modifiers)), genericParameters(std::move(genericParameters)) { - this->type = ASTNodeType::Class; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent = 0) const override; -}; - -struct DecoratorNode : ASTNode { - std::string name; - std::vector> decorators; - std::vector> modifiers; - std::vector> parameters; - MemoryPtr body; - - DecoratorNode(const std::string& name, std::vector> parameters, MemoryPtr body, - std::vector> decorators = std::vector>{}, std::vector> modifiers = std::vector>{}) - : name(name), parameters(std::move(parameters)), body(std::move(body)), decorators(std::move(decorators)), modifiers(std::move(modifiers)) { - this->type = ASTNodeType::Decorator; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent = 0) const override; -}; - -struct NamespaceNode : ASTNode { - MemoryPtr name; - std::vector> body; - - NamespaceNode(MemoryPtr name, std::vector> body) - : name(std::move(name)), body(std::move(body)) { - this->type = ASTNodeType::Namespace; - } - - std::string toString(int indent = 0) const override; -}; - -// imports and program structure -struct ImportNode : ASTNode { - std::string moduleName; - std::string alias; - ASTImportType importType; - - ImportNode(const std::string& moduleName, const std::string& alias, ASTImportType importType) - : moduleName(moduleName), alias(alias), importType(importType) { - this->type = ASTNodeType::Import; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent = 0) const override; -}; - -struct PreprocessorDirectiveNode : ASTNode { - ASTPreprocessorDirectiveType directive; - PreprocessorDirectiveNode(ASTPreprocessorDirectiveType& directive, const std::string& value = "") - : directive(directive) { - this->type = ASTNodeType::Preprocessor; - this->value = value; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent = 0) const override; -}; - -struct ModuleNode : ASTNode { - std::string moduleName; - std::vector> body; - ModuleNode(const std::string& name) : moduleName(name) { - this->type = ASTNodeType::Module; - } - - // Suggested by AI. If it fails, it's his fault - std::string toString(int indent = 0) const override; -}; \ No newline at end of file diff --git a/src/Core/Frontend/Orchestrator/Orchestrator.cpp b/src/Core/Frontend/Orchestrator/Orchestrator.cpp deleted file mode 100644 index 02574ec..0000000 --- a/src/Core/Frontend/Orchestrator/Orchestrator.cpp +++ /dev/null @@ -1,294 +0,0 @@ -#include "Orchestrator.hpp" -#include "Core/Compiler.hpp" - -// Helper Functions - -bool Orchestrator::hasEntryDecorator(const FunctionNode* function){ - if (!function) return false; - for (const auto& decorator : function->decorators){ - if (!decorator || !decorator->callee) return false; - if (decorator->callee->type != ASTNodeType::Variable) return false; - auto* var = static_cast(decorator->callee.get()); - if (var->varName == "entry") return true; - } - return false; -} - -// https://www.geeksforgeeks.org/dsa/depth-first-search-or-dfs-for-a-graph/ -void Orchestrator::dfsVisit( ModuleId id, const std::vector& infos, std::vector& state, - std::vector& order, const ErrorSpan* fromSpan) -{ - if (state[id] == 2) return; //done - if (state[id] == 1) { - if (fromSpan) { - compiler->errorManager.addError( - ErrorType::Preprocessor, - PreprocessorErrors::CircularImport, - *fromSpan, - "ErrorManager.Preprocessor.CircularImport.message", {}, - "ErrorManager.Preprocessor.CircularImport.hint"); - } else if (compiler){ - auto* m = infos[id].module; - compiler->errorManager.addError( - ErrorType::Preprocessor, - PreprocessorErrors::CircularImport, - ErrorSpan{m->filePath, "import", m->line, m->column}, - "ErrorManager.Preprocessor.CircularImport.message", {}, - "ErrorManager.Preprocessor.CircularImport.hint"); - } - return; - } - - state[id] = 1; // visiting - - for (const auto& edge : infos[id].dependencies){ - dfsVisit(edge.moduleId, infos, state, order, &edge.span); - } - - state[id] = 2; // done - order.push_back(id); -} - -std::vector Orchestrator::splitPath(const std::string& path){ - std::vector result; - std::string cur; - for (char c : path){ - char x = (c == '\\') ? '/' : c; - if (x == '/') { - if (!cur.empty()) result.push_back(cur); cur.clear(); - } else cur.push_back(x); - } - if (!cur.empty()) result.push_back(cur); - return result; -} - -std::string Orchestrator::joinPath(const std::vector& parts){ - std::string result; - for (size_t i = 0; i < parts.size(); ++i){ - if (i) result += '/'; - result += parts[i]; - } - return result; -} - -std::string Orchestrator::dirOfKey(const std::string& key){ - auto norm = key; - for (auto& ch : norm) if (ch == '\\') ch = '/'; - auto pos = norm.rfind('/'); - if (pos == std::string::npos) return ""; // root of sourceFolder - return norm.substr(0, pos); // "more" -} - -std::string Orchestrator::resolveRelativeKey(const std::string& currentKey, const std::string& importName){ - auto baseDir = dirOfKey(currentKey); - std::vector stack; - - if (!baseDir.empty()) stack = splitPath(baseDir); - - for (auto& part : splitPath(importName)){ - if (part == "." || part.empty()) continue; - if (part == "..") { - if (!stack.empty()) stack.pop_back(); // if empty, stay in the root (todo: make an error later for going out of sourceFolder) - } else { stack.push_back(part); } - } - - return joinPath(stack); -} - -// Main implementations -void Orchestrator::stitchProgram(Program& program) { - ModuleId entryId = -1; - - for (const auto& info : program.moduleInfos) { - if (info.module == program.entryPoint.module) { - entryId = info.id; - break; - } - } - - if (entryId < 0) return; // i mean this should not ever ever happen but... - - program.order.clear(); // clean up previous order just in case - - std::vector state(program.moduleInfos.size(), 0); - dfsVisit(entryId, program.moduleInfos, state, program.order, nullptr); -} - -EntryPoint Orchestrator::findEntryPoint(const std::vector>& modules) { - EntryPoint entryPoint{}; - EntryPoint mainFallback{}; - ModuleNode* firstModule = nullptr; - - bool foundExplicit = false; - - for (const auto& module : modules) { - if (!module) continue; - if (!firstModule) firstModule = module.get(); - for (const auto& statement : module->body) { - if (!statement || statement->type != ASTNodeType::Function) continue; - - auto* func = static_cast(statement.get()); - - if (!mainFallback.function && func->name == "main") { - mainFallback.module = module.get(); - mainFallback.function = func; - } - - if (hasEntryDecorator(func)) { - if (!foundExplicit) { - foundExplicit = true; - entryPoint.module = module.get(); - entryPoint.function = func; - } else { - auto* firstFn = entryPoint.function; - compiler->errorManager.addError( - ErrorType::Analysis, - AnalysisErrors::MultipleEntryPoints, - ErrorSpan{func->filePath, func->name, func->line, func->column}, - "ErrorManager.Analysis.MultipleEntryPoints.message", {}, - "ErrorManager.Analysis.MultipleEntryPoints.hint", {firstFn->filePath, anyToStr(firstFn->line), anyToStr(firstFn->column)}); - } - } - } - } - if (foundExplicit) return entryPoint; - - if (mainFallback.function) return mainFallback; - - compiler->errorManager.addError( - ErrorType::Analysis, - AnalysisErrors::NoEntryPoints, - ErrorSpan{firstModule ? firstModule->filePath : "", "", 1, 1}, - "ErrorManager.Analysis.NoEntryPoints.message", {}, - "ErrorManager.Analysis.NoEntryPoints.hint"); - - return {}; -} - -std::vector Orchestrator::resolveImports(Program& program){ - const auto& modules = program.modules; - std::vector infos(modules.size()); - - // key to module id - std::unordered_map keyToId; - keyToId.reserve(modules.size() * 2); - std::vector idToKey(modules.size()); - - for (ModuleId i = 0; i < (ModuleId)modules.size(); ++i) { - ModuleNode* m = modules[i].get(); - if (!m) continue; - - std::string key = std::filesystem::path(m->filePath).replace_extension().lexically_normal().generic_string(); - idToKey[i] = key; - keyToId[key] = i; - - infos[i].id = i; - infos[i].module = m; - } - - auto registerAlias = [&](ModuleInfo& mi, ImportNode* imp, ModuleId depId) { - if (imp->alias.empty()) return; - - if (mi.aliasMap.count(imp->alias)) { - compiler->errorManager.addError( - ErrorType::Preprocessor, - PreprocessorErrors::ImportAliasConflict, - ErrorSpan{imp->filePath, imp->alias, imp->line, imp->column}, - "ErrorManager.Preprocessor.ImportAliasConflict.message", {imp->alias}, - "ErrorManager.Preprocessor.ImportAliasConflict.hint"); - return; - } - - mi.aliasMap.emplace(imp->alias, depId); - }; - - // go through imports and fill out dependencies and aliasMap - for (ModuleId i = 0; i < (ModuleId)infos.size(); ++i) - { - ModuleInfo& mi = infos[i]; - ModuleNode* m = mi.module; - if (!m) continue; - - for (const auto& st : m->body) - { - if (!st || st->type != ASTNodeType::Import) continue; - - auto* imp = static_cast(st.get()); - const std::string& name = imp->moduleName; - - if (program.namespaces.contains(name)) { - mi.namespaceImports.push_back(name); - if (!imp->alias.empty()) mi.namespaceAliasMap.emplace(imp->alias, name); - continue; - } - - if (imp->importType == ASTImportType::Relative){ - std::string resolvedKey = resolveRelativeKey(idToKey[mi.id], imp->moduleName); - auto it = keyToId.find(resolvedKey); - if (it == keyToId.end()){ - compiler->errorManager.addError( - ErrorType::Preprocessor, - PreprocessorErrors::ImportNotFound, - ErrorSpan{imp->filePath, imp->moduleName, imp->line, imp->column}, - "ErrorManager.Preprocessor.ImportNotFound.message", {name}, - "ErrorManager.Preprocessor.ImportNotFound.hint"); - continue; - } - - ModuleId depId = it->second; - mi.dependencies.push_back(DependencyEdge{depId, ErrorSpan{imp->filePath, imp->moduleName, imp->line, imp->column}}); - registerAlias(mi, imp, depId); - } - else if (imp->importType == ASTImportType::Native){ - // At first we're gonna assume the file is in the same folder, if not, it's really a native import - // As of now i have no idea how to detect Native modules properly, but if i find out a better solution, - // i should check the parsePreprocessor() in Parser and fix the detection. - std::string resolvedKey = resolveRelativeKey(idToKey[mi.id], imp->moduleName); - - auto it = keyToId.find(resolvedKey); - if (it != keyToId.end()){ - // is a relative import - ModuleId depId = it->second; - mi.dependencies.push_back(DependencyEdge{depId, ErrorSpan{imp->filePath, imp->moduleName, imp->line, imp->column}}); - registerAlias(mi, imp, depId); - } else { - // is a native import - if (imp->moduleName != "std" && !compiler->program.input.dependencies.contains(imp->moduleName)){ - compiler->errorManager.addError( - ErrorType::Preprocessor, - PreprocessorErrors::ImportNotFound, - ErrorSpan{imp->filePath, imp->moduleName, imp->line, imp->column}, - "ErrorManager.Preprocessor.ImportNotFound.nativePackageNotInstalled.message", {imp->moduleName}, - "ErrorManager.Preprocessor.ImportNotFound.nativePackageNotInstalled.hint"); - } - else mi.nativeImports.push_back(imp->moduleName); - } - - // Foreign and Foreign Relative will come out with language packs update. - } - } - } - - return infos; -} - -std::unordered_map Orchestrator::collectNamespaces(const std::vector>& modules) { - std::unordered_map namespaces; - - for (const auto& module : modules) { - if (!module) continue; - - for (const auto& statement : module->body) { - if (!statement || statement->type != ASTNodeType::Namespace) continue; - - auto* node = static_cast(statement.get()); - const std::string& name = node->value; - - if (!namespaces.contains(name)) namespaces.emplace(name, NamespaceInfo{name, {}}); - - namespaces[name].declarations.push_back(node); - } - } - - return namespaces; -} \ No newline at end of file diff --git a/src/Core/Frontend/Orchestrator/Orchestrator.hpp b/src/Core/Frontend/Orchestrator/Orchestrator.hpp deleted file mode 100644 index bd36e46..0000000 --- a/src/Core/Frontend/Orchestrator/Orchestrator.hpp +++ /dev/null @@ -1,58 +0,0 @@ -#pragma once -#include "../Nodes.hpp" -#include "Core/Extras/ErrorManager/ErrorManager.hpp" -#include - -// helper declarations -using ModuleId = int; -struct Compiler; -struct Program; - -struct EntryPoint { - ModuleNode* module = nullptr; - FunctionNode* function = nullptr; -}; - -struct DependencyEdge { - ModuleId moduleId; - ErrorSpan span; // where did the error happen -}; - -// main data declarations - -struct ModuleInfo { - ModuleId id; - ModuleNode* module; - std::vector dependencies; - std::unordered_map aliasMap; - std::vector nativeImports; // for packages that import from dependencies or std, like "math", "std", "tazer" - - std::vector namespaceImports; - std::unordered_map namespaceAliasMap; -}; - -struct NamespaceInfo { - std::string name; - std::vector declarations; -}; - -// Orchestrator is a struct that allows us to stitch the project together into a working program, that can be fed to the Semantic Analysis and lower parts of the Compiler. -struct Orchestrator { - Compiler* compiler = nullptr; - void setCompiler(Compiler* comp) { compiler = comp; } - - // main function - void stitchProgram(Program& program); - EntryPoint findEntryPoint(const std::vector>& modules); - std::vector resolveImports(Program& program); - std::unordered_map collectNamespaces(const std::vector>& modules); - - // helper functions - static bool hasEntryDecorator(const FunctionNode* function); - void dfsVisit(ModuleId id, const std::vector& infos, std::vector& state, std::vector& order, const ErrorSpan* fromSpan); - - static std::vector splitPath(const std::string& path); - static std::string joinPath(const std::vector& parts); - static std::string dirOfKey(const std::string& key); - static std::string resolveRelativeKey(const std::string& currentKey, const std::string& importName); -}; \ No newline at end of file diff --git a/src/Core/Frontend/Parser/ASTBuilder.hpp b/src/Core/Frontend/Parser/ASTBuilder.hpp deleted file mode 100644 index 63c944d..0000000 --- a/src/Core/Frontend/Parser/ASTBuilder.hpp +++ /dev/null @@ -1,210 +0,0 @@ -#pragma once -#include "../../../HelperFunctions.hpp" -#include "../Nodes.hpp" - -struct ASTBuilder { - // Creates a LiteralNode - static MemoryPtr createLiteral(const std::string& val = "") { - return makeMemoryPtr(val); - } - - // Creates a VariableNode - static MemoryPtr createVariable(const std::string& varName) { - return makeMemoryPtr(varName); - } - - // Creates a DeclarationNode - static MemoryPtr createDeclaration(MemoryPtr variable, MemoryPtr rawType = nullptr, MemoryPtr value = nullptr, bool isNullable = false, bool isTypeInference = false, std::vector> decorators = {}, std::vector> modifiers = {}) { - return makeMemoryPtr(std::move(variable), std::move(rawType), std::move(value), isNullable, isTypeInference, std::move(decorators), std::move(modifiers)); - } - - // Creates an AssignmentNode - static MemoryPtr createAssignment(MemoryPtr variable, const std::string& op, MemoryPtr value) { - return makeMemoryPtr(std::move(variable), op, std::move(value)); - } - - // Creates a MemberAccessNode - static MemoryPtr createMemberAccess(MemoryPtr parent, MemoryPtr val) { - return makeMemoryPtr(std::move(parent), std::move(val)); - } - - // Creates a BinaryOperationNode - static MemoryPtr createBinaryOperation(MemoryPtr leftOp, const std::string& op, MemoryPtr rightOp) { - return makeMemoryPtr(std::move(leftOp), op, std::move(rightOp)); - } - - // Creates a UnaryOperationNode - static MemoryPtr createUnaryOperation(const std::string& op, MemoryPtr operand) { - return makeMemoryPtr(op, std::move(operand)); - } - - // Creates a BlockNode - static MemoryPtr createBlock(std::vector> statements) { - auto block = makeMemoryPtr(); - block->statements = std::move(statements); - return block; - } - - // Creates an IfNode - static MemoryPtr createIf(MemoryPtr condition, MemoryPtr thenBlock, MemoryPtr elseBlock = nullptr) { - return makeMemoryPtr(std::move(condition), std::move(thenBlock), std::move(elseBlock)); - } - - // Creates a CaseNode - static MemoryPtr createCase(MemoryPtr condition, MemoryPtr body) { - return makeMemoryPtr(std::move(condition), std::move(body)); - } - - // Creates an SCDefaultNode - static MemoryPtr createDefaultCase(MemoryPtr body) { - return makeMemoryPtr(std::move(body)); - } - - // Creates a SwitchNode - static MemoryPtr createSwitch(MemoryPtr expression, std::vector> cases, MemoryPtr defaultCase = nullptr) { - return makeMemoryPtr(std::move(expression), std::move(cases), std::move(defaultCase)); - } - - // Creates a ForLoopNode - static MemoryPtr createForLoop(MemoryPtr variable, MemoryPtr iterable, MemoryPtr body) { - return makeMemoryPtr(std::move(variable), std::move(iterable), std::move(body)); - } - - // Creates a WhileLoopNode - static MemoryPtr createWhileLoop(MemoryPtr condition, MemoryPtr body) { - return makeMemoryPtr(std::move(condition), std::move(body)); - } - - // Creates a BreakStatementNode - static MemoryPtr createBreakStatement() { - return makeMemoryPtr(); - } - - // Creates a ContinueStatementNode - static MemoryPtr createContinueStatement() { - return makeMemoryPtr(); - } - - // Creates a ReturnStatementNode - static MemoryPtr createReturnStatement(MemoryPtr expression) { - return makeMemoryPtr(std::move(expression)); - } - - // Creates a ThrowStatementNode - static MemoryPtr createThrowStatement(MemoryPtr expression) { - return makeMemoryPtr(std::move(expression)); - } - - // Creates a TryCatchNode - static MemoryPtr createTryCatch(MemoryPtr tryBlock, MemoryPtr exception, MemoryPtr catchBlock) { - return makeMemoryPtr(std::move(tryBlock), std::move(exception), std::move(catchBlock)); - } - - // Creates an ArrayNode - static MemoryPtr createArray(std::vector> elements/*, MemoryPtr typeHint = nullptr*/) { - return makeMemoryPtr(std::move(elements)/*, std::move(typeHint)*/); - } - - // Creates a SetNode - static MemoryPtr createSet(std::vector> elements/*, MemoryPtr typeHint = nullptr*/) { - return makeMemoryPtr(std::move(elements)/*, std::move(typeHint)*/); - } - - // Creates a DictNode - static MemoryPtr createDict(std::vector, MemoryPtr>> elements/*, std::array types={"none", "none"}*/) { - return makeMemoryPtr(std::move(elements)/*, std::move(types)*/); - } - - // Creates a TupleNode - static MemoryPtr createTuple(std::vector> elements) { - return makeMemoryPtr(std::move(elements)); - } - - // Creates a ResultNode - static MemoryPtr createResult(MemoryPtr t, MemoryPtr e = nullptr, bool isError = false) { - return makeMemoryPtr(std::move(t), std::move(e), isError); - } - - // Creates a ParameterNode - static MemoryPtr createParameter(const std::string& parameterName, MemoryPtr parameterRawType = nullptr, MemoryPtr defaultValue = nullptr) { - return makeMemoryPtr(parameterName, std::move(parameterRawType), std::move(defaultValue)); - } - - // Creates a ModifierNode - static MemoryPtr createModifier(ASTModifierType modifier) { - return makeMemoryPtr(modifier); - } - - // Creates a CallExpressionNode - static MemoryPtr createCallExpression(MemoryPtr callee, std::vector> arguments, bool isDecoratorCall = false) { - return makeMemoryPtr(std::move(callee), std::move(arguments), isDecoratorCall); - } - - // Creates an EnumMemberNode - static MemoryPtr createEnumMember(const std::string& name, MemoryPtr value = nullptr) { - return makeMemoryPtr(name, std::move(value)); - } - - // Creates an EnumNode - static MemoryPtr createEnum(const std::string& name, std::vector> elements, std::vector> decorators = {}, std::vector> modifiers = {}) { - return makeMemoryPtr(name, std::move(elements), std::move(decorators), std::move(modifiers)); - } - - // Creates an InterfaceFieldNode - static MemoryPtr createInterfaceField(const std::string& name, MemoryPtr type, bool isNullable = false, bool isFunction = false, std::vector> parameters = {}, MemoryPtr returnType = nullptr) { - return makeMemoryPtr(name, std::move(type), isNullable, isFunction, std::move(parameters), std::move(returnType)); - } - - // Creates an InterfaceNode - static MemoryPtr createInterface(const std::string& name, std::vector> elements, std::vector> decorators = {}, std::vector> modifiers = {}, std::vector genericParameters = {}) { - return makeMemoryPtr(name, std::move(elements), std::move(decorators), std::move(modifiers), std::move(genericParameters)); - } - - // Creates a LambdaNode - static MemoryPtr createLambda(std::vector> params, MemoryPtr body) { - return makeMemoryPtr(std::move(params), std::move(body)); - } - - // Creates a FunctionNode - static MemoryPtr createFunction(const std::string& name, std::vector> parameters, MemoryPtr returnType, MemoryPtr body, std::vector> decorators = {}, std::vector> modifiers = {}, std::vector genericParameters = {}) { - return makeMemoryPtr(name, std::move(parameters), std::move(returnType), std::move(body), std::move(decorators), std::move(modifiers), std::move(genericParameters)); - } - - // Creates a ClassNode - static MemoryPtr createClass(const std::string& name, MemoryPtr constructor, MemoryPtr super, std::vector> fields, std::vector> methods, std::vector> decorators = {}, std::vector> modifiers = {}, std::vector genericParameters = {}) { - return makeMemoryPtr(name, std::move(constructor), std::move(super), std::move(fields), std::move(methods), std::move(decorators), std::move(modifiers), std::move(genericParameters)); - } - - // Creates a DecoratorNode - static MemoryPtr createDecorator(const std::string& name, std::vector> parameters, MemoryPtr body, std::vector> decorators = {}, std::vector> modifiers = {}) { - return makeMemoryPtr(name, std::move(parameters), std::move(body), std::move(decorators), std::move(modifiers)); - } - - // Creates a NamespaceNode - static MemoryPtr createNamespace(MemoryPtr name, std::vector> body) { - return makeMemoryPtr(std::move(name), std::move(body)); - } - - // Creates an ImportNode - static MemoryPtr createImport(const std::string& moduleName, const std::string& alias, ASTImportType importType) { - return makeMemoryPtr(moduleName, alias, importType); - } - - // Creates a PreprocessorDirectiveNode - static MemoryPtr createPreprocessor(ASTPreprocessorDirectiveType directive, const std::string& value = "") { - return makeMemoryPtr(directive, value); - } - - // Creates a RawTypeNode - static MemoryPtr createRawType(MemoryPtr varType, MemoryPtr varSize = nullptr, std::vector> genericArguments = {}) { - return makeMemoryPtr(std::move(varType), std::move(varSize), std::move(genericArguments)); - } - - // Creates a ModuleNode - static MemoryPtr createModule(const std::string& name, std::vector> body = {}) { - auto mod = makeMemoryPtr(name); - mod->body = std::move(body); - return mod; - } -}; - diff --git a/src/Core/Frontend/Parser/Parser.cpp b/src/Core/Frontend/Parser/Parser.cpp deleted file mode 100644 index d58e010..0000000 --- a/src/Core/Frontend/Parser/Parser.cpp +++ /dev/null @@ -1,2116 +0,0 @@ -#include -#include -#include - -#include "Core/Compiler.hpp" -#include "Libraries/Color/Color.hpp" -#include "Libraries/Localization/Localization.hpp" - -#include "../Nodes.hpp" -#include "Parser.hpp" - -#include "../Token.hpp" -#include "../../../HelperFunctions.hpp" -#include "ASTBuilder.hpp" - -// ==== Print the parser output ==== -void Parser::printModule(int indentation) { - if (!moduleSource) { - std::println(std::cerr, "[Neoluma/Parser][\"{}\"] No module to print.", __func__); - return; - } - - std::println("{}", moduleSource->toString(indentation)); -} - -// ==== Main parsing ==== -void Parser::parseModule(const std::vector& tok, const std::string& name) { - // initialization - this->moduleSource = nullptr; this->tokens = tok; this->moduleName = name; this->pos = 0; - - auto moduleNode = ASTBuilder::createModule(moduleName); - moduleNode->line = 0; moduleNode->column = 0; moduleNode->filePath = curToken().filePath; - - // FIXME: Reevaluate why the fuck this duct tape method exists. Remake safety guards, since i don't remember it's purpose - while (!isAtEnd()) { - if (match(Delimeters::Semicolon)) { next(); continue; } - - MemoryPtr stmt = parseStatement(); - if (!stmt && match(Delimeters::RightBraces)) { next(); continue; } - if (!stmt) { - while (!isAtEnd() && !isNextLine()) next(); - - size_t startPos = pos; - int guard = 0; - while (!isAtEnd() && guard++ < 100){ - if (isNextLine()){ - next(); - break; - } - if (match(Delimeters::RightBraces)){ - break; - } - next(); - } - - if (pos == startPos && !isAtEnd()) next(); - - if (guard >= 100) { - std::println(std::cerr, "{}{}{}", Color::TextHex("#ff5050"), formatStr(Localization::translate("Compiler.Core.ErrorManager.safetyGuard"), __func__, curToken().filePath, curToken().line, curToken().column), Color::Reset); - break; - } - - continue; - } - moduleNode->body.push_back(std::move(stmt)); - } - - moduleSource = std::move(moduleNode); -} - -// ==== Statement parsing ==== -MemoryPtr Parser::parseStatement() { - while (isNextLine()) next(); // Skips newlines in case they ever appear - if (isAtEnd()) return nullptr; - - Token token = curToken(); - std::vector> decorators = {}; - - if (match(TokenType::Preprocessor)) return parsePreprocessor(); - if (match(TokenType::Decorator)) decorators = parseDecoratorCalls(); - while (isNextLine()) next(); - - auto modifiers = parseModifiers(); - - if (match(TokenType::Identifier) && (match(lookupNext(), Operators::Nullable) || match(lookupNext(), Delimeters::Colon))) - return parseDeclaration(std::move(decorators), std::move(modifiers)); - - token = curToken(); - // === Control Flow Keywords === - if (match(TokenType::Keyword)) { - if (match(token, Keywords::If)) return parseIf(); - if (match(token, Keywords::Switch)) return parseSwitch(); - if (match(token, Keywords::Try)) return parseTryCatch(); - if (match(token, Keywords::For)) return parseFor(); - if (match(token, Keywords::While)) return parseWhile(); - if (match(token, Keywords::Return)) { - next(); - - // allow "return;" or "return }" - if (isNextLine() || match(Delimeters::RightBraces)) { - if (isNextLine()) next(); - auto node = ASTBuilder::createReturnStatement(nullptr); - node->line = token.line; node->column = token.column; node->filePath = token.filePath; - return node; - } - - auto expr = parseExpression(); - if (!expr) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{lookBack().filePath, lookBack().value, lookBack().line, lookBack().column}, - "ErrorManager.Syntax.MissingToken.noVariableAfter.message", {"return"}, - "ErrorManager.Syntax.MissingToken.noVariableAfter.hint", {"return"}); - return nullptr; - } - - if (isNextLine()) next(); - - auto node = ASTBuilder::createReturnStatement(std::move(expr)); - node->line = token.line; node->column = token.column; node->filePath = token.filePath; - return node; - } - if ((match(token, Keywords::Throw))) { - next(); - if (isNextLine() || match(Delimeters::RightBraces)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{token.filePath, token.value, token.line, token.column}, - "ErrorManager.Syntax.MissingToken.noVariableAfter.message", {"throw"}, - "ErrorManager.Syntax.MissingToken.noVariableAfter.hint", {"throw"}); - if (isNextLine()) next(); - return nullptr; - } - - auto expr = parseExpression(); - if (!expr) return nullptr; - if (isNextLine()) next(); - - auto node = ASTBuilder::createThrowStatement(std::move(expr)); - node->line = token.line; node->column = token.column; node->filePath = token.filePath; - return node; - } - if (match(token, Keywords::Break)) { - next(); - auto node = ASTBuilder::createBreakStatement(); - node->line = token.line; node->column = token.column; node->filePath = token.filePath; - return node; - } - if (match(token, Keywords::Continue)) { - next(); - auto node = ASTBuilder::createContinueStatement(); - node->line = token.line; node->column = token.column; node->filePath = token.filePath; - return node; - } - - // for modifier affected structures - if (match(token, Keywords::Function)) return parseFunction(std::move(decorators), std::move(modifiers)); - if (match(token, Keywords::Class)) return parseClass(std::move(decorators), std::move(modifiers)); - if (match(token, Keywords::Enum)) return parseEnum(std::move(decorators), std::move(modifiers)); - if (match(token, Keywords::Interface)) return parseInterface(std::move(decorators), std::move(modifiers)); - if (match(token, Keywords::Decorator)) return parseDecorator(std::move(decorators), std::move(modifiers)); - // FIXME: why is this here? - if (!modifiers.empty()) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::UnexpectedToken, - ErrorSpan{token.filePath, token.value, token.line, token.column}, - "ErrorManager.Syntax.UnexpectedToken.message", {token.value}, - "ErrorManager.Syntax.UnexpectedToken.hint"); - return nullptr; - } - - if (match(token, Keywords::Namespace)) return parseNamespace(); - } - - // === Block === - if (match(Delimeters::LeftBraces)) { - return parseBlock(); - } - - // === Fallback === - return parseExpression(); // Default to expression statement -} - -// ==== Expression parsing ==== -// Note: does not require next(); after it -MemoryPtr Parser::parseExpression() { - Token token = curToken(); - - // Unary operations - if (om.find(token.value) != om.end()) { - if (match(token, Operators::LogicalNot) || match(token, Operators::Subtract)) { - next(); - return parseUnary(token.value); - } - } - - // Assignment - if (match(TokenType::Identifier) && isAssignableAhead(0)) { - return parseAssignment(); - } - - // Fallback to binary - return parseBinary(0); -} - -MemoryPtr Parser::parseBinary(int prevPredecence) { - MemoryPtr left = parsePrimary(); - if (!left) return nullptr; - - while (true) { - Token token = curToken(); - int predecence = getOperatorPrecedence(token.value); - if (token.type != TokenType::Operator || predecence < prevPredecence) break; - std::string op = token.value; - next(); - - MemoryPtr right = parseBinary(predecence+1); - if (!right) return nullptr; - - auto node = ASTBuilder::createBinaryOperation(std::move(left), op, std::move(right)); - node->line = token.line; node->column = token.column; node->filePath = token.filePath; - left = std::move(node); - } - - return left; -} - -MemoryPtr Parser::parseUnary(const std::string& op) { - MemoryPtr operand = parsePrimary(); - if (!operand) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{lookBack().filePath, lookBack().value, lookBack().line, lookBack().column}, - "ErrorManager.Syntax.MissingToken.missingOperandUnary.message", {op}, - "ErrorManager.Syntax.MissingToken.missingOperandUnary.hint", {op}); - return nullptr; - } - return ASTBuilder::createUnaryOperation(op, std::move(operand)); -} - -MemoryPtr Parser::parsePrimary() { - Token token = curToken(); - - // Parenthesis, lambdas, arrays, sets, dicts - if (match(TokenType::Delimeter)) { - // Parenthesis / lambdas - if (match(Delimeters::LeftParen)) { - next(); - std::vector> exprs; - while (!match(Delimeters::RightParen)) { - MemoryPtr expr = parseExpression(); - if (!expr) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{token.filePath, token.value, token.line, token.column}, - "ErrorManager.Syntax.MissingToken.missingExpressionLambda.message", {"("}, - "ErrorManager.Syntax.MissingToken.missingExpressionLambda.hint"); - return nullptr; - } - exprs.push_back(std::move(expr)); - if (curToken().type == TokenType::Delimeter && isNextLine()) next(); - if (match(Delimeters::Comma)) next(); - else break; - } - if (!match(Delimeters::RightParen)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{token.filePath, token.value, token.line, token.column}, - "ErrorManager.Syntax.MissingToken.closingParen.message", {"("}, - "ErrorManager.Syntax.MissingToken.closingParen.hint", {"("}); - return nullptr; - } - next(); - // Check for lambda expressions here - if (match(Operators::AssignmentArrow)) { - next(); - auto block = parseBlock(); - if (!block) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::InvalidStatement, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.InvalidStatement.missedBlock.message", {"=>"}, - "ErrorManager.Syntax.InvalidStatement.missedBlock.hint", {"=>", "=>"}); - return nullptr; - } - return ASTBuilder::createLambda(std::move(exprs), std::move(block)); - } - - if (exprs.size() == 1) return std::move(exprs.front()); - return ASTBuilder::createTuple(std::move(exprs)); - } - // Arrays - if (match(Delimeters::LeftBracket)) { - if (match(lookBack(), TokenType::Identifier) && (match(lookupNext(), TokenType::Delimeter) && match(lookupNext(), Delimeters::RightBracket))) next(); - else { - // TODO: implement the strict types for arrays, sets, dicts? - next(); - std::vector> e; - - while (!match(Delimeters::RightBracket)) { - if (isAtEnd()) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{token.filePath, token.value, token.line, token.column}, - "ErrorManager.Syntax.MissingToken.closingBracket.message", {}, - "ErrorManager.Syntax.MissingToken.closingBracket.hint"); - return nullptr; - } - - auto element = parseExpression(); - if (!element) return nullptr; - - e.push_back(std::move(element)); - if (curToken().type == TokenType::Delimeter && isNextLine()) next(); // To allow multiline expressions of arrays. I think this would be absolutely neat sugar for everybody. - if (match(Delimeters::Comma)) next(); - else if (!match(Delimeters::RightBracket)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.closingBracket.message", {}, - "ErrorManager.Syntax.MissingToken.closingBracket.hint"); - return nullptr; - } - } - next(); - return ASTBuilder::createArray(std::move(e)); - } - } - // Sets / dicts - if (match(Delimeters::LeftBraces)) { - // TODO next time: Allow dicts and sets to dictate their explicit type (when you come back) - next(); - bool isDict = (match(lookupNext(), TokenType::Delimeter) && match(lookupNext(), Delimeters::Colon)); - - if (isDict) { - std::vector, MemoryPtr>> e; - while (!match(Delimeters::RightBraces)) { - if (isAtEnd()) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{token.filePath, token.value, token.line, token.column}, - "ErrorManager.Syntax.MissingToken.closingBrace.message", {"dict"}, - "ErrorManager.Syntax.MissingToken.closingBrace.hint"); - return nullptr; - } - - auto key = parseExpression(); - if (!key) return nullptr; - if (!match(Delimeters::Colon)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.dictColonAfterKey.message", {key->value}, - "ErrorManager.Syntax.MissingToken.dictColonAfterKey.hint"); - return nullptr; - } - next(); - auto val = parseExpression(); - if (!val) return nullptr; - e.push_back({std::move(key), std::move(val)}); - if (match(Delimeters::Comma)) next(); - else if (!match(Delimeters::RightBraces)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.closingBrace.message", {"dict"}, - "ErrorManager.Syntax.MissingToken.closingBrace.hint"); - return nullptr; - } - } - next(); - return ASTBuilder::createDict(std::move(e)); - } - - std::vector> e; - while (!match(Delimeters::RightBraces)) { - if (isAtEnd()) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{token.filePath, token.value, token.line, token.column}, - "ErrorManager.Syntax.MissingToken.closingBrace.message", {"set"}, - "ErrorManager.Syntax.MissingToken.closingBrace.hint"); - return nullptr; - } - - auto element = parseExpression(); - if (!element) return nullptr; - - e.push_back(std::move(element)); - if (match(Delimeters::Comma)) next(); - else if (!match(Delimeters::RightBraces)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.closingBrace.message", {"set"}, - "ErrorManager.Syntax.MissingToken.closingBrace.hint"); - return nullptr; - } - } - next(); - return ASTBuilder::createSet(std::move(e)); - } - } - // Data type + Booleans - else if ((match(TokenType::Number) || match(TokenType::String)) - || (match(TokenType::Identifier) && (token.value == "true" || token.value == "false"))) { - next(); - return ASTBuilder::createLiteral(token.value); - } - // Null - else if (match(TokenType::Null)) { - next(); - return ASTBuilder::createLiteral("null"); - } - - // Identifier/variable or function call - else if (match(TokenType::Identifier)) { - Token id = next(); - MemoryPtr node; - - // If function call - if (match(Delimeters::LeftParen)) { - next(); - std::vector> args; - - while (!match(Delimeters::RightParen)) { - auto arg = parseExpression(); - if (arg) args.push_back(std::move(arg)); - - if (match(Delimeters::Comma)) next(); - else break; - } - if (!match(Delimeters::RightParen)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{token.filePath, token.value, token.line, token.column}, - "ErrorManager.Syntax.MissingToken.closingParen.message", {token.value}, - "ErrorManager.Syntax.MissingToken.closingParen.hint", {token.value}); - return nullptr; - } - next(); - - auto callee = ASTBuilder::createVariable(id.value); - node = ASTBuilder::createCallExpression(std::move(callee), std::move(args)); - } else { - // else identifier/variable - node = ASTBuilder::createVariable(id.value); - } - - while (match(Delimeters::Dot)) { - next(); - MemoryPtr parent = std::move(node); - - if (!match(TokenType::Identifier)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::UnexpectedToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.UnexpectedToken.message", {curToken().value}, - "ErrorManager.Syntax.UnexpectedToken.hint"); - return nullptr; - } - MemoryPtr member = parsePrimary(); - if (!member) return nullptr; - if (member->type != ASTNodeType::Variable && member->type != ASTNodeType::CallExpression) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::InvalidStatement, - ErrorSpan{member->filePath, member->value, member->line, member->column}, - "ErrorManager.Syntax.InvalidStatement.message", {}, - "ErrorManager.Syntax.InvalidStatement.hint"); - return nullptr; - } - node = ASTBuilder::createMemberAccess(std::move(parent), std::move(member)); - } - node->line = id.line; node->column = id.column; node->filePath = id.filePath; - return node; - } - - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::UnexpectedToken, - ErrorSpan{token.filePath, token.value, token.line, token.column}, - "ErrorManager.Syntax.UnexpectedToken.message", {token.value}, - "ErrorManager.Syntax.UnexpectedToken.hint"); - return nullptr; -} - -std::optional> Parser::parseGenericParameters(const std::string& ownerName) { - std::vector parameters; - - if (!match(Operators::LessThan)) return parameters; - - Token openToken = curToken(); - next(); - - if (match(Operators::GreaterThan)) { - errorManager->addError(ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{openToken.filePath, openToken.value, openToken.line, openToken.column}, - "ErrorManager.Syntax.MissingToken.genericParameter.message", - {ownerName}, - "ErrorManager.Syntax.MissingToken.genericParameter.hint"); - return std::nullopt; - } - - while (!isAtEnd()) { - Token nameToken = curToken(); - - if (!match(TokenType::Identifier)) { - errorManager->addError(ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{nameToken.filePath, nameToken.value, nameToken.line, nameToken.column}, - "ErrorManager.Syntax.MissingToken.genericParameter.message", - {ownerName}, - "ErrorManager.Syntax.MissingToken.genericParameter.hint"); - return std::nullopt; - } - - for (const auto& parameter : parameters) { - if (parameter.name == nameToken.value) { - errorManager->addError(ErrorType::Syntax, SyntaxErrors::InvalidStatement, - ErrorSpan{nameToken.filePath, nameToken.value, nameToken.line, nameToken.column}, - "ErrorManager.Syntax.InvalidStatement.duplicateGenericParameter.message", - {nameToken.value, ownerName}, - "ErrorManager.Syntax.InvalidStatement.duplicateGenericParameter.hint"); - return std::nullopt; - } - } - - parameters.push_back(GenericParameter{ - .name = nameToken.value, - .line = nameToken.line, - .column = nameToken.column, - .filePath = nameToken.filePath - }); - - next(); - - if (match(Delimeters::Comma)) { - next(); - - if (match(Operators::GreaterThan)) { - errorManager->addError(ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.genericParameter.message", - {ownerName}, - "ErrorManager.Syntax.MissingToken.genericParameter.hint"); - return std::nullopt; - } - continue; - } - break; - } - - if (!match(Operators::GreaterThan)) { - errorManager->addError(ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.genericClosingAngle.message", - {ownerName}, - "ErrorManager.Syntax.MissingToken.genericClosingAngle.hint"); - return std::nullopt; - } - next(); - - return parameters; -} - -MemoryPtr Parser::parseType() { - Token typeToken = curToken(); - - if (!match(TokenType::Identifier)) { - errorManager->addError(ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{typeToken.filePath, typeToken.value, typeToken.line, typeToken.column}, - "ErrorManager.Syntax.InvalidStatement.noType.message", {}, - "ErrorManager.Syntax.InvalidStatement.noType.hint"); - return nullptr; - } - - std::string typeName = typeToken.value; - MemoryPtr varType = ASTBuilder::createVariable(typeName); - next(); - - auto result = parseGenericArguments(typeName); - if (!result) return nullptr; - - std::vector> genericArguments = std::move(*result); - - MemoryPtr varSize = nullptr; - if (match(Delimeters::LeftBracket)) { - next(); - - if (!match(Delimeters::RightBracket)) { - varSize = parseExpression(); - if (!varSize) { - errorManager->addError(ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.arraySize.message", {typeName}, - "ErrorManager.Syntax.MissingToken.arraySize.hint"); - return nullptr; - } - } - - if (!match(Delimeters::RightBracket)) { - errorManager->addError(ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.closingBracket.message", {}, - "ErrorManager.Syntax.MissingToken.closingBracket.hint"); - return nullptr; - } - - next(); - } - - auto node = ASTBuilder::createRawType(std::move(varType), std::move(varSize), std::move(genericArguments)); - node->line = typeToken.line; node->column = typeToken.column; node->filePath = typeToken.filePath; - return node; -} - -MemoryPtr Parser::parseDeclaration(std::vector> decorators, std::vector> modifiers){ - Token token = curToken(); - MemoryPtr var = ASTBuilder::createVariable(token.value); - next(); - - bool isNullable = false; - if (match(Operators::Nullable)) { isNullable = true; next(); } - - MemoryPtr rawType = nullptr; - if (!match(Delimeters::Colon)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{token.filePath, token.value, token.line, token.column}, - "ErrorManager.Syntax.MissingToken.colonAfterVar.message", {token.value}, - "ErrorManager.Syntax.MissingToken.colonAfterVar.hint"); - return nullptr; - } - next(); - - bool isTypeInference = false; - MemoryPtr value = nullptr; - if (match(Operators::Assign)) { - isTypeInference = true; - next(); - value = parseExpression(); - if (!value) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{token.filePath, token.value, token.line, token.column}, - "ErrorManager.Syntax.MissingToken.noVariableAfter.message", {"="}, - "ErrorManager.Syntax.MissingToken.noVariableAfter.hint", {"="}); - return nullptr; - } - } else { - rawType = parseType(); - if (match(Operators::Assign)){ - next(); - value = parseExpression(); - if (!value) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{token.filePath, token.value, token.line, token.column}, - "ErrorManager.Syntax.MissingToken.noVariableAfter.message", {"="}, - "ErrorManager.Syntax.MissingToken.noVariableAfter.hint", {"="}); - return nullptr; - } - } - } - - auto node = ASTBuilder::createDeclaration(std::move(var), std::move(rawType), std::move(value), isNullable, isTypeInference, std::move(decorators), std::move(modifiers)); - node->line = token.line; node->column = token.column; node->filePath = token.filePath; - return node; -} - -MemoryPtr Parser::parseAssignment() { - - MemoryPtr var = parsePrimary(); - if (!var) return nullptr; - if (var->type != ASTNodeType::Variable && var->type != ASTNodeType::MemberAccess) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::InvalidStatement, - ErrorSpan{var->filePath, var->value, var->line, var->column}, - "ErrorManager.Syntax.InvalidStatement.message", {}, - "ErrorManager.Syntax.InvalidStatement.hint"); - return nullptr; - } - - Token token = curToken(); - std::string op = token.value; - next(); - - MemoryPtr value = parseExpression(); - if (!value) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{token.filePath, token.value, token.line, token.column}, - "ErrorManager.Syntax.MissingToken.noVariableAfter.message", {op}, - "ErrorManager.Syntax.MissingToken.noVariableAfter.hint", {op}); - return nullptr; - } - - auto node = ASTBuilder::createAssignment(std::move(var), op, std::move(value)); - node->line = token.line; node->column = token.column; node->filePath = token.filePath; - return node; -} - -// ==== Control flow ==== -MemoryPtr Parser::parseIf() { - auto token = curToken(); - next(); - - if (!match(Delimeters::LeftParen)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{token.filePath, token.value, token.line, token.column}, - "ErrorManager.Syntax.MissingToken.openingParen.message", {"if"}, - "ErrorManager.Syntax.MissingToken.openingParen.hint", {"if"}); - return nullptr; - } - next(); // consume '(' - if (match(Delimeters::RightParen)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::InvalidStatement, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.InvalidStatement.emptyCondition.message", {"if"}, - "ErrorManager.Syntax.InvalidStatement.emptyCondition.hint", {"if"}); - next(); // consume ')' - return nullptr; - } - - MemoryPtr condition = parseExpression(); - if (!condition) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::InvalidStatement, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.InvalidStatement.expectedCondition.message", {"if"}, - "ErrorManager.Syntax.InvalidStatement.expectedCondition.hint", {"if"}); - return nullptr; - } - if (!match(Delimeters::RightParen)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.closingParen.message", {"if"}, - "ErrorManager.Syntax.MissingToken.closingParen.hint", {"if"}); - return nullptr; - } - next(); - - MemoryPtr ifBlock = parseBlockorStatement(); - MemoryPtr elseBlock = nullptr; - - if (match(Keywords::Else)) { - next(); - elseBlock = parseBlockorStatement(); - } - - auto node = ASTBuilder::createIf(std::move(condition), std::move(ifBlock), std::move(elseBlock)); - node->line = token.line; node->column = token.column; node->filePath = token.filePath; - return node; -} - -MemoryPtr Parser::parseSwitch() { - auto token = curToken(); - next(); - - if (!match(Delimeters::LeftParen)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{token.filePath, token.value, token.line, token.column}, - "ErrorManager.Syntax.MissingToken.openingParen.message", {"switch"}, - "ErrorManager.Syntax.MissingToken.openingParen.hint", {"switch"}); - return nullptr; - } - next(); - - MemoryPtr expr = parseExpression(); - if (!expr) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::InvalidStatement, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.InvalidStatement.expectedCondition.message", {"switch"}, - "ErrorManager.Syntax.InvalidStatement.expectedCondition.hint", {"switch"}); - return nullptr; - } - - if (!match(Delimeters::RightParen)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.closingParen.message", {"switch"}, - "ErrorManager.Syntax.MissingToken.closingParen.hint", {"switch"}); - return nullptr; - } - next(); - - if (!match(Delimeters::LeftBraces)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.openingBrace.message", {"switch"}, - "ErrorManager.Syntax.MissingToken.openingBrace.hint"); - return nullptr; - } - next(); - while (match(Delimeters::Semicolon)) next(); - - std::vector> cases; - MemoryPtr defaultCase = nullptr; - - while (!match(Delimeters::RightBraces)) { - Token tok = curToken(); - - if (match(Keywords::Case)) { - next(); // consume 'case' - MemoryPtr condition = parseExpression(); - if (!match(Delimeters::Colon)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.colonInCase.message", {}, - "ErrorManager.Syntax.MissingToken.colonInCase.hint"); - return nullptr; - } - next(); // consume ':' - auto body = parseBlockorStatement(); - if (!body) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::InvalidStatement, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.InvalidStatement.expectedBody.message", {"case"}, - "ErrorManager.Syntax.InvalidStatement.expectedBody.hint", {"case"}); - return nullptr; - } - while (match(Delimeters::Semicolon)) next(); - cases.push_back(ASTBuilder::createCase(std::move(condition), std::move(body))); - } - else if (match(Keywords::Default)) { - next(); - if (!match(Delimeters::Colon)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.colonInDefault.message", {}, - "ErrorManager.Syntax.MissingToken.colonInDefault.hint"); - return nullptr; - } - next(); - auto body = parseBlockorStatement(); - if (!body) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::InvalidStatement, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.InvalidStatement.expectedBody.message", {"default"}, - "ErrorManager.Syntax.InvalidStatement.expectedBody.hint", {"default"}); - return nullptr; - } - while (match(Delimeters::Semicolon)) next(); - defaultCase = ASTBuilder::createDefaultCase(std::move(body)); - } - else if (isNextLine()) next(); - else { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::UnexpectedToken, - ErrorSpan{tok.filePath, tok.value, tok.line, tok.column}, - "ErrorManager.Syntax.InvalidStatement.unexpectedInSwitch.message", {tok.value}, - "ErrorManager.Syntax.InvalidStatement.unexpectedInSwitch.hint"); - return nullptr; - } - } - if (!match(Delimeters::RightBraces)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.closingBrace.message", {"switch"}, - "ErrorManager.Syntax.MissingToken.closingBrace.hint"); - return nullptr; - } - next(); - auto node = ASTBuilder::createSwitch(std::move(expr), std::move(cases), std::move(defaultCase)); - node->line = token.line; node->column = token.column; node->filePath = token.filePath; - return node; -}; - -MemoryPtr Parser::parseTryCatch() { - auto token = curToken(); - next(); - - auto tryBlock = parseBlock(); - if (!tryBlock) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::InvalidStatement, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.InvalidStatement.expectedBody.message", {"try"}, - "ErrorManager.Syntax.InvalidStatement.expectedBody.hint", {"try"}); - return nullptr; - } - - if (!match(Keywords::Catch)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.catchAfterTry.message", {}, - "ErrorManager.Syntax.MissingToken.catchAfterTry.hint"); - return nullptr; - } - next(); - - if (!match(Delimeters::LeftParen)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.openingParen.message", {"catch"}, - "ErrorManager.Syntax.MissingToken.openingParen.hint", {"catch"}); - return nullptr; - } - next(); - - if (!match(TokenType::Identifier)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.exceptionVar.message", {}, - "ErrorManager.Syntax.MissingToken.exceptionVar.hint"); - return nullptr; - } - auto varName = curToken().value; - auto exception = ASTBuilder::createVariable(varName); - next(); - - if (!match(Delimeters::RightParen)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.closingParen.message", {"catch"}, - "ErrorManager.Syntax.MissingToken.closingParen.hint", {"catch"}); - return nullptr; - } - next(); - - auto catchBlock = parseBlock(); - if (!catchBlock) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::InvalidStatement, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.InvalidStatement.expectedBody.message", {"catch"}, - "ErrorManager.Syntax.InvalidStatement.expectedBody.hint", {"catch"}); - return nullptr; - } - - auto node = ASTBuilder::createTryCatch(std::move(tryBlock), std::move(exception), std::move(catchBlock)); - node->line = token.line; node->column = token.column; node->filePath = token.filePath; - return node; -} - -MemoryPtr Parser::parseFor() { - auto token = curToken(); - next(); - - if (!match(Delimeters::LeftParen)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{token.filePath, token.value, token.line, token.column}, - "ErrorManager.Syntax.MissingToken.openingParen.message", {"for"}, - "ErrorManager.Syntax.MissingToken.openingParen.hint", {"for"}); - return nullptr; - } - next(); - - if (curToken().type != TokenType::Identifier) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.noVariableAfter.message", {"for ("}, - "ErrorManager.Syntax.MissingToken.noVariableAfter.hint", {"for ("}); - return nullptr; - } - - std::string varName = curToken().value; - auto varNode = ASTBuilder::createVariable(varName); - next(); - - if (!match(Delimeters::Colon)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.colonInFor.message", {varName}, - "ErrorManager.Syntax.MissingToken.colonInFor.hint"); - return nullptr; - } - next(); - - MemoryPtr iterable = parseExpression(); - if (!iterable) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::InvalidStatement, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.InvalidStatement.expectedIterable.message", {}, - "ErrorManager.Syntax.InvalidStatement.expectedIterable.hint"); - return nullptr; - } - - if (!match(Delimeters::RightParen)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.closingParen.message", {"for"}, - "ErrorManager.Syntax.MissingToken.closingParen.hint", {"for"}); - return nullptr; - } - next(); - - auto body = parseBlock(); - if (!body) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::InvalidStatement, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.InvalidStatement.expectedBody.message", {"for"}, - "ErrorManager.Syntax.InvalidStatement.expectedBody.hint", {"for"}); - return nullptr; - } - - auto node = ASTBuilder::createForLoop(std::move(varNode), std::move(iterable), std::move(body)); - node->line = token.line; node->column = token.column; node->filePath = token.filePath; - return node; -} - -MemoryPtr Parser::parseWhile() { - auto token = curToken(); - next(); - - if (!match(Delimeters::LeftParen)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{token.filePath, token.value, token.line, token.column}, - "ErrorManager.Syntax.MissingToken.openingParen.message", {"while"}, - "ErrorManager.Syntax.MissingToken.openingParen.hint", {"while"}); - return nullptr; - } - next(); - MemoryPtr condition = parseExpression(); - if (!condition) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::InvalidStatement, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.InvalidStatement.expectedCondition.message", {"while"}, - "ErrorManager.Syntax.InvalidStatement.expectedCondition.hint", {"while"}); - return nullptr; - } - if (!match(Delimeters::RightParen)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.closingParen.message", {"while"}, - "ErrorManager.Syntax.MissingToken.closingParen.hint", {"while"}); - return nullptr; - } - next(); - - auto body = parseBlock(); - if (!body) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::InvalidStatement, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.InvalidStatement.expectedBody.message", {"while"}, - "ErrorManager.Syntax.InvalidStatement.expectedBody.hint", {"while"}); - return nullptr; - } - - auto node = ASTBuilder::createWhileLoop(std::move(condition), std::move(body)); - node->line = token.line; node->column = token.column; node->filePath = token.filePath; - return node; -} - - -// ==== Declarations ==== -MemoryPtr Parser::parseFunction(std::vector> decorators, std::vector> modifiers) { - next(); - - Token nameToken = curToken(); - if (!match(TokenType::Identifier)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{nameToken.filePath, nameToken.value, nameToken.line, nameToken.column}, - "ErrorManager.Syntax.MissingToken.functionName.message", {}, - "ErrorManager.Syntax.MissingToken.functionName.hint"); - return nullptr; - } - std::string funcName = nameToken.value; - next(); - - if (!match(Delimeters::LeftParen)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{nameToken.filePath, nameToken.value, nameToken.line, nameToken.column}, - "ErrorManager.Syntax.MissingToken.functionParams.message", {funcName}, - "ErrorManager.Syntax.MissingToken.functionParams.hint", {funcName}); - return nullptr; - } - next(); - - std::vector> params; - while (!match(Delimeters::RightParen)) { - Token paramName = curToken(); - if (paramName.type != TokenType::Identifier) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{paramName.filePath, paramName.value, paramName.line, paramName.column}, - "ErrorManager.Syntax.MissingToken.functionParamName.message", {funcName}, - "ErrorManager.Syntax.MissingToken.functionParamName.hint"); - return nullptr; - } - next(); - MemoryPtr type = nullptr; - if (match(Delimeters::Colon)) { - next(); - type = parseType(); - } - - MemoryPtr defaultValue = nullptr; - if (match(Operators::Assign)) { - next(); - defaultValue = parseExpression(); - if (!defaultValue) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.functionParamDefault.message", {}, - "ErrorManager.Syntax.MissingToken.functionParamDefault.hint"); - return nullptr; - } - } - auto param = ASTBuilder::createParameter(paramName.value, std::move(type), std::move(defaultValue)); - param->line = paramName.line; param->column = paramName.column; param->filePath = paramName.filePath; - params.push_back(std::move(param)); - if (match(Delimeters::Comma)) next(); - else break; - } - - if (!match(Delimeters::RightParen)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.functionClosingParen.message", {funcName}, - "ErrorManager.Syntax.MissingToken.functionClosingParen.hint"); - return nullptr; - } - next(); - - MemoryPtr returnType = nullptr; - if (match(Operators::TypeArrow)) { - next(); - returnType = parseType(); - } - - bool isIntrinsic = false; - for (const auto& modifier : modifiers) { - if (modifier && modifier->modifier == ASTModifierType::Intrinsic) { - isIntrinsic = true; - break; - } - } - - MemoryPtr body = nullptr; - - if (isIntrinsic) { - while (isNextLine()) next(); - - if (match(Delimeters::RightBraces) || isAtEnd()) {} // не понял че тут - else if (match(Delimeters::LeftBraces)) { - errorManager->addError(ErrorType::Syntax, SyntaxErrors::InvalidStatement, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.InvalidStatement.intrinsicBody.message", - {funcName}, - "ErrorManager.Syntax.InvalidStatement.intrinsicBody.hint"); - return nullptr; - } - } - else { - body = parseBlock(); - if (!body) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::InvalidStatement, - ErrorSpan{nameToken.filePath, nameToken.value, nameToken.line, nameToken.column}, - "ErrorManager.Syntax.MissingToken.functionBody.message", {funcName}, - "ErrorManager.Syntax.MissingToken.functionBody.hint", {funcName}); - return nullptr; - } - } - - auto node = ASTBuilder::createFunction(funcName, std::move(params), std::move(returnType), std::move(body), std::move(decorators), std::move(modifiers)); - node->line = nameToken.line; node->column = nameToken.column; node->filePath = nameToken.filePath; - node->isIntrinsic = isIntrinsic; - return node; -} - -MemoryPtr Parser::parseClass(std::vector> decorators, std::vector> modifiers) { - next(); - - Token nameToken = curToken(); - if (!match(TokenType::Identifier)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{nameToken.filePath, nameToken.value, nameToken.line, nameToken.column}, - "ErrorManager.Syntax.MissingToken.className.message", {}, - "ErrorManager.Syntax.MissingToken.className.hint"); - return nullptr; - } - std::string className = nameToken.value; - next(); - - // Checking if class is inherited - MemoryPtr super = nullptr; - if (match(Operators::InheritanceArrow)) { - next(); - super = ASTBuilder::createVariable(curToken().value); - next(); - } - - if (!match(Delimeters::LeftBraces)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{nameToken.filePath, nameToken.value, nameToken.line, nameToken.column}, - "ErrorManager.Syntax.MissingToken.classBody.message", {className}, - "ErrorManager.Syntax.MissingToken.classBody.hint"); - return nullptr; - } - next(); - while (match(Delimeters::Semicolon)) next(); - - std::vector> fields; - std::vector> methods; - MemoryPtr constructor = nullptr; - - while (!match(Delimeters::RightBraces)) { - Token token = curToken(); - - std::vector> decs = {}; - if (match(TokenType::Decorator)) decs = parseDecoratorCalls(); - auto modifs = parseModifiers(); - - if (match(TokenType::Identifier, className)) { - auto cfilePath = curToken().filePath; auto cLine = curToken().line; auto cColumn = curToken().column; - constructor = parseConstructor(std::move(decs), std::move(modifs)); - if (!constructor) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::InvalidStatement, - ErrorSpan{cfilePath, curToken().value, cLine, cColumn}, - "ErrorManager.Syntax.InvalidStatement.constructorFailed.message", {className}, - "ErrorManager.Syntax.InvalidStatement.constructorFailed.hint"); - return nullptr; - } - } - else if (match(Keywords::Function)) { - auto method = parseFunction(std::move(decs), std::move(modifs)); - if (method) methods.push_back(std::move(method)); - } - else if (match(token, TokenType::Identifier) && (match(lookupNext(), TokenType::Delimeter) && match(lookupNext(), Delimeters::Colon))) { - MemoryPtr decl = parseDeclaration(std::move(decs), std::move(modifs)); - fields.push_back(std::move(decl)); - if (isNextLine()) next(); - } - else if (isNextLine()) next(); - else { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::UnexpectedToken, - ErrorSpan{token.filePath, token.value, token.line, token.column}, - "ErrorManager.Syntax.InvalidStatement.unexpectedInClass.message", {token.value}, - "ErrorManager.Syntax.InvalidStatement.unexpectedInClass.hint"); - break; - } - } - - next(); - auto node = ASTBuilder::createClass(className, std::move(constructor), std::move(super), std::move(fields), std::move(methods), std::move(decorators), std::move(modifiers)); - node->line = nameToken.line; node->column = nameToken.column; node->filePath = nameToken.filePath; - return node; -} - -MemoryPtr Parser::parseBlock() { - if (!match(Delimeters::LeftBraces)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.openingBrace.message", {"block"}, - "ErrorManager.Syntax.MissingToken.openingBrace.hint"); - return nullptr; - } - next(); - while (isNextLine()) next(); - - std::vector> block = {}; - - while (!isAtEnd()) { - while (isNextLine()) next(); - - if (match(Delimeters::RightBraces)) { - break; - } - - MemoryPtr stmt = parseStatement(); - if (!stmt && match(Delimeters::RightBraces)) { - break; - } - if (!stmt) { - - while (!isAtEnd() && !isNextLine()) next(); - - size_t startPos = pos; - int guard = 0; - while (!isAtEnd() && guard++ < 100){ - if (isNextLine()){ next(); break; } - if (match(Delimeters::RightBraces)){ break; } - next(); - } - - if (pos == startPos && !isAtEnd()) next(); - - if (guard >= 100) { - break; - } - - if (isAtEnd()) break; - continue; - } - block.push_back(std::move(stmt)); - while (isNextLine()) next(); - } - if (!match(Delimeters::RightBraces)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.closingBrace.message", {"block"}, - "ErrorManager.Syntax.MissingToken.closingBrace.hint"); - return nullptr; - } - next(); - return ASTBuilder::createBlock(std::move(block)); -} - -MemoryPtr Parser::parseDecorator(std::vector> decorators, std::vector> modifiers, bool isCall) { - Token nameToken = curToken(); - MemoryPtr node; - - if (!isCall) { - next(); - if (!match(TokenType::Identifier)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{nameToken.filePath, nameToken.value, nameToken.line, nameToken.column}, - "ErrorManager.Syntax.MissingToken.decoratorName.message", {}, - "ErrorManager.Syntax.MissingToken.decoratorName.hint"); - return nullptr; - } - std::string name = curToken().value; - next(); - - std::vector> params; - if (match(Delimeters::LeftParen)) { - next(); - while (!match(Delimeters::RightParen)) { - if (!match(TokenType::Identifier)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.decoratorParamName.message", {name}, - "ErrorManager.Syntax.MissingToken.decoratorParamName.hint"); - return nullptr; - } - - Token tok = curToken(); - std::string paramName = tok.value; - next(); - - MemoryPtr type = nullptr; - if (match(Delimeters::Colon)) { - next(); - type = parseType(); - } - - MemoryPtr defaultValue = nullptr; - if (match(Operators::Assign)) { - next(); - defaultValue = parseExpression(); - if (!defaultValue) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.decoratorParamDefault.message", {}, - "ErrorManager.Syntax.MissingToken.decoratorParamDefault.hint"); - return nullptr; - } - } - - params.push_back(ASTBuilder::createParameter(paramName, std::move(type), std::move(defaultValue))); - if (match(Delimeters::Comma)) next(); - else break; - } - - if (!match(Delimeters::RightParen)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.decoratorClosingParen.message", {name}, - "ErrorManager.Syntax.MissingToken.decoratorClosingParen.hint"); - return nullptr; - } - next(); - } - - auto block = parseBlock(); - if (!block) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::InvalidStatement, - ErrorSpan{nameToken.filePath, nameToken.value, nameToken.line, nameToken.column}, - "ErrorManager.Syntax.MissingToken.decoratorBody.message", {name}, - "ErrorManager.Syntax.MissingToken.decoratorBody.hint"); - return nullptr; - } - node = ASTBuilder::createDecorator(name, std::move(params), std::move(block), std::move(decorators), std::move(modifiers)); - node->line = nameToken.line; node->column = nameToken.column; node->filePath = nameToken.filePath; - } else { - std::string name = nameToken.value; - next(); - - std::vector> args; - if (match(Delimeters::LeftParen)) { - next(); - while (!match(Delimeters::RightParen)) { - auto arg = parseExpression(); - if (arg) args.push_back(std::move(arg)); - - if (match(Delimeters::Comma)) next(); - else break; - } - if (!match(Delimeters::RightParen)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{nameToken.filePath, nameToken.value, nameToken.line, nameToken.column}, - "ErrorManager.Syntax.MissingToken.decoratorClosingParen.message", {name}, - "ErrorManager.Syntax.MissingToken.decoratorClosingParen.hint"); - return nullptr; - } - next(); - } - node = ASTBuilder::createCallExpression(ASTBuilder::createVariable(name), std::move(args), true); - node->line = nameToken.line; node->column = nameToken.column; node->filePath = nameToken.filePath; - } - return node; -} - -std::vector> Parser::parseDecoratorCalls() { - std::vector> calls; - while (match(TokenType::Decorator)) { - auto node = parseDecorator({}, {}, true); - if (!node) break; // error already reported by Lexer::parseDecorator - auto call = as(std::move(node)); - if (!call) { - // [internal] - break; - } - calls.push_back(std::move(call)); - } - - return calls; -} - -std::vector> Parser::parseModifiers() { - std::vector> modifiers; - - while (curToken().type == TokenType::Keyword) { - if (match(Keywords::Static)) - modifiers.push_back(ASTBuilder::createModifier(ASTModifierType::Static)); - else if (match(Keywords::Const)) - modifiers.push_back(ASTBuilder::createModifier(ASTModifierType::Const)); - else if (match(Keywords::Public)) - modifiers.push_back(ASTBuilder::createModifier(ASTModifierType::Public)); - else if (match(Keywords::Protected)) - modifiers.push_back(ASTBuilder::createModifier(ASTModifierType::Protected)); - else if (match(Keywords::Private)) - modifiers.push_back(ASTBuilder::createModifier(ASTModifierType::Private)); - else if (match(Keywords::Override)) - modifiers.push_back(ASTBuilder::createModifier(ASTModifierType::Override)); - else if (match(Keywords::Async)) - modifiers.push_back(ASTBuilder::createModifier(ASTModifierType::Async)); - else if (match(Keywords::Debug)) - modifiers.push_back(ASTBuilder::createModifier(ASTModifierType::Debug)); - else if (match(Keywords::Intrinsic)) - modifiers.push_back(ASTBuilder::createModifier(ASTModifierType::Intrinsic)); - else break; - next(); - } - - return modifiers; -} - -MemoryPtr Parser::parsePreprocessor() { - Token token = curToken(); - MemoryPtr node; - - if (match(Preprocessors::Import)) { - next(); - if (!match(TokenType::String)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{token.filePath, token.value, token.line, token.column}, - "ErrorManager.Syntax.MissingToken.importTarget.message", {}, - "ErrorManager.Syntax.MissingToken.importTarget.hint"); - return nullptr; - } - auto moduleStr = curToken().value; - ASTImportType importType = ASTImportType::Native; - if ((moduleStr.contains("/") || moduleStr.contains(".")) && moduleStr.contains(":")) importType = ASTImportType::ForeignRelative; - else if (moduleStr.contains("/") || moduleStr.contains(".")) importType = ASTImportType::Relative; - else if (moduleStr.contains(":")) importType = ASTImportType::Foreign; - - std::string alias; - next(); - if (match(Keywords::As)) { - next(); - if (!match(TokenType::Identifier)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.importAlias.message", {}, - "ErrorManager.Syntax.MissingToken.importAlias.hint"); - return nullptr; - } - alias = curToken().value; - next(); - } - node = ASTBuilder::createImport(moduleStr, alias, importType); - } - else if (match(Preprocessors::Macro)) { - next(); - if (!match(TokenType::Identifier)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{token.filePath, token.value, token.line, token.column}, - "ErrorManager.Syntax.MissingToken.macroIdentifier.message", {}, - "ErrorManager.Syntax.MissingToken.macroIdentifier.hint"); - return nullptr; - } - next(); - std::string value; - while (!isNextLine()) { - value += curToken().value; - next(); - } - node = ASTBuilder::createPreprocessor(ASTPreprocessorDirectiveType::Macro, value); - } - else if (match(Preprocessors::Unsafe)) { - next(); - node = ASTBuilder::createPreprocessor(ASTPreprocessorDirectiveType::Unsafe); - } - else node = ASTBuilder::createPreprocessor(ASTPreprocessorDirectiveType::None); - node->line = token.line; node->column = token.column; node->filePath = token.filePath; - return node; -} - -MemoryPtr Parser::parseEnum(std::vector> decorators, std::vector> modifiers) { - next(); - if (!match(TokenType::Identifier)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.enumName.message", {}, - "ErrorManager.Syntax.MissingToken.enumName.hint"); - return nullptr; - } - auto enumToken = curToken(); - next(); - if (!match(Delimeters::LeftBraces)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{enumToken.filePath, enumToken.value, enumToken.line, enumToken.column}, - "ErrorManager.Syntax.MissingToken.enumBody.message", {enumToken.value}, - "ErrorManager.Syntax.MissingToken.enumBody.hint"); - return nullptr; - } - next(); - while (isNextLine()) next(); - - std::vector> elements; - - while (!match(Delimeters::RightBraces)) { - while (isNextLine()) next(); - if (match(Delimeters::RightBraces)) break; - - if (!match(TokenType::Identifier)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::UnexpectedToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.InvalidStatement.unexpectedInEnum.message", {curToken().value}, - "ErrorManager.Syntax.InvalidStatement.unexpectedInEnum.hint"); - return nullptr; - } - auto name = curToken().value; - MemoryPtr value = nullptr; - - next(); - if (match(Operators::Assign)) { - next(); - auto tmp = parsePrimary(); - if (!tmp || tmp->type != ASTNodeType::Literal) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::InvalidStatement, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.InvalidStatement.enumNonLiteralValue.message", {name}, - "ErrorManager.Syntax.InvalidStatement.enumNonLiteralValue.hint"); - return nullptr; - } - value = as(std::move(tmp)); - } - elements.push_back(ASTBuilder::createEnumMember(name, std::move(value))); - - if (match(Delimeters::Comma)) next(); - else if (isNextLine()) next(); - else if (!match(Delimeters::RightBraces)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::UnexpectedToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.InvalidStatement.enumDelimiter.message", {curToken().value}, - "ErrorManager.Syntax.InvalidStatement.enumDelimiter.hint"); - return nullptr; - } - else break; - } - if (!match(Delimeters::RightBraces)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.enumClosingBrace.message", {enumToken.value}, - "ErrorManager.Syntax.MissingToken.enumClosingBrace.hint"); - return nullptr; - } - next(); - - auto node = ASTBuilder::createEnum(enumToken.value, std::move(elements), std::move(decorators), std::move(modifiers)); - node->line = enumToken.line; node->column = enumToken.column; node->filePath = enumToken.filePath; - return node; -} - -MemoryPtr Parser::parseInterface(std::vector> decorators, std::vector> modifiers) { - next(); - - if (!match(TokenType::Identifier)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.interfaceName.message", {}, - "ErrorManager.Syntax.MissingToken.interfaceName.hint"); - return nullptr; - } - auto interfaceToken = curToken(); - next(); - if (!match(Delimeters::LeftBraces)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{interfaceToken.filePath, interfaceToken.value, interfaceToken.line, interfaceToken.column}, - "ErrorManager.Syntax.MissingToken.interfaceBody.message", {interfaceToken.value}, - "ErrorManager.Syntax.MissingToken.interfaceBody.hint"); - return nullptr; - } - next(); - while (isNextLine()) next(); - - std::vector> elements; - std::vector> params; - - while (!match(Delimeters::RightBraces)) { - if (curToken().type == TokenType::Identifier) { - auto name = curToken().value; - bool isNullable = false; - next(); - if (match(Operators::Nullable)) { - isNullable = true; - next(); - } - - if (!match(Delimeters::Colon)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.colonInInterface.message", {name}, - "ErrorManager.Syntax.MissingToken.colonInInterface.hint"); - return nullptr; - } - next(); - - MemoryPtr rawType = parseType(); - elements.push_back(ASTBuilder::createInterfaceField(name, std::move(rawType), isNullable)); - - if (isNextLine()) next(); - else if (!match(Delimeters::RightBraces)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::UnexpectedToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.InvalidStatement.interfaceDelimiter.message", {curToken().value}, - "ErrorManager.Syntax.InvalidStatement.interfaceDelimiter.hint"); - return nullptr; - } - else break; - } else if (match(Keywords::Function)) { - next(); - if (curToken().type != TokenType::Identifier) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.interfaceMethodName.message", {interfaceToken.value}, - "ErrorManager.Syntax.MissingToken.interfaceMethodName.hint"); - return nullptr; - } - std::string methodName = curToken().value; - next(); - if (!match(Delimeters::LeftParen)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.interfaceMethodParams.message", {methodName}, - "ErrorManager.Syntax.MissingToken.interfaceMethodParams.hint"); - return nullptr; - } - next(); - while (!match(Delimeters::RightParen)) { - Token token = curToken(); - if (!match(TokenType::Identifier)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{token.filePath, token.value, token.line, token.column}, - "ErrorManager.Syntax.MissingToken.interfaceMethodParamName.message", {methodName}, - "ErrorManager.Syntax.MissingToken.interfaceMethodParamName.hint"); - return nullptr; - } - std::string paramName = token.value; - next(); - MemoryPtr type = nullptr; - if (match(Delimeters::Colon)) { - next(); - type = parseType(); - } - params.push_back(ASTBuilder::createParameter(paramName, std::move(type), nullptr)); - if (match(Delimeters::Comma)) next(); - else break; - } - if (!match(Delimeters::RightParen)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.interfaceMethodClosingParen.message", {methodName}, - "ErrorManager.Syntax.MissingToken.interfaceMethodClosingParen.hint"); - return nullptr; - } - next(); - MemoryPtr returnType = nullptr; - if (match(Operators::TypeArrow)) { - next(); - if (curToken().type != TokenType::Identifier) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.interfaceReturnType.message", {methodName}, - "ErrorManager.Syntax.MissingToken.interfaceReturnType.hint"); - return nullptr; - } - returnType = ASTBuilder::createVariable(curToken().value); - next(); - } - elements.push_back(ASTBuilder::createInterfaceField(methodName, nullptr, false, true, std::move(params), std::move(returnType))); - params.clear(); - if (isNextLine()) next(); - } else { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::UnexpectedToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.InvalidStatement.unexpectedInInterface.message", {curToken().value}, - "ErrorManager.Syntax.InvalidStatement.unexpectedInInterface.hint"); - return nullptr; - } - } - if (!match(Delimeters::RightBraces)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.interfaceClosingBrace.message", {interfaceToken.value}, - "ErrorManager.Syntax.MissingToken.interfaceClosingBrace.hint"); - return nullptr; - } - next(); - - auto node = ASTBuilder::createInterface(interfaceToken.value, std::move(elements), std::move(decorators), std::move(modifiers)); - node->line = interfaceToken.line; node->column = interfaceToken.column; node->filePath = interfaceToken.filePath; - return node; -} - -MemoryPtr Parser::parseNamespace() { - next(); - auto token = curToken(); - - auto name = parsePrimary(); - if (!name || (name->type != ASTNodeType::Variable && name->type != ASTNodeType::MemberAccess)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.namespaceName.message", {}, - "ErrorManager.Syntax.MissingToken.namespaceName.hint" - ); - return nullptr; - } - - std::string namespaceName = namespaceNameToString(name.get()); - - auto body = parseBlock(); - if (!body) return nullptr; - - auto node = ASTBuilder::createNamespace(std::move(name), std::move(body->statements)); - node->value = namespaceName; node->filePath = token.filePath; node->line = token.line; node->column = token.column; - return node; -} - -// ==== Helper functions ==== - -// Parses either a block or a single statement after an 'if' condition. -MemoryPtr Parser::parseBlockorStatement() { - - if (match(Delimeters::LeftBraces)) { - MemoryPtr block = parseBlock(); - return std::move(block); - } - - MemoryPtr block = parseStatement(); - if(!block) return nullptr; - return std::move(block); -} - -MemoryPtr Parser::parseConstructor(std::vector> decorators, std::vector> modifiers) { - Token nameToken = curToken(); - if (!match(TokenType::Identifier)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{nameToken.filePath, nameToken.value, nameToken.line, nameToken.column}, - "ErrorManager.Syntax.MissingToken.functionName.message", {}, - "ErrorManager.Syntax.MissingToken.functionName.hint"); - return nullptr; - } - std::string funcName = nameToken.value; - next(); - - if (!match(Delimeters::LeftParen)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{nameToken.filePath, nameToken.value, nameToken.line, nameToken.column}, - "ErrorManager.Syntax.MissingToken.functionParams.message", {funcName}, - "ErrorManager.Syntax.MissingToken.functionParams.hint", {funcName}); - return nullptr; - } - next(); - - std::vector> params; - while (!match(Delimeters::RightParen)) { - Token paramName = curToken(); - if (paramName.type != TokenType::Identifier) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{paramName.filePath, paramName.value, paramName.line, paramName.column}, - "ErrorManager.Syntax.MissingToken.functionParamName.message", {funcName}, - "ErrorManager.Syntax.MissingToken.functionParamName.hint"); - return nullptr; - } - next(); - MemoryPtr type = nullptr; - if (match(Delimeters::Colon)) { - next(); - type = parseType(); - } - - MemoryPtr defaultValue = nullptr; - if (match(Operators::Assign)) { - next(); - defaultValue = parseExpression(); - if (!defaultValue) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.functionParamDefault.message", {}, - "ErrorManager.Syntax.MissingToken.functionParamDefault.hint"); - return nullptr; - } - } - auto param = ASTBuilder::createParameter(paramName.value, std::move(type), std::move(defaultValue)); - param->line = paramName.line; param->column = paramName.column; param->filePath = paramName.filePath; - params.push_back(std::move(param)); - if (match(Delimeters::Comma)) next(); - else break; - } - - if (!match(Delimeters::RightParen)) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.functionClosingParen.message", {funcName}, - "ErrorManager.Syntax.MissingToken.functionClosingParen.hint"); - return nullptr; - } - next(); - - MemoryPtr returnType = nullptr; - if (match(Operators::TypeArrow)) { - next(); - returnType = parseType(); - } - - MemoryPtr body = parseBlock(); - if (!body) { - errorManager->addError( - ErrorType::Syntax, SyntaxErrors::InvalidStatement, - ErrorSpan{nameToken.filePath, nameToken.value, nameToken.line, nameToken.column}, - "ErrorManager.Syntax.MissingToken.functionBody.message", {funcName}, - "ErrorManager.Syntax.MissingToken.functionBody.hint", {funcName}); - return nullptr; - } - - auto node = ASTBuilder::createFunction(funcName, std::move(params), std::move(returnType), std::move(body), std::move(decorators), std::move(modifiers)); - for (const auto& modifier : modifiers) { - if (modifier->modifier == ASTModifierType::Intrinsic) { - node->isIntrinsic = true; - node->body = nullptr; - } - } - node->line = nameToken.line; node->column = nameToken.column; node->filePath = nameToken.filePath; - return node; -} - -// Detects nextline expression -bool Parser::isNextLine(){ - if (match(Delimeters::Semicolon) || match(Delimeters::Newline)) return true; - return false; -} - -// Detects whether upcoming tokens are identifier or member access followed by an assignment operator -// This code is pure unreadable garbage so lemme explain -bool Parser::isAssignableAhead(size_t offset) { - // Take up new offset - size_t p = pos + offset; - - // First token must be identifier for sure - if (p >= tokens.size()) return false; - if (tokens[p].type != TokenType::Identifier) return false; - p++; - - // Then we create a chain of member accesses and identifiers/function calls inside them - while (p < tokens.size()) { - - // If function call - if (match(tokens[p], Delimeters::LeftParen)) { - int depth = 1; - p++; // consume left parenthesis - - // to be fair, i could not care less what's inside the () while we look ahead, so just skip until we find the matching right parenthesis - while (p < tokens.size() && depth > 0) { - if (match(tokens[p], Delimeters::LeftParen)) depth++; - else if (match(tokens[p], Delimeters::RightParen)) depth--; - p++; - } - - continue; - } - - // If member access however, we parse it too. - if (match(tokens[p], Delimeters::Dot)) { - p++; // consume dot - if (p >= tokens.size()) return false; - if (tokens[p].type != TokenType::Identifier) return false; - p++; - continue; - } - break; - } - - // After all of that we check if there's assignment operator. - if (p < tokens.size() && tokens[p].type == TokenType::Operator && isAssignmentOperator(tokens[p].value)) return true; - // whoops, not an assignment - return false; -} - -// to make math order -int Parser::getOperatorPrecedence(const std::string& op){ - auto it = om.find(op); - if (it == om.end()) return -3; - - switch (it->second) { - case Operators::Power: - return 7; - case Operators::Multiply: - case Operators::Divide: - case Operators::Modulo: - return 6; - case Operators::Add: - case Operators::Subtract: - return 5; - case Operators::BitwiseLeftShift: - case Operators::BitwiseRightShift: - return 4; - case Operators::BitwiseAnd: return 3; - case Operators::BitwiseXOr: return 2; - case Operators::BitwiseOr: return 1; - case Operators::Equal: - case Operators::NotEqual: - case Operators::LessThan: - case Operators::GreaterThan: - case Operators::LessThanOrEqual: - case Operators::GreaterThanOrEqual: - return 0; - case Operators::LogicalAnd: return -1; - case Operators::LogicalOr: return -2; - default: return -3; - } -} - -bool Parser::isAssignmentOperator(const std::string& op) { - auto it = om.find(op); - if (it == om.end()) return false; - - switch (it->second) { - case Operators::Assign: - case Operators::AddAssign: - case Operators::SubAssign: - case Operators::MulAssign: - case Operators::DivAssign: - case Operators::ModAssign: - case Operators::PowerAssign: - return true; - default: - return false; - } -} - -std::string Parser::namespaceNameToString(ASTNode* node) { - if (!node) return ""; - - if (node->type == ASTNodeType::Variable) return static_cast(node)->varName; - - if (node->type == ASTNodeType::MemberAccess) { - auto* ma = static_cast(node); - return namespaceNameToString(ma->parent.get()) + "." + - namespaceNameToString(ma->val.get()); - } - - return ""; -} - -bool Parser::consumeTypeCloseAngle() { - if (match(Operators::GreaterThan)) { - next(); - return true; - } - - if (match(Operators::BitwiseRightShift)) { - tokens[pos].value = ">"; - tokens[pos].column += 1; - return true; - } - - return false; -} - -// TODO: This needs an additional check to make sure of it's correctness. i don't have the energy to do it now -std::optional>> Parser::parseGenericArguments(const std::string& typeName) { - std::vector> arguments; - - if (!match(Operators::LessThan)) return std::optional(std::move(arguments)); - - Token openToken = curToken(); - next(); - - if (match(Operators::GreaterThan) || match(Operators::BitwiseRightShift)) { - errorManager->addError(ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{openToken.filePath, openToken.value, openToken.line, openToken.column}, - "ErrorManager.Syntax.MissingToken.genericTypeArgument.message", {typeName}, - "ErrorManager.Syntax.MissingToken.genericTypeArgument.hint"); - return std::nullopt; - } - - while (!isAtEnd()) { - if (match(Delimeters::Comma) || match(Operators::GreaterThan) || match(Operators::BitwiseRightShift)) { - errorManager->addError(ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.genericTypeArgument.message", {typeName}, - "ErrorManager.Syntax.MissingToken.genericTypeArgument.hint"); - return std::nullopt; - } - - auto argument = parseType(); - if (!argument) return std::nullopt; - arguments.push_back(std::move(argument)); - - if (match(Delimeters::Comma)) { - next(); - if (match(Operators::GreaterThan) || match(Operators::BitwiseRightShift)) { - errorManager->addError(ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.genericTypeArgument.message", {typeName}, - "ErrorManager.Syntax.MissingToken.genericTypeArgument.hint"); - return std::nullopt; - } - continue; - } - break; - } - - if (!match(Operators::GreaterThan)) { - errorManager->addError(ErrorType::Syntax, SyntaxErrors::MissingToken, - ErrorSpan{curToken().filePath, curToken().value, curToken().line, curToken().column}, - "ErrorManager.Syntax.MissingToken.genericClosingAngle.message", - {typeName}, - "ErrorManager.Syntax.MissingToken.genericClosingAngle.hint"); - return std::nullopt; - } - next(); - - return arguments; -} diff --git a/src/Core/Frontend/Parser/Parser.hpp b/src/Core/Frontend/Parser/Parser.hpp deleted file mode 100644 index 2f6ef0f..0000000 --- a/src/Core/Frontend/Parser/Parser.hpp +++ /dev/null @@ -1,150 +0,0 @@ -#pragma once - -#include "../Nodes.hpp" -#include "../Token.hpp" -#include "Core/Extras/ErrorManager/ErrorManager.hpp" -#include - -// to make math order -int getOperatorPrecedence(const std::string& op); -bool isAssignmentOperator(const std::string& op); - -//Parser -class Parser { -public: - void parseModule(const std::vector& tok, const std::string& moduleName); // main parsing - void printModule(int indentation = 0); - - // ErrorManager is used to report errors - ErrorManager* errorManager = nullptr; - MemoryPtr moduleSource = nullptr; -private: - std::vector tokens; - size_t pos = 0; - std::string moduleName = ""; - - // Parser helpers - Token curToken() { - if (pos >= tokens.size()) { Token token = Token{TokenType::EndOfFile, ""}; return token; } - return tokens[pos]; - }; - Token lookBack() { - if (pos >= tokens.size() || pos == 0) return Token{TokenType::EndOfFile, ""}; - return tokens[pos-1]; - } - Token next() { - if (pos >= tokens.size()) return Token{TokenType::EndOfFile, ""}; - return tokens[pos++]; - }; - Token lookupNext() { - if (pos + 1 >= tokens.size()) return Token{TokenType::EndOfFile, ""}; - return tokens[pos+1]; - } - bool match(TokenType type, const std::string& value) { - if (curToken().type != type) return false; - if (curToken().value != value) return false; - return true; - } - bool match(TokenType type) { - if (curToken().type != type) return false; - return true; - } - bool match(const Token& token, TokenType type) { - if (token.type != type) return false; - return true; - } - - bool matchTokenImpl(const Token& token, std::variant expected) { - if (std::holds_alternative(expected)) { - if (token.type != TokenType::Keyword) return false; - auto it = km.find(token.value); - return it != km.end() && it->second == std::get(expected); - } - - if (std::holds_alternative(expected)) { - if (token.type != TokenType::Operator) return false; - auto it = om.find(token.value); - return it != om.end() && it->second == std::get(expected); - } - - if (std::holds_alternative(expected)) { - if (token.type != TokenType::Delimeter) return false; - auto it = dm.find(token.value); - return it != dm.end() && it->second == std::get(expected); - } - - if (std::holds_alternative(expected)) { - if (token.type != TokenType::Preprocessor) return false; - auto it = pm.find(token.value); - return it != pm.end() && it->second == std::get(expected); - } - - if (std::holds_alternative(expected)) { - if (token.type != TokenType::Decorator) return false; - auto it = decm.find(token.value); - return it != decm.end() && it->second == std::get(expected); - } - - return false; - } - bool match(std::variant expected) { - return matchTokenImpl(curToken(), expected); - } - bool match(const Token& token, std::variant expected) { - return matchTokenImpl(token, expected); - } - bool isAtEnd() { return pos >= tokens.size() || curToken().type == TokenType::EndOfFile; } - std::unordered_map km = getKeywordMap(); - std::unordered_map dm = getDelimeterMap(); - std::unordered_map om = getOperatorMap(); - std::unordered_map pm = getPreprocessorMap(); - std::unordered_map decm = getDecoratorMap(); - - // Expression parsing - MemoryPtr parsePrimary(); - MemoryPtr parseExpression(); - MemoryPtr parseBinary(int prevPrecedence = 0); - MemoryPtr parseUnary(const std::string& op); - - std::optional> parseGenericParameters(const std::string& ownerName); - MemoryPtr parseType(); - - // Statement parsing - MemoryPtr parseStatement(); - MemoryPtr parseDeclaration(std::vector> decorators, std::vector> modifiers); - MemoryPtr parseAssignment(); - - // Control flow - MemoryPtr parseIf(); - MemoryPtr parseSwitch(); - MemoryPtr parseTryCatch(); - MemoryPtr parseFor(); - MemoryPtr parseWhile(); - - // Declarations - MemoryPtr parseFunction(std::vector> decorators, std::vector> modifiers); - MemoryPtr parseClass(std::vector> decorators, std::vector> modifiers); - MemoryPtr parseNamespace(); - MemoryPtr parseBlock(); - - MemoryPtr parseEnum(std::vector> decorators, std::vector> modifiers); - MemoryPtr parseInterface(std::vector> decorators, std::vector> modifiers); - - // Imports, decorators, modifiers, preprocessor - MemoryPtr parseDecorator(std::vector> decorators = {}, std::vector> modifiers = {}, bool isCall=false); - std::vector> parseDecoratorCalls(); - std::vector> parseModifiers(); - MemoryPtr parsePreprocessor(); - - // Helper functions - MemoryPtr parseBlockorStatement(); - MemoryPtr parseConstructor(std::vector> decorators, std::vector> modifiers); - bool isNextLine(); - int getOperatorPrecedence(const std::string& op); - bool isAssignmentOperator(const std::string& op); - // Lookahead helper to check if upcoming tokens form an assignable lvalue followed by an assignment operator - bool isAssignableAhead(size_t offset = 0); - std::string namespaceNameToString(ASTNode* node); - bool consumeTypeCloseAngle(); - std::optional>> parseGenericArguments(const std::string& typeName); -}; \ No newline at end of file diff --git a/src/Core/Frontend/SemanticAnalysis/SemanticAnalysis.cpp b/src/Core/Frontend/SemanticAnalysis/SemanticAnalysis.cpp deleted file mode 100644 index 041e6fb..0000000 --- a/src/Core/Frontend/SemanticAnalysis/SemanticAnalysis.cpp +++ /dev/null @@ -1,468 +0,0 @@ -#include "SemanticAnalysis.hpp" - -#include - -#include "Core/Compiler.hpp" - -// ==== Main function ==== -void SemanticAnalysis::analyzeProgram(Program& program){ - pushScope(); - - // Defines all built-in decorators. - auto& dm = getDecoratorMap(); - for (const auto& [name, _] : dm) { - declareName(name, Symbol{Symbol::Kind::Decorator, false, "", 0, 0}, nullptr); - } - - for (ModuleId id : program.order) { - if (id < 0 || id >= static_cast(program.moduleInfos.size())) - continue; - - ModuleNode* module = program.moduleInfos[id].module; - if (!module) - continue; - - if (!program.moduleInfos[id].module) - std::println(std::cerr, "NULL MODULE INFO: {}", id); - analyzeModule(module); - } - - popScope(); -} - -/* Module analysis usually breaks down into two passes - * 1. Declaration - we get all the symbols used in code, before checking their work logic - * 2. Analysis - we pass through the whole module body, calling each analyze* for each part - */ -void SemanticAnalysis::analyzeModule(ModuleNode* module) { - // Declaration pass - for (const auto& statement : module->body){ - if (match(statement.get(), ASTNodeType::Function)) { - auto* node = static_cast(statement.get()); - bool isConst = false; - for (auto& modifier : node->modifiers) if (modifier.get()->modifier == ASTModifierType::Const) isConst = true; - declareName(node->name, Symbol{Symbol::Kind::Function, isConst, node->filePath, node->line, node->column}, node); - } - else if (match(statement.get(), ASTNodeType::Class)) { - auto* node = static_cast(statement.get()); - bool isConst = false; - for (auto& modifier : node->modifiers) if (modifier.get()->modifier == ASTModifierType::Const) isConst = true; - declareName(node->name, Symbol{Symbol::Kind::Class, isConst, node->filePath, node->line, node->column}, node); - } - else if (match(statement.get(), ASTNodeType::Enum)) { - auto* node = static_cast(statement.get()); - declareName(node->name, Symbol{Symbol::Kind::Enum, true, node->filePath, node->line, node->column}, node); - } - else if (match(statement.get(), ASTNodeType::Interface)) { - auto* node = static_cast(statement.get()); - declareName(node->name, Symbol{Symbol::Kind::Interface, true, node->filePath, node->line, node->column}, node); - } - else if (match(statement.get(), ASTNodeType::Decorator)) { - auto* node = static_cast(statement.get()); - bool isConst = false; - for (auto& modifier : node->modifiers) if (modifier.get()->modifier == ASTModifierType::Const) isConst = true; - declareName(node->name, Symbol{Symbol::Kind::Decorator, isConst, node->filePath, node->line, node->column}, node); - } - } - - // Analysis pass - for (const auto& statement : module->body) - analyzeStatement(statement.get()); -} - -void SemanticAnalysis::analyzeExpression(ASTNode* node) { - if (!node) return; - - switch (node->type) { - case ASTNodeType::Variable: { - auto* var = static_cast(node); - if (!findName(var->varName)) - errorManager->addError(ErrorType::Analysis, AnalysisErrors::UndefinedVariable, - ErrorSpan{node->filePath, var->varName, node->line, node->column}, - "ErrorManager.Analysis.UndefinedVariable.message", {var->varName}, - "ErrorManager.Analysis.UndefinedVariable.hint"); - break; - } - case ASTNodeType::CallExpression: - analyzeCallExpression(static_cast(node)); break; - case ASTNodeType::BinaryOperation: { - auto* bin = static_cast(node); - analyzeExpression(bin->leftOperand.get()); - analyzeExpression(bin->rightOperand.get()); - break; - } - case ASTNodeType::UnaryOperation: - analyzeExpression(static_cast(node)->operand.get()); break; - case ASTNodeType::MemberAccess: { - auto* ma = static_cast(node); - analyzeExpression(ma->parent.get()); - break; - } - case ASTNodeType::Array: - for (const auto& el : static_cast(node)->elements) analyzeExpression(el.get()); - break; - case ASTNodeType::Set: - for (const auto& el : static_cast(node)->elements) analyzeExpression(el.get()); - break; - case ASTNodeType::Dict: - for (const auto& [k, v] : static_cast(node)->elements) { - analyzeExpression(k.get()); - analyzeExpression(v.get()); - } - break; - case ASTNodeType::Lambda: { - analyzeLambda(static_cast(node)); break; - } - default: - break; - } -} - -void SemanticAnalysis::analyzeFunction(FunctionNode* node) { - pushScope(); - functionDepth++; - - for (const auto& parameter : node->parameters) { - if (scopes.back().contains((parameter->parameterName))) { - errorManager->addError(ErrorType::Analysis, AnalysisErrors::DuplicateParameterName, - ErrorSpan{parameter->filePath, parameter->parameterName, parameter->line, parameter->column}, - "ErrorManager.Analysis.DuplicateParameterName.message", {parameter->parameterName, node->name}, - "ErrorManager.Analysis.DuplicateParameterName.hint"); - popScope(); - functionDepth--; - return; - } - - //FIXME: Right now parameters do not support const. this must be addressed. - declareName(parameter->parameterName, Symbol{Symbol::Kind::Parameter, false, node->filePath, node->line, node->column}, parameter.get()); - - if (parameter->defaultValue) analyzeExpression(parameter->defaultValue.get()); - } - - analyzeBlock(node->body.get()); - functionDepth--; - popScope(); -} - -void SemanticAnalysis::analyzeBlock(BlockNode* node) { - pushScope(); - - for (const auto& statement : node->statements) - analyzeStatement(statement.get()); - - popScope(); -} - -void SemanticAnalysis::analyzeStatement(ASTNode* statement) { - switch (statement->type) { - case ASTNodeType::Block: analyzeBlock(static_cast(statement)); break; - case ASTNodeType::Declaration: analyzeDeclaration(static_cast(statement)); break; - case ASTNodeType::Assignment: analyzeAssignment(static_cast(statement)); break; - case ASTNodeType::Function: analyzeFunction(static_cast(statement)); break; - case ASTNodeType::Class: analyzeClass(static_cast(statement)); break; - case ASTNodeType::Enum: analyzeEnum(static_cast(statement)); break; - case ASTNodeType::Interface: analyzeInterface(static_cast(statement)); break; - case ASTNodeType::CallExpression: analyzeCallExpression(static_cast(statement)); break; - case ASTNodeType::Decorator: analyzeDecorator(static_cast(statement)); break; - case ASTNodeType::IfStatement: analyzeIf(static_cast(statement)); break; - case ASTNodeType::Switch: analyzeSwitch(static_cast(statement)); break; - case ASTNodeType::WhileLoop: analyzeWhile(static_cast(statement)); break; - case ASTNodeType::ForLoop: analyzeFor(static_cast(statement)); break; - case ASTNodeType::TryCatch: analyzeTryCatch(static_cast(statement)); break; - case ASTNodeType::ReturnStatement: analyzeReturn(static_cast(statement)); break; - case ASTNodeType::ThrowStatement: analyzeThrow(static_cast(statement)); break; - case ASTNodeType::BreakStatement: analyzeBreak(static_cast(statement)); break; - case ASTNodeType::ContinueStatement: analyzeContinue(static_cast(statement)); break; - case ASTNodeType::Lambda: analyzeLambda(static_cast(statement)); break; - case ASTNodeType::Import: break; // Imports are already resolved by the Orchestrator - default: analyzeExpression(statement); break; - } -} - -void SemanticAnalysis::analyzeDeclaration(DeclarationNode* node) { - // at first you make sure what the value is to not screw up with x := x being undefined - if (node->value) analyzeExpression(node->value.get()); - - if (!node->isTypeInference && node->rawType) { - auto type = resolveType(node->rawType.get()); - if (type == ResolvedType::Unknown) - errorManager->addError(ErrorType::Analysis, AnalysisErrors::UnknownType, - ErrorSpan{node->rawType->filePath, node->rawType->varType->varName, node->rawType->line, node->rawType->column}, - "ErrorManager.Analysis.UnknownType.message", {node->rawType->varType->varName, node->variable->varName}, - "ErrorManager.Analysis.UnknownType.hint"); - } - - bool isConst = false; - for (auto& modifier : node->modifiers) if (modifier.get()->modifier == ASTModifierType::Const) isConst = true; - declareName(node->variable->varName, Symbol{Symbol::Kind::Variable, isConst, node->filePath, node->line, node->column}, node); -} - -void SemanticAnalysis::analyzeAssignment(AssignmentNode* node) { - analyzeExpression(node->value.get()); - - auto* variable = getRootVariable(node->variable.get()); - if (variable && match(variable, ASTNodeType::Variable)) { - auto* var = static_cast(variable); - auto* symbol = findName(var->varName); - if (!symbol) errorManager->addError(ErrorType::Analysis, AnalysisErrors::UndefinedVariable, - ErrorSpan{var->filePath, var->varName, var->line, var->column}, - "ErrorManager.Analysis.UndefinedVariable.message", {var->varName}, - "ErrorManager.Analysis.UndefinedVariable.hint" - ); - else if (symbol->isConst) errorManager->addError(ErrorType::Analysis, AnalysisErrors::ConstantReassignment, - ErrorSpan{var->filePath, var->varName, var->line, var->column}, - "ErrorManager.Analysis.ConstantReassignment.message", {var->varName}, - "ErrorManager.Analysis.ConstantReassignment.hint" - ); - } -} - -void SemanticAnalysis::analyzeCallExpression(CallExpressionNode* node) { - for (const auto& arg : node->arguments) analyzeExpression(arg.get()); - - if (match(node->callee.get(), ASTNodeType::Variable)) { - auto varName = static_cast(node->callee.get())->varName; - auto* sym = findName(varName); - - if (!sym && node->isDecoratorCall) - errorManager->addError(ErrorType::Analysis, AnalysisErrors::UndefinedDecorator, - ErrorSpan{node->filePath, varName, node->line, node->column}, - "ErrorManager.Analysis.UndefinedDecorator.message", {varName}, - "ErrorManager.Analysis.UndefinedDecorator.hint"); - else if (!sym && !node->isDecoratorCall) - errorManager->addError(ErrorType::Analysis, AnalysisErrors::UndefinedFunction, - ErrorSpan{node->filePath, varName, node->line, node->column}, - "ErrorManager.Analysis.UndefinedFunction.message", {varName}, - "ErrorManager.Analysis.UndefinedFunction.hint"); - else if (sym && node->isDecoratorCall && sym->kind != Symbol::Kind::Decorator) - errorManager->addError(ErrorType::Analysis, AnalysisErrors::DecoratorMisuse, - ErrorSpan{node->filePath, varName, node->line, node->column}, - "ErrorManager.Analysis.DecoratorMisuse.message", {varName}, - "ErrorManager.Analysis.DecoratorMisuse.hint"); - else if (sym && !node->isDecoratorCall && sym->kind != Symbol::Kind::Function && sym->kind != Symbol::Kind::Class) - errorManager->addError(ErrorType::Analysis, AnalysisErrors::FunctionMismatch, - ErrorSpan{node->filePath, varName, node->line, node->column}, - "ErrorManager.Analysis.FunctionMismatch.message", {varName}, - "ErrorManager.Analysis.FunctionMismatch.hint"); - } - else if (match(node->callee.get(), ASTNodeType::MemberAccess)) { - auto* root = getRootVariable(node->callee.get()); - if (root && match(root, ASTNodeType::Variable)) { - auto varName = static_cast(root)->varName; - auto* symbol = findName(varName); - if (!symbol) - errorManager->addError(ErrorType::Analysis, AnalysisErrors::UndefinedVariable, - ErrorSpan{node->filePath, varName, node->line, node->column}, - "ErrorManager.Analysis.UndefinedVariable.message", {varName}, - "ErrorManager.Analysis.UndefinedVariable.hint"); - } - } -} - -void SemanticAnalysis::analyzeIf(IfNode* node) { - analyzeExpression(node->condition.get()); - if (node->thenBlock) analyzeStatement(node->thenBlock.get()); - if (node->elseBlock) analyzeStatement(node->elseBlock.get()); -} - -void SemanticAnalysis::analyzeWhile(WhileLoopNode* node) { - analyzeExpression(node->condition.get()); - loopDepth++; - analyzeBlock(node->body.get()); - loopDepth--; -} - -void SemanticAnalysis::analyzeFor(ForLoopNode* node) { - analyzeExpression(node->iterable.get()); - - loopDepth++; - pushScope(); - - // FIXME: Find out how to get if it's the constant. - declareName(node->variable.get()->varName, Symbol{Symbol::Kind::Variable, false, node->variable->filePath, node->variable->line, node->variable->column}, node->variable.get()); - for (const auto& stmt : node->body->statements) - analyzeStatement(stmt.get()); - - popScope(); - loopDepth--; -} - -void SemanticAnalysis::analyzeReturn(ReturnStatementNode* node) { - if (functionDepth <= 0) { - errorManager->addError(ErrorType::Analysis, AnalysisErrors::ReturnOutsideFunction, - ErrorSpan{node->filePath, "return", node->line, node->column}, - "ErrorManager.Analysis.ReturnOutsideFunction.message", {}, - "ErrorManager.Analysis.ReturnOutsideFunction.hint"); - } - - if (node->expression) analyzeExpression(node->expression.get()); -} - -void SemanticAnalysis::analyzeBreak(BreakStatementNode* node) { - if (loopDepth <= 0) - errorManager->addError(ErrorType::Analysis, AnalysisErrors::BreakOutsideLoop, - ErrorSpan{node->filePath, "break", node->line, node->column}, - "ErrorManager.Analysis.BreakOutsideLoop.message", {}, - "ErrorManager.Analysis.BreakOutsideLoop.hint"); - -} - -void SemanticAnalysis::analyzeContinue(ContinueStatementNode* node) { - if (loopDepth <= 0) - errorManager->addError(ErrorType::Analysis, AnalysisErrors::ContinueOutsideLoop, - ErrorSpan{node->filePath, "continue", node->line, node->column}, - "ErrorManager.Analysis.ContinueOutsideLoop.message", {}, - "ErrorManager.Analysis.ContinueOutsideLoop.hint"); -} - -void SemanticAnalysis::analyzeThrow(ThrowStatementNode* node) { - if (node->expression) analyzeExpression(node->expression.get()); -} - -void SemanticAnalysis::analyzeClass(ClassNode* node) { - pushScope(); - - // self и super are available inside the whole class - declareName("self", Symbol{Symbol::Kind::Variable, false, node->filePath, node->line, node->column}, node); - if (node->super) declareName("super", Symbol{Symbol::Kind::Function, false, node->filePath, node->line, node->column}, node); - - - // declaration of methods - for (const auto& method : node->methods) { - bool isConst = false; - for (auto& modifier : method->modifiers) if (modifier.get()->modifier == ASTModifierType::Const) isConst = true; - declareName(method->name, Symbol{Symbol::Kind::Function, isConst, node->filePath, node->line, node->column}, node); - } - - for (const auto& field : node->fields) analyzeDeclaration(field.get()); - if (node->constructor) analyzeFunction(node->constructor.get()); - // implementation of methods - for (const auto& method : node->methods) analyzeFunction(method.get()); - - popScope(); -} - -void SemanticAnalysis::analyzeTryCatch(TryCatchNode* node) { - analyzeBlock(node->tryBlock.get()); - - pushScope(); // catch has it's own scope - declareName(node->exception->varName, Symbol{Symbol::Kind::Variable, false, node->exception->filePath, node->exception->line, node->exception->column}, node); - analyzeBlock(node->catchBlock.get()); - popScope(); -} - -void SemanticAnalysis::analyzeSwitch(SwitchNode* node) { - analyzeExpression(node->expression.get()); - - for (const auto& sCase : node->cases) { - analyzeExpression(sCase->condition.get()); - analyzeStatement(sCase->body.get()); - } - - if (node->defaultCase) analyzeStatement(node->defaultCase.get()->body.get()); -} - -void SemanticAnalysis::analyzeEnum(EnumNode* node) { - pushScope(); - - for (const auto& element : node->elements) { - if (scopes.back().contains(element->name)) errorManager->addError(ErrorType::Analysis, AnalysisErrors::DuplicateEnumMember, - ErrorSpan{node->filePath, element->name, node->line, node->column}, - "ErrorManager.Analysis.DuplicateEnumMember.message", {element->name, node->name}, - "ErrorManager.Analysis.DuplicateEnumMember.hint" - ); - else declareName(element->name, Symbol{Symbol::Kind::Variable, false, node->filePath, node->line, node->column}, node); - } - - popScope(); -} - -void SemanticAnalysis::analyzeInterface(InterfaceNode* node) { - for (const auto& field : node->elements) - if (!field->isFunction && field->rawType) - resolveType(field->rawType.get()); -} - -void SemanticAnalysis::analyzeDecorator(DecoratorNode* node) { - pushScope(); - functionDepth++; - - for (const auto& parameter : node->parameters) { - if (!parameter) continue; - declareName(parameter->parameterName, Symbol{Symbol::Kind::Parameter, false, node->filePath, node->line, node->column}, node); - if (parameter->defaultValue) analyzeExpression(parameter->defaultValue.get()); - } - analyzeBlock(node->body.get()); - - functionDepth--; - popScope(); -} - -void SemanticAnalysis::analyzeLambda(LambdaNode* node) { - pushScope(); - functionDepth++; - - for (const auto& param : node->params) { - if (match(param.get(), ASTNodeType::Variable)) { - auto* v = static_cast(param.get()); - declareName(v->varName, Symbol{Symbol::Kind::Parameter, false, v->filePath, v->line, v->column}, param.get()); - } - } - - analyzeStatement(node->body.get()); - - functionDepth--; - popScope(); -} - -ResolvedType SemanticAnalysis::resolveType(RawTypeNode* type) { - auto varType = type->varType.get()->varName; - auto tm = getTypeMap(); - - // first check built-ins - if (tm.contains(varType)) return tm.find(varType)->second; - - // well, perhaps it's user-defined? - auto* userDefined = findName(varType); - if (userDefined && (userDefined->kind == Symbol::Kind::Class || userDefined->kind == Symbol::Kind::Enum || userDefined->kind == Symbol::Kind::Interface)) return ResolvedType::UserDefined; - - // The type is unknown. Error message context is added at parent call. - return ResolvedType::Unknown; -} - -// ==== Helpers ==== - -void SemanticAnalysis::pushScope() { scopes.emplace_back(); } - -void SemanticAnalysis::popScope() { if (!scopes.empty()) scopes.pop_back(); } - -bool SemanticAnalysis::declareName(const std::string& name, Symbol symbol, ASTNode* node) -{ - if (scopes.empty()) pushScope(); - auto& parent = scopes.back(); - - if (parent.contains(name)) { - errorManager->addError(ErrorType::Analysis, AnalysisErrors::RedefinedVariable, - ErrorSpan{node ? node->filePath : "", name, node ? node->line : 0, node ? node->column : 0}, - "ErrorManager.Analysis.RedefinedVariable.message", {name}, - "ErrorManager.Analysis.RedefinedVariable.hint"); - return false; - } - - if (node) { - symbol.filePath = node->filePath; - symbol.line = node->line; - symbol.column = node->column; - } - - parent.emplace(name, symbol); - return true; -} - -SemanticAnalysis::Symbol* SemanticAnalysis::findName(const std::string& name) { - for (int i = (int)scopes.size()-1; i >= 0; i--){ - if (scopes[i].contains(name)) - return &scopes[i].find(name)->second; - } - return nullptr; -} diff --git a/src/Core/Frontend/SemanticAnalysis/SemanticAnalysis.hpp b/src/Core/Frontend/SemanticAnalysis/SemanticAnalysis.hpp deleted file mode 100644 index 0fc7a1a..0000000 --- a/src/Core/Frontend/SemanticAnalysis/SemanticAnalysis.hpp +++ /dev/null @@ -1,81 +0,0 @@ -#pragma once -#include -#include -#include - -#include "Core/Extras/ErrorManager/ErrorManager.hpp" -#include "Core/Frontend/Nodes.hpp" -#include "Core/Frontend/Token.hpp" -#include "Core/Frontend/Orchestrator/Orchestrator.hpp" - -struct Program; - -// Semantic Analysis is a part of Frontend in Compiler responsible for logical part of the code. -struct SemanticAnalysis { - // ErrorManager is used to report errors - ErrorManager* errorManager = nullptr; - - // Main entry - void analyzeProgram(Program& program); - - // Per-node analyzers - void analyzeModule(ModuleNode* module); - void analyzeBlock(BlockNode* block); - void analyzeDeclaration(DeclarationNode* node); - void analyzeAssignment(AssignmentNode* node); - void analyzeFunction(FunctionNode* node); - void analyzeClass(ClassNode* node); - void analyzeEnum(EnumNode* node); - void analyzeInterface(InterfaceNode* node); - void analyzeCallExpression(CallExpressionNode* node); - void analyzeDecorator(DecoratorNode* node); - void analyzeIf(IfNode* node); - void analyzeSwitch(SwitchNode* node); - void analyzeWhile(WhileLoopNode* node); - void analyzeFor(ForLoopNode* node); - void analyzeTryCatch(TryCatchNode* node); - void analyzeReturn(ReturnStatementNode* node); - void analyzeThrow(ThrowStatementNode* node); - void analyzeBreak(BreakStatementNode* node); - void analyzeContinue(ContinueStatementNode* node); - void analyzeLambda(LambdaNode* node); - void analyzeExpression(ASTNode* node); // dispatcher for expressions only - - void analyzeStatement(ASTNode* node); - ResolvedType resolveType(RawTypeNode* type); - -private: - struct Symbol { - enum class Kind { Variable, Function, Parameter, Class, Enum, Interface, Decorator }; - Kind kind; - bool isConst = false; - std::string filePath; - int line = 0, column = 0; - }; - - std::vector> scopes; - int loopDepth = 0; - int functionDepth = 0; - - // Scope helpers - void pushScope(); - void popScope(); - bool declareName(const std::string& name, Symbol symbol, ASTNode* node); - Symbol* findName(const std::string& name); - - // just helpers - bool match(ASTNode* node, ASTNodeType type) { - if (node->type == type) return true; - return false; - } - - // Recursively goes through MemberAccessNode until it finds the first ever parent VariableNode. - // if VariableNode is passed it returns it; used for analyzeAssignment(). - ASTNode* getRootVariable(ASTNode* node) { - if (match(node, ASTNodeType::MemberAccess)) { - auto* ma = static_cast(node); - return getRootVariable(ma->parent.get()); - } - return node; // parent found - } -}; \ No newline at end of file diff --git a/src/Core/Frontend/Token.cpp b/src/Core/Frontend/Token.cpp deleted file mode 100644 index f574044..0000000 --- a/src/Core/Frontend/Token.cpp +++ /dev/null @@ -1,122 +0,0 @@ -#include "Token.hpp" - -#include -#include -#include -#include -#include -#include - -// Maps for every entry -const EKeyword keywordMap[] = { - {"function", Keywords::Function}, {"fn", Keywords::Function}, {"class", Keywords::Class}, {"enum", Keywords::Enum}, {"interface", Keywords::Interface}, {"namespace", Keywords::Namespace}, - {"if", Keywords::If}, {"else", Keywords::Else}, - {"for", Keywords::For}, {"while", Keywords::While}, {"break", Keywords::Break}, {"continue", Keywords::Continue}, - {"switch", Keywords::Switch}, {"case", Keywords::Case}, {"default", Keywords::Default}, - {"try", Keywords::Try}, {"catch", Keywords::Catch}, {"throw", Keywords::Throw}, - {"yield", Keywords::Yield}, {"return", Keywords::Return}, - {"as", Keywords::As}, {"with", Keywords::With}, {"in", Keywords::In}, {":", Keywords::In}, {"lambda", Keywords::Lambda}, - {"decorator", Keywords::Decorator}, - {"async", Keywords::Async}, {"await", Keywords::Await}, {"const", Keywords::Const}, {"static", Keywords::Static}, - {"debug", Keywords::Debug}, {"public", Keywords::Public}, {"protected", Keywords::Protected}, {"private", Keywords::Private}, - {"override", Keywords::Override}, - // Internal std library keyword that allows passing through LLVM calls - {"intrinsic", Keywords::Intrinsic}, -}; - -const EOperator operatorMap[] { - {"+", Operators::Add}, {"-", Operators::Subtract}, {"*", Operators::Multiply}, {"/", Operators::Divide}, {"%", Operators::Modulo}, {"^", Operators::Power}, - {"==", Operators::Equal}, {"!=", Operators::NotEqual}, {"<", Operators::LessThan}, {">", Operators::GreaterThan}, {"<=", Operators::LessThanOrEqual}, {">=", Operators::GreaterThanOrEqual}, - {"&&", Operators::LogicalAnd}, {"||", Operators::LogicalOr}, {"!", Operators::LogicalNot}, - {"and", Operators::LogicalAnd}, {"or", Operators::LogicalOr}, {"not", Operators::LogicalNot}, - {"=", Operators::Assign}, {"?", Operators::Nullable}, {"=>", Operators::AssignmentArrow}, {"<-", Operators::InheritanceArrow}, {"->", Operators::TypeArrow}, - {"+=", Operators::AddAssign}, {"-=", Operators::SubAssign}, {"*=", Operators::MulAssign}, {"/=", Operators::DivAssign}, {"%=", Operators::ModAssign}, {"^=", Operators::PowerAssign}, - {"~", Operators::BitwiseNot}, {"&", Operators::BitwiseAnd}, {"|", Operators::BitwiseOr}, {"^^", Operators::BitwiseXOr}, {"<<", Operators::BitwiseLeftShift}, {">>", Operators::BitwiseRightShift}, -}; - -const EDecorator decoratorMap[] { - {"entry", Decorators::Entry}, {"unsafe", Decorators::Unsafe}, {"comptime", Decorators::Comptime}, -}; - -const EPreprocessor preprocessorMap[] { - {"import", Preprocessors::Import}, {"unsafe", Preprocessors::Unsafe}, {"macro", Preprocessors::Macro}, -}; - -const EDelimeter delimeterMap[] { - {"(", Delimeters::LeftParen}, {")", Delimeters::RightParen}, - {"{", Delimeters::LeftBraces}, {"}", Delimeters::RightBraces}, - {";", Delimeters::Semicolon}, {":", Delimeters::Colon}, {"\\n", Delimeters::Newline}, {",", Delimeters::Comma}, - {".", Delimeters::Dot}, {"[", Delimeters::LeftBracket}, - {"]", Delimeters::RightBracket}, -}; - -const EResolvedType typesMap[] = { - { ResolvedType::Int8, "int8" }, { ResolvedType::Int16, "int16" }, { ResolvedType::Int, "int" }, { ResolvedType::Int64, "int64" }, - { ResolvedType::Int128, "int128" }, { ResolvedType::UInt8, "uint8" }, { ResolvedType::UInt16, "uint16" }, { ResolvedType::UInt, "uint" }, - { ResolvedType::UInt64, "uint64" }, { ResolvedType::UInt128, "uint128" }, { ResolvedType::Float, "float" }, { ResolvedType::Float64, "float64" }, - { ResolvedType::Number, "number" }, { ResolvedType::Bool, "bool" }, { ResolvedType::Str, "str" }, { ResolvedType::Array, "array" }, - { ResolvedType::Dict, "dict" }, { ResolvedType::Set, "set" }, { ResolvedType::Result, "result" }, { ResolvedType::Void, "void" }, -}; - -std::string Token::toStr() const { - std::string typeStr; - - switch (type) { - case TokenType::Keyword: typeStr = "Keyword"; break; - case TokenType::Identifier: typeStr = "Identifier"; break; - case TokenType::Number: typeStr = "Number"; break; - case TokenType::Operator: typeStr = "Operator"; break; - case TokenType::String: typeStr = "String"; break; - case TokenType::Delimeter: typeStr = "Delimeter"; break; - case TokenType::Unknown: typeStr = "Unknown"; break; - case TokenType::Decorator: typeStr = "Decorator"; break; - case TokenType::Preprocessor: typeStr = "Preprocessor"; break; - case TokenType::EndOfFile: typeStr = "EndOfFile"; break; - case TokenType::Null: typeStr = "Null"; break; - default: typeStr = ""; break; - } - - return std::format("[{}] -> \"{}\", (L{}:{})\n", typeStr, value, line, column); -} - -const std::unordered_map& getKeywordMap() { - static std::unordered_map map; - if (map.empty()) { - for (auto& k : keywordMap) map[k.name] = k.token; - } - return map; -} -const std::unordered_map& getOperatorMap() { - static std::unordered_map map; - if (map.empty()) { - for (auto& k : operatorMap) map[k.name] = k.token; - } - return map; -} -const std::unordered_map& getDecoratorMap() { - static std::unordered_map map; - if (map.empty()) { - for (auto& k : decoratorMap) map[k.name] = k.token; - } - return map; -} -const std::unordered_map& getPreprocessorMap() { - static std::unordered_map map; - if (map.empty()) { - for (auto& k : preprocessorMap) map[k.name] = k.token; - } - return map; -} -const std::unordered_map& getDelimeterMap() { - static std::unordered_map map; - if (map.empty()) { - for (auto& k : delimeterMap) map[k.name] = k.token; - } - return map; -} - -const std::unordered_map& getTypeMap() { - static std::unordered_map map; - if (map.empty()) for (auto& k : typesMap) map[k.name] = k.type; - return map; -} \ No newline at end of file diff --git a/src/Core/Frontend/Token.hpp b/src/Core/Frontend/Token.hpp deleted file mode 100644 index 2b520ac..0000000 --- a/src/Core/Frontend/Token.hpp +++ /dev/null @@ -1,77 +0,0 @@ -#pragma once - -#include -#include -#include - -enum class TokenType { - Keyword, Identifier, Number, Operator, String, Delimeter, Unknown, Decorator, Preprocessor, EndOfFile, Null, -}; - -struct Token { - TokenType type; - std::string value; - std::string toStr() const; - std::string filePath; - int line, column; -}; - -// Enums -enum class Keywords { - Function, Class, Enum, Interface, Namespace, - If, Else, - For, While, Break, Continue, - Switch, Case, Default, - Try, Catch, Throw, - Async, Await, - Yield, Return, - Static, Decorator, Const, - As, With, In, Lambda, - Debug, Public, Protected, Private, Override, - Intrinsic -}; -enum class Operators { - Add, Subtract, Multiply, Divide, Modulo, Power, - Equal, NotEqual, LessThan, GreaterThan, LessThanOrEqual, GreaterThanOrEqual, - LogicalAnd, LogicalOr, LogicalNot, - Assign, Nullable, - AddAssign, SubAssign, MulAssign, DivAssign, ModAssign, PowerAssign, - AssignmentArrow, InheritanceArrow, TypeArrow, - BitwiseAnd, BitwiseOr, BitwiseXOr, BitwiseNot, BitwiseLeftShift, BitwiseRightShift, - //BitwiseUnsignedRightShift (from JS, not included for now because argued about) -}; -enum class Decorators { - Entry, Unsafe, Comptime -}; -enum class Preprocessors { - Import, Unsafe, Macro -}; -enum class Delimeters { - LeftParen, RightParen, LeftBracket, RightBracket, Semicolon, Newline, Comma, Dot, - LeftBraces, RightBraces, Colon, -}; - -// ResolvedType is an enum of types Neoluma compiler internally supports by default. -enum class ResolvedType { - Int8, Int16, Int, Int64, Int128, - UInt8, UInt16, UInt, UInt64, UInt128, - Float, Float64, - Number, Bool, Str, - Array, Dict, Set, Result, - Void, UserDefined, Unknown -}; - -// Mapping entries -struct EKeyword { std::string name; Keywords token; }; -struct EOperator { std::string name; Operators token; }; -struct EDecorator { std::string name; Decorators token; }; -struct EPreprocessor { std::string name; Preprocessors token; }; -struct EDelimeter { std::string name; Delimeters token; }; -struct EResolvedType { ResolvedType type; std::string name; }; - -const std::unordered_map& getKeywordMap(); -const std::unordered_map& getOperatorMap(); -const std::unordered_map& getDecoratorMap(); -const std::unordered_map& getPreprocessorMap(); -const std::unordered_map& getDelimeterMap(); -const std::unordered_map& getTypeMap(); diff --git a/src/Core/Middleend/IRGenerator/IRGenerator.cpp b/src/Core/Middleend/IRGenerator/IRGenerator.cpp deleted file mode 100644 index bfed3e5..0000000 --- a/src/Core/Middleend/IRGenerator/IRGenerator.cpp +++ /dev/null @@ -1,597 +0,0 @@ -#include "IRGenerator.hpp" -/* Deprecated structure. -#include "Core/Compiler.hpp" - -// LLVM Primitives -#include "llvm/IR/Verifier.h" -#include "llvm/Support/raw_ostream.h" -#include "llvm/IR/DerivedTypes.h" -#include "llvm/IR/Instructions.h" -#include "llvm/IR/TypedPointerType.h" - -void IRGenerator::generate(const ProgramUnit& programUnit, const std::vector& infos) { - program = makeMemoryPtr("program", context); - builder = makeMemoryPtr>(context); - - for (ModuleId id : programUnit.order) generateModule(infos[id].module); - - if (llvm::verifyModule(*program, &llvm::errs())) { - // later make a handler - return; - }; - program->print(llvm::outs(), nullptr); -} - -void IRGenerator::generateModule(ModuleNode* module) { - // Declaration pass - for (const auto& statement : module->body) { - switch (statement->type) { - case ASTNodeType::Function: - case ASTNodeType::Decorator: - generateFunctionSignature(static_cast(statement.get())); break; - case ASTNodeType::Class: generateClassType(static_cast(statement.get())); break; - case ASTNodeType::Enum: generateEnum(static_cast(statement.get())); break; - default: break; - } - } - - // Generation pass - for (const auto& statement : module->body) { - switch (statement->type) { - case ASTNodeType::Function: - case ASTNodeType::Decorator: - generateFunctionBody(static_cast(statement.get())); break; - case ASTNodeType::Class: generateClassMethods(static_cast(statement.get())); break; - default: break; - } - } -} - -llvm::Value* IRGenerator::generateStatement(ASTNode* node) { - switch(node->type) { - case ASTNodeType::Declaration: return generateDeclaration(static_cast(node)); - case ASTNodeType::Assignment: return generateAssignment(static_cast(node)); - case ASTNodeType::Function: - generateFunctionSignature(static_cast(node)); - if (!static_cast(node)->isIntrinsic) generateFunctionBody(static_cast(node)); - return nullptr; - case ASTNodeType::ReturnStatement: return generateReturn(static_cast(node)); - case ASTNodeType::IfStatement: return generateIf(static_cast(node)); - case ASTNodeType::WhileLoop: return generateWhile(static_cast(node)); - case ASTNodeType::ForLoop: return generateFor(static_cast(node)); - case ASTNodeType::CallExpression: return generateCall(static_cast(node)); - case ASTNodeType::BreakStatement: return generateBreak(); - case ASTNodeType::ContinueStatement: return generateContinue(); - case ASTNodeType::ThrowStatement: return generateThrow(static_cast(node)); - case ASTNodeType::Switch: return generateSwitch(static_cast(node)); - case ASTNodeType::TryCatch: return generateTryCatch(static_cast(node)); - case ASTNodeType::Lambda: return generateLambda(static_cast(node)); - default: return generateExpression(node); - } -} - -llvm::Value* IRGenerator::generateExpression(ASTNode* node) { - switch (node->type) { - case ASTNodeType::Literal: return generateLiteral(static_cast(node)); - case ASTNodeType::Variable: return generateVariable(static_cast(node)); - case ASTNodeType::CallExpression: return generateCall(static_cast(node)); - case ASTNodeType::BinaryOperation: return generateBinaryOp(static_cast(node)); - case ASTNodeType::UnaryOperation: return generateUnaryOp(static_cast(node)); - case ASTNodeType::MemberAccess: return nullptr; // fixme: requires classes - case ASTNodeType::Array: - case ASTNodeType::Set: - case ASTNodeType::Dict: - return nullptr; //fixme: requires std - case ASTNodeType::Lambda: return generateLambda(static_cast(node)); - default: return nullptr; - } -} - -llvm::Value* IRGenerator::generateLiteral(LiteralNode* node) { - if (node->value == "true") return llvm::ConstantInt::get(llvm::Type::getInt1Ty(context), 1); - if (node->value == "false") return llvm::ConstantInt::get(llvm::Type::getInt1Ty(context), 0); - if (node->value == "null") return llvm::ConstantPointerNull::get(llvm::PointerType::getUnqual(context)); - - if (node->value.contains('.')) // float - return llvm::ConstantFP::get(llvm::Type::getDoubleTy(context), stod(node->value)); - - try { - return llvm::ConstantInt::get(llvm::Type::getInt32Ty(context), stoi(node->value)); - } catch (const std::exception&) {} - - return llvm::cast(builder->CreateGlobalString(node->value)); -} - -llvm::Value* IRGenerator::generateVariable(VariableNode* node) { - auto* alloc = findVariable(node->varName); - return builder->CreateLoad(variableTypes[node->varName], alloc, node->varName); -} - -llvm::Value* IRGenerator::generateDeclaration(DeclarationNode* node) { - // initializating type and value - llvm::Type* type = nullptr; - llvm::Value* value = nullptr; - - if (!node->isTypeInference && node->rawType) - type = resolveType(node->rawType->varType->varName); - else if (node->value) { - value = generateExpression(node->value.get()); - type = value->getType(); - } - - if (type == nullptr) type = llvm::Type::getInt32Ty(context); // fallback - - auto* alloc = builder->CreateAlloca(type, nullptr, node->variable->varName); - declareVariable(node->variable->varName, alloc, type); - - if (node->value && value == nullptr) value = generateExpression(node->value.get()); - if (value) builder->CreateStore(value, alloc); - - return alloc; -} - -llvm::Value* IRGenerator::generateAssignment(AssignmentNode* node) { - auto* alloc = findVariable(getRootVarName(node->variable.get())); - if (!alloc) return nullptr; - - auto* value = generateExpression(node->value.get()); - - builder->CreateStore(value, alloc); - return value; -} - -llvm::Value* IRGenerator::generateBinaryOp(BinaryOperationNode* node) { - auto* left = generateExpression(node->leftOperand.get()); - auto* right = generateExpression(node->rightOperand.get()); - - if (node->value == on[Operators::Add]) return builder->CreateAdd(left, right); - if (node->value == on[Operators::Subtract]) return builder->CreateSub(left, right); - if (node->value == on[Operators::Multiply]) return builder->CreateMul(left, right); - if (node->value == on[Operators::Divide]) return builder->CreateSDiv(left, right); - if (node->value == on[Operators::Modulo]) return builder->CreateSRem(left, right); - if (node->value == on[Operators::Power]) return nullptr; //requires pow from libm - if (node->value == on[Operators::Equal]) return builder->CreateICmpEQ(left, right); - if (node->value == on[Operators::NotEqual]) return builder->CreateICmpNE(left, right); - if (node->value == on[Operators::LessThan]) return builder->CreateICmpSLT(left, right); - if (node->value == on[Operators::GreaterThan]) return builder->CreateICmpSGT(left, right); - if (node->value == on[Operators::LessThanOrEqual]) return builder->CreateICmpSLE(left, right); - if (node->value == on[Operators::GreaterThanOrEqual]) return builder->CreateICmpSGE(left, right); - if (node->value == on[Operators::LogicalAnd]) return builder->CreateAnd(left, right); - if (node->value == on[Operators::LogicalOr]) return builder->CreateOr(left, right); - return nullptr; -} - -llvm::Value* IRGenerator::generateUnaryOp(UnaryOperationNode* node) { - auto* operand = generateExpression(node->operand.get()); - - if (node->value == on[Operators::Subtract]) return builder->CreateNeg(operand); - if (node->value == on[Operators::LogicalNot]) return builder->CreateNot(operand); - - return nullptr; -} - -llvm::Value* IRGenerator::generateIf(IfNode* node) { - auto* thenBlock = llvm::BasicBlock::Create(context, "if.thenBlock", currentFunction); - auto* elseBlock = llvm::BasicBlock::Create(context, "if.elseBlock", currentFunction); - // A block following after If. LLVM has to fallback to something after meeting condition somehow - auto* afterBlock = llvm::BasicBlock::Create(context, "if.afterBlock", currentFunction); - - // condition - auto* condition = generateExpression(node->condition.get()); - builder->CreateCondBr(condition, thenBlock, elseBlock); - - // then - builder->SetInsertPoint(thenBlock); - generateStatement(node->thenBlock.get()); - builder->CreateBr(afterBlock); - - // else - builder->SetInsertPoint(elseBlock); - if (node->elseBlock) generateStatement(node->elseBlock.get()); - builder->CreateBr(afterBlock); - - // merge back from condition - builder->SetInsertPoint(afterBlock); - return nullptr; -} - -llvm::Value* IRGenerator::generateFor(ForLoopNode* node) { - auto* iterable = generateExpression(node->iterable.get()); - - auto* conditionBlock = llvm::BasicBlock::Create(context, "for.condition", currentFunction); - auto* body = llvm::BasicBlock::Create(context, "for.body", currentFunction); - auto* afterBlock = llvm::BasicBlock::Create(context, "for.afterBlock", currentFunction); - - // save old breaks and continues for nested loops - auto* prevBreak = currentBreakBB; - auto* prevContinue = currentContinueBB; - currentBreakBB = afterBlock; - currentContinueBB = conditionBlock; - - // initialization of iterable variable - pushScope(); - auto* iterableAlloc = builder->CreateAlloca(llvm::Type::getInt32Ty(context), nullptr, node->variable->varName); - declareVariable(node->variable->varName, iterableAlloc, llvm::Type::getInt32Ty(context)); - builder->CreateBr(conditionBlock); - - // fixme: conditionBlock is temporarily mute, we don't have range() in std for now - builder->SetInsertPoint(conditionBlock); - builder->CreateCondBr(llvm::ConstantInt::getTrue(context), body, afterBlock); - - // body - builder->SetInsertPoint(body); - generateBlock(node->body.get()); - builder->CreateBr(conditionBlock); - - builder->SetInsertPoint(afterBlock); - - popScope(); - currentBreakBB = prevBreak; - currentContinueBB = prevContinue; - return nullptr; -} - -llvm::Value* IRGenerator::generateWhile(WhileLoopNode* node) { - auto* conditionBlock = llvm::BasicBlock::Create(context, "while.condition", currentFunction); - auto* body = llvm::BasicBlock::Create(context, "while.body", currentFunction); - auto* afterBlock = llvm::BasicBlock::Create(context, "while.afterBlock", currentFunction); - - // for nested loops we save the old breaks and continues - auto* prevBreak = currentBreakBB; - auto* prevContinue = currentContinueBB; - - currentBreakBB = afterBlock; - currentContinueBB = conditionBlock; - - // condition - builder->CreateBr(conditionBlock); - builder->SetInsertPoint(conditionBlock); - auto* condition = generateExpression(node->condition.get()); - builder->CreateCondBr(condition, body, afterBlock); - - // body - builder->SetInsertPoint(body); - generateBlock(node->body.get()); - builder->CreateBr(conditionBlock); - - // after the loop - builder->SetInsertPoint(afterBlock); - - // recover the nested breaks and continues - currentBreakBB = prevBreak; - currentContinueBB = prevContinue; - - return nullptr; -} - -llvm::Value* IRGenerator::generateSwitch(SwitchNode* node) { - auto* expression = generateExpression(node->expression.get()); - - auto* defaultBlock = llvm::BasicBlock::Create(context, "switch.default", currentFunction); - auto* afterBlock = llvm::BasicBlock::Create(context, "switch.afterBlock", currentFunction); - - // preservation - auto* prevBreak = currentBreakBB; - currentBreakBB = afterBlock; - - auto* switchInstance = builder->CreateSwitch(expression, defaultBlock, node->cases.size()); - - // cases - for (const auto& sCase : node->cases) { - auto* caseBlock = llvm::BasicBlock::Create(context, "switch.case", currentFunction); - auto* caseValue = generateExpression(sCase->condition.get()); // should be ConstantInt - switchInstance->addCase(llvm::cast(caseValue), caseBlock); - builder->SetInsertPoint(caseBlock); - generateStatement(sCase->body.get()); - builder->CreateBr(afterBlock); - } - - // default - builder->SetInsertPoint(defaultBlock); - if (node->defaultCase) generateStatement(node->defaultCase->body.get()); - builder->CreateBr(afterBlock); - - builder->SetInsertPoint(afterBlock); - currentBreakBB = prevBreak; - return nullptr; -} - -llvm::Function* IRGenerator::generateFunctionSignature(FunctionNode* node) { - if (node->isIntrinsic) intrinsicFunctions[node->name] = true; - - std::vector parameterTypes; - for (const auto& parameter : node->parameters) - parameterTypes.push_back(resolveType(parameter->parameterRawType->varType->varName)); - - llvm::Type* returnType = node->returnType ? resolveType(node->returnType->varType->varName) - : llvm::Type::getVoidTy(context); - - llvm::FunctionType* functionType = llvm::FunctionType::get(returnType, parameterTypes, false); - llvm::Function* function = llvm::Function::Create(functionType, llvm::Function::ExternalLinkage, node->name, program.get()); - functions.emplace(node->name, function); - return function; -} - -void IRGenerator::generateFunctionBody(FunctionNode* node) { - llvm::Function* function = functions.at(node->name); - currentFunction = function; - llvm::BasicBlock* entryBlock = llvm::BasicBlock::Create(context, "entry", function); - builder->SetInsertPoint(entryBlock); - - pushScope(); - - auto* llvmArg = function->arg_begin(); - for (const auto& parameter : node->parameters) { - llvmArg->setName(parameter->parameterName); - - // fixme: for now, array sizes are syntactically supported, but IR doesn't address it. i will fix that after the working alpha - auto* paramAlloc = builder->CreateAlloca(llvmArg->getType(), nullptr, parameter->parameterName); - builder->CreateStore(&*llvmArg, paramAlloc); - llvmArg++; - } - - generateBlock(node->body.get()); - popScope(); - - if (!builder->GetInsertBlock()->getTerminator()) - builder->CreateRetVoid(); -} - -llvm::Value* IRGenerator::generateLambda(LambdaNode* node) { - std::string name = "__lambda_" + std::to_string(lambdaCounter++); - - std::vector parameterTypes; - for (const auto& parameter : node->params) - if (parameter->type == ASTNodeType::Variable) - parameterTypes.push_back(llvm::Type::getInt32Ty(context)); - - // create function - auto* fnType = llvm::FunctionType::get(llvm::Type::getVoidTy(context), parameterTypes, false); - auto* fn = llvm::Function::Create(fnType, llvm::Function::ExternalLinkage, name, program.get()); - - // generate body - auto* prevFunction = currentFunction; - currentFunction = fn; - - auto* entryBlock = llvm::BasicBlock::Create(context, "entry", fn); - builder->SetInsertPoint(entryBlock); - - pushScope(); - auto arg = fn->arg_begin(); - for (const auto& parameter : node->params) - if (parameter->type == ASTNodeType::Variable) { - auto* var = static_cast(parameter.get()); - arg->setName(var->varName); - auto* alloc = builder->CreateAlloca(arg->getType()); - builder->CreateStore(&*arg, alloc); - declareVariable(var->varName, alloc, arg->getType()); - arg++; - } - - generateStatement(node->body.get()); - popScope(); - - if (!builder->GetInsertBlock()->getTerminator()) - builder->CreateRetVoid(); - - currentFunction = prevFunction; - builder->SetInsertPoint(¤tFunction->back()); - - return fn; -} - -llvm::Value* IRGenerator::generateDecorator(DecoratorNode* node) { - // decorator is a function that wraps behaviors of functions and does external stuff - - std::vector parameterTypes; - for (const auto& parameter : node->parameters) { - if (parameter->parameterRawType) - parameterTypes.push_back(resolveType(parameter->parameterRawType->varType->varName)); - else - parameterTypes.push_back(llvm::Type::getInt32Ty(context)); - } - - // create function - auto* fnType = llvm::FunctionType::get(llvm::Type::getVoidTy(context), parameterTypes, false); - auto* fn = llvm::Function::Create(fnType, llvm::Function::ExternalLinkage, node->name, program.get()); - functions[node->name] = fn; - - // generate body - auto* entryBlock = llvm::BasicBlock::Create(context, "entry", fn); - builder->SetInsertPoint(entryBlock); - - pushScope(); - auto arg = fn->arg_begin(); - for (const auto& parameter : node->parameters) - { - arg->setName(parameter->parameterName); - auto* alloc = builder->CreateAlloca(arg->getType(), nullptr, parameter->parameterName); - builder->CreateStore(&*arg, alloc); - declareVariable(parameter->parameterName, alloc, arg->getType()); - arg++; - } - generateStatement(node->body.get()); - popScope(); - - if (!builder->GetInsertBlock()->getTerminator()) - builder->CreateRetVoid(); - - return fn; -} - -llvm::Value* IRGenerator::generateBlock(BlockNode* node) { - // In LLVM, the block returns only the last statement, other statements - // before that are already in IR via builder. - llvm::Value* lastStmt = nullptr; - for (const auto& stmt : node->statements) - lastStmt = generateStatement(stmt.get()); - return lastStmt; -} - -llvm::Value* IRGenerator::generateCall(CallExpressionNode* node) { - auto varName = static_cast(node->callee.get())->varName; - auto* function = program->getFunction(varName); - - // generate arguments - std::vector args; - for (const auto& arg : node->arguments) - args.push_back(generateExpression(arg.get())); - - // if intrinsic - handle differently - if (intrinsicFunctions.count(varName)) - return generateIntrinsicCall(varName, args); - - // usual call - return builder->CreateCall(function, args, "calltmp"); -} - -// all std magic happens here -llvm::Value* IRGenerator::generateIntrinsicCall(const std::string& name, std::vector& args) { - - Intrinsic system calls list: - Neoluma | glibc - __read -> read - __write -> write - __malloc -> malloc - __free -> free - __memcpy -> memcpy - __memset -> memset - __exit -> exit - __panic -> not in libc, made via __panic -> fprintf(stderr) + exit(1) - - auto* ptr = llvm::PointerType::getUnqual(context); - auto* i8 = llvm::Type::getInt8Ty(context); - auto* i32 = llvm::Type::getInt32Ty(context); - auto* i64 = llvm::Type::getInt64Ty(context); - auto* voidTy = llvm::Type::getVoidTy(context); - - if (name == "__read") { - auto* fnType = llvm::FunctionType::get(i64, {i32, ptr, i64}, false); - auto fn = program->getOrInsertFunction("read", fnType); - return builder->CreateCall(fn, args); - } - if (name == "__write") { - auto* fnType = llvm::FunctionType::get(i64, {i32, ptr, i64}, false); - auto fn = program->getOrInsertFunction("write", fnType); - return builder->CreateCall(fn, args); - } - if (name == "__malloc") { - auto* fnType = llvm::FunctionType::get(ptr, {i64}, false); - auto fn = program->getOrInsertFunction("malloc", fnType); - return builder->CreateCall(fn, args); - } - if (name == "__free") { - auto* fnType = llvm::FunctionType::get(voidTy, {ptr}, false); - auto fn = program->getOrInsertFunction("free", fnType); - return builder->CreateCall(fn, args); - } - if (name == "__memcpy") { - auto* fnType = llvm::FunctionType::get(ptr, {ptr, ptr, i64}, false); - auto fn = program->getOrInsertFunction("memcpy", fnType); - return builder->CreateCall(fn, args); - } - if (name == "__memset") { - auto* fnType = llvm::FunctionType::get(ptr, {ptr, i8, i64}, false); - auto fn = program->getOrInsertFunction("memset", fnType); - return builder->CreateCall(fn, args); - } - if (name == "__exit") { - auto* fnType = llvm::FunctionType::get(voidTy, {i32}, false); - auto fn = program->getOrInsertFunction("exit", fnType); - builder->CreateCall(fn, args); - builder->CreateUnreachable(); - return nullptr; - } - if (name == "__panic") { - // fprintf(stderr, msg) - auto* fprintfType = llvm::FunctionType::get(i32, {ptr, ptr}, true); - auto fprintfFn = program->getOrInsertFunction("fprintf", fprintfType); - - // stderr is FILE* - auto* stderrVar = program->getOrInsertGlobal("stderr", ptr); - auto* stderrVal = builder->CreateLoad(ptr, stderrVar); - - builder->CreateCall(fprintfFn, {stderrVal, args[0]}); - - // exit(1) - auto* exitType = llvm::FunctionType::get(voidTy, {i32}, false); - auto exitFn = program->getOrInsertFunction("exit", exitType); - builder->CreateCall(exitFn, {llvm::ConstantInt::get(i32, 1)}); - - builder->CreateUnreachable(); - return nullptr; - } - - return nullptr; -} - -llvm::Value* IRGenerator::generateBreak() { - builder->CreateBr(currentBreakBB); - return nullptr; -} - -llvm::Value* IRGenerator::generateContinue() { - builder->CreateBr(currentContinueBB); - return nullptr; -} - -llvm::Value* IRGenerator::generateReturn(ReturnStatementNode* node) { - if (node->expression) { - auto val = generateExpression(node->expression.get()); - builder->CreateRet(val); - } - else builder->CreateRetVoid(); - return nullptr; -} - -llvm::Value* IRGenerator::generateThrow(ThrowStatementNode* node) { - generateExpression(node->expression.get()); - builder->CreateUnreachable(); // this is pain in the ass to make im skipping ts - return nullptr; -} - -llvm::Type* IRGenerator::resolveType(const std::string& typeName) { - auto tm = getTypeNames(); - - if (typeName == tm[ResolvedType::Int8]) return llvm::Type::getInt8Ty(context); - if (typeName == tm[ResolvedType::Int16]) return llvm::Type::getInt16Ty(context); - if (typeName == tm[ResolvedType::Int]) return llvm::Type::getInt32Ty(context); - if (typeName == tm[ResolvedType::Int64]) return llvm::Type::getInt64Ty(context); - if (typeName == tm[ResolvedType::Int128]) return llvm::Type::getInt128Ty(context); - if (typeName == tm[ResolvedType::Bool]) return llvm::Type::getInt1Ty(context); - if (typeName == tm[ResolvedType::Float]) return llvm::Type::getFloatTy(context); - if (typeName == tm[ResolvedType::Float64]) return llvm::Type::getDoubleTy(context); - if (typeName == tm[ResolvedType::Void]) return llvm::Type::getVoidTy(context); - if (typeName == tm[ResolvedType::Str]) return llvm::Type::getInt8Ty(context)->getPointerTo(0); - if (typeName == tm[ResolvedType::Bool]) return llvm::Type::getInt1Ty(context); - - // fixme: address the pointer of str and class - for (const auto& classType : classTypes) - if (typeName == classType.first) return llvm::TypedPointerType::get(classType.second, 0); - - return llvm::Type::getInt8Ty(context); // default -} - -void IRGenerator::pushScope() { scopes.emplace_back(); } - -void IRGenerator::popScope() { if (!scopes.empty()) scopes.pop_back(); } - -void IRGenerator::declareVariable(const std::string& name, llvm::Value* value, llvm::Type* type) { - if (scopes.empty()) pushScope(); - scopes.back()[name] = value; - variableTypes[name] = type; -} - -llvm::Value* IRGenerator::findVariable(const std::string& name) { - for (int i = (int)scopes.size()-1; i >= 0; i--) if (scopes[i].count(name)) return scopes[i][name]; - return nullptr; -} - -std::string IRGenerator::getRootVarName(ASTNode* node) { - if (node->type == ASTNodeType::Variable) - return static_cast(node)->varName; - if (node->type == ASTNodeType::MemberAccess) - return getRootVarName(static_cast(node)->parent.get()); - return ""; -} -*/ \ No newline at end of file diff --git a/src/Core/Middleend/IRGenerator/IRGenerator.hpp b/src/Core/Middleend/IRGenerator/IRGenerator.hpp deleted file mode 100644 index 6c56a08..0000000 --- a/src/Core/Middleend/IRGenerator/IRGenerator.hpp +++ /dev/null @@ -1,88 +0,0 @@ -#pragma once -#include -#include - -#include "Core/Frontend/Nodes.hpp" -#include "Core/Frontend/Orchestrator/Orchestrator.hpp" -#include "HelperFunctions.hpp" -/* Deprecated structure -// LLVM Pritimives -#include "llvm/IR/LLVMContext.h" -#include "llvm/IR/Module.h" -#include "llvm/IR/IRBuilder.h" -#include "llvm/IR/Value.h" - -struct Compiler; - -class IRGenerator { -public: - Compiler* compiler = nullptr; - void setCompiler(Compiler* compiler) { this->compiler = compiler; } - - // Main function - void generate(const ProgramUnit& programUnit, const std::vector& infos); - -private: - llvm::LLVMContext context; - MemoryPtr program; - MemoryPtr> builder; - - std::vector> scopes; - - // Helper functions - bool match(ASTNode* node, ASTNodeType type) { - if (node->type == type) return true; - return false; - } - void pushScope(); - void popScope(); - void declareVariable(const std::string& name, llvm::Value* value, llvm::Type* type); - llvm::Value* findVariable(const std::string& name); - std::string getRootVarName(ASTNode* node); // for member access - std::unordered_map on = getOperatorNames(); - - // Generators - void generateModule(ModuleNode* module); - llvm::Function* generateFunctionSignature(FunctionNode* node); - void generateFunctionBody(FunctionNode* node); - - llvm::Value* generateStatement(ASTNode* node); - llvm::Value* generateExpression(ASTNode* node); - llvm::Value* generateLiteral(LiteralNode* node); - llvm::Value* generateVariable(VariableNode* node); - llvm::Value* generateDeclaration(DeclarationNode* node); - llvm::Value* generateAssignment(AssignmentNode* node); - llvm::Value* generateBinaryOp(BinaryOperationNode* node); - llvm::Value* generateUnaryOp(UnaryOperationNode* node); - llvm::Value* generateCall(CallExpressionNode* node); - llvm::Value* generateIntrinsicCall(const std::string& name, std::vector& args); - llvm::Value* generateIf(IfNode* node); - llvm::Value* generateWhile(WhileLoopNode* node); - llvm::Value* generateFor(ForLoopNode* node); - llvm::Value* generateReturn(ReturnStatementNode* node); - llvm::Value* generateBlock(BlockNode* block); - llvm::Value* generateBreak(); - llvm::Value* generateContinue(); - llvm::Value* generateThrow(ThrowStatementNode* node); - llvm::Value* generateSwitch(SwitchNode* node); - llvm::Value* generateTryCatch(TryCatchNode* node); - llvm::Value* generateLambda(LambdaNode* node); - llvm::Value* generateDecorator(DecoratorNode* node); - llvm::StructType* generateClassType(ClassNode* node); - void generateClassMethods(ClassNode* node); - llvm::Value* generateEnum(EnumNode* node); - void generateInterface(InterfaceNode* node); - - llvm::Type* resolveType(const std::string& typeName); - - // Private fields for certain generate functions are stored here - llvm::BasicBlock* currentBreakBB = nullptr; // break block - llvm::BasicBlock* currentContinueBB = nullptr;// continue block - llvm::Function* currentFunction = nullptr; // needed for IfNode and others to access - std::unordered_map variableTypes; // llvm 17+ everything is opaque ptrs so need to store type somewhere - std::unordered_map functions; // function signatures - std::unordered_map classTypes; // types of classes - std::unordered_map intrinsicFunctions; // for intrinsic calls - int lambdaCounter = 0; -}; -*/ \ No newline at end of file diff --git a/src/Core/Middleend/Optimizer/filler b/src/Core/Middleend/Optimizer/filler deleted file mode 100644 index e69de29..0000000 diff --git a/src/HelperFunctions.cpp b/src/HelperFunctions.cpp deleted file mode 100644 index 2ba1755..0000000 --- a/src/HelperFunctions.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include "HelperFunctions.hpp" -#include "Libraries/Color/Color.hpp" -#include -#include -#include - - -// Reads the file -String readFile(const String& filePath) { - std::ifstream file(filePath); - if (!file.is_open()) { - std::println(std::cerr, "{}[Neoluma/HelperFunctions] Failed to open file: {}", Color::TextHex("#ff5050"), filePath); - return ""; - } - std::stringstream buffer; - buffer << file.rdbuf(); - return buffer.str(); -} - -String normalizePath(String path) { - size_t pos = 0; - while ((pos = path.find("\\", pos)) != String::npos) { - path.replace(pos, 1, "/"); - pos += 1; - } - return path; -} \ No newline at end of file diff --git a/src/HelperFunctions.hpp b/src/HelperFunctions.hpp deleted file mode 100644 index e6e3ce7..0000000 --- a/src/HelperFunctions.hpp +++ /dev/null @@ -1,75 +0,0 @@ -#pragma once - -#include -#include -#include -#include -#include -#include -#include -#include - -// Alias of std::unique_ptr -template -using MemoryPtr = std::unique_ptr; - -// Alias of std::variant -template -using Option = std::variant; - -template -constexpr bool optionIs(const Option& value) { - return std::holds_alternative(value); -} - -template -constexpr T& getOption(Option& value) { - return std::get(value); -} - -template -constexpr const T& getOption(const Option& value) { - return std::get(value); -} - -template -constexpr T* tryGetOption(Option* value) { - return std::get_if(value); -} - -template -constexpr const T* tryGetOption(const Option* value) { - return std::get_if(value); -} - -template -MemoryPtr makeMemoryPtr(Args&&... args) { - return std::make_unique(std::forward(args)...); -} - -template -MemoryPtr makeSharedPtr(Args&&... args) { - return std::make_shared(std::forward(args)...); -} - -template -MemoryPtr as(MemoryPtr ptr) { - static_assert(std::is_base_of_v, "[Neoluma/HelperFunctions] as(ptr): T must derive from U"); - - if constexpr (std::is_polymorphic_v) { - if (T* casted = dynamic_cast(ptr.get())) { - ptr.release(); - return MemoryPtr(casted); - } - return nullptr; - } else { - return MemoryPtr(static_cast(ptr.release())); - } -} - -// Other -// Reads the file -std::string readFile(const std::string& filePath); - -// turns \\ into / cuz screw how windows is made -std::string normalizePath(const std::string& path); diff --git a/src/IntrinsicModules/std/LICENSE b/src/IntrinsicModules/std/LICENSE deleted file mode 100644 index e7f5bbe..0000000 --- a/src/IntrinsicModules/std/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/src/IntrinsicModules/std/src/fs.nm b/src/IntrinsicModules/std/src/fs.nm deleted file mode 100644 index 579ca21..0000000 --- a/src/IntrinsicModules/std/src/fs.nm +++ /dev/null @@ -1,13 +0,0 @@ -namespace std.fs { - intrinsic fn readText(path: str) -> str; - intrinsic fn writeText(path: str, content: str); - - intrinsic fn exists(path: str) -> bool; - intrinsic fn isFile(path: str) -> bool; - intrinsic fn isDir(path: str) -> bool; - - intrinsic fn remove(path: str); - intrinsic fn createDir(path: str); - - intrinsic fn listDir(path: str) -> array; -} \ No newline at end of file diff --git a/src/IntrinsicModules/std/src/io.nm b/src/IntrinsicModules/std/src/io.nm deleted file mode 100644 index a5e5691..0000000 --- a/src/IntrinsicModules/std/src/io.nm +++ /dev/null @@ -1,14 +0,0 @@ -namespace std.io { - intrinsic fn print(value); - intrinsic fn println(value); - intrinsic fn println(); - - intrinsic fn eprint(value); - intrinsic fn eprintln(value); - intrinsic fn eprintln(); - - intrinsic fn input() -> str; - intrinsic fn input(prompt: str) -> str; - - intrinsic fn readLine() -> str; -} \ No newline at end of file diff --git a/src/IntrinsicModules/std/src/iter.nm b/src/IntrinsicModules/std/src/iter.nm deleted file mode 100644 index ca9c900..0000000 --- a/src/IntrinsicModules/std/src/iter.nm +++ /dev/null @@ -1,5 +0,0 @@ -namespace std.iter { - intrinsic fn range(stop: int) -> int[]; - intrinsic fn range(start: int, stop: int) -> int[]; - intrinsic fn range(start: int, stop: int, step: int) -> int[]; -} \ No newline at end of file diff --git a/src/IntrinsicModules/std/src/math.nm b/src/IntrinsicModules/std/src/math.nm deleted file mode 100644 index 650f1b7..0000000 --- a/src/IntrinsicModules/std/src/math.nm +++ /dev/null @@ -1,24 +0,0 @@ -namespace std.math { - intrinsic fn abs(value: int) -> int; - intrinsic fn abs(value: float) -> float; - - intrinsic fn min(a: int, b: int) -> int; - intrinsic fn max(a: int, b: int) -> int; - - intrinsic fn min(a: float, b: float) -> float; - intrinsic fn max(a: float, b: float) -> float; - - intrinsic fn clamp(value: int, min: int, max: int) -> int; - intrinsic fn clamp(value: float, min: float, max: float) -> float; - - intrinsic fn sqrt(value: float) -> float; - intrinsic fn pow(value: float, power: float) -> float; - - intrinsic fn floor(value: float) -> float; - intrinsic fn ceil(value: float) -> float; - intrinsic fn round(value: float) -> float; - - intrinsic fn sin(value: float) -> float; - intrinsic fn cos(value: float) -> float; - intrinsic fn tan(value: float) -> float; -} \ No newline at end of file diff --git a/src/IntrinsicModules/std/src/random.nm b/src/IntrinsicModules/std/src/random.nm deleted file mode 100644 index e147d80..0000000 --- a/src/IntrinsicModules/std/src/random.nm +++ /dev/null @@ -1,5 +0,0 @@ -namespace std.random { - intrinsic fn randomInt(min: int, max: int) -> int; - intrinsic fn randomFloat() -> float; - intrinsic fn randomBool() -> bool; -} \ No newline at end of file diff --git a/src/IntrinsicModules/std/src/time.nm b/src/IntrinsicModules/std/src/time.nm deleted file mode 100644 index 99ae80f..0000000 --- a/src/IntrinsicModules/std/src/time.nm +++ /dev/null @@ -1,6 +0,0 @@ -namespace std.time { - intrinsic fn unixTime() -> int; // seconds - intrinsic fn unixTimeMs() -> int; // milliseconds - - intrinsic fn sleepMs(ms: int); -} \ No newline at end of file diff --git a/src/IntrinsicModules/std/std.nlp b/src/IntrinsicModules/std/std.nlp deleted file mode 100644 index 1d4a95d..0000000 --- a/src/IntrinsicModules/std/std.nlp +++ /dev/null @@ -1,11 +0,0 @@ -[project] -name = "std" -version = "1.0" -authors = ["Astrahelm Project"] -license = "apache" -output = "obj" -sourceFolder = "src/" -buildFolder = ".build/" - -[compiler] -useIntrinsic = true \ No newline at end of file diff --git a/src/Libraries/Asker/Asker.cpp b/src/Libraries/Asker/Asker.cpp deleted file mode 100644 index ee69809..0000000 --- a/src/Libraries/Asker/Asker.cpp +++ /dev/null @@ -1,80 +0,0 @@ -#include "Asker.hpp" - -#include - -#ifdef _WIN32 -#include - -Key getKey() { - int c = _getch(); - if (c == 13) return ENTER; - if (c == 8) return BACKSPACE; - if (c == 224 || c == 0) { - c = _getch(); - if (c == 72) return UP; - if (c == 80) return DOWN; - } - return NONE; -} - -void enableRaw() {} // do nothing on windows -void disableRaw() {} - -#else -#include -#include -void enableRaw() { - tcgetattr(STDIN_FILENO, &term); - struct termios raw = term; - raw.c_lflag &= ~(ICANON | ECHO); - tcsetattr(STDIN_FILENO, TCSANOW, &raw); -} - -void disableRaw() { - tcsetattr(STDIN_FILENO, TCSAFLUSH, &term); -} - -Key getKey() { - int c = getchar(); - if (c == '\n') return ENTER; - if (c == 127) return BACKSPACE; - if (c == 27) { - char sequence[2]; - if (read(STDIN_FILENO, sequence, 2) == 2 && sequence[0] == '[') { - if (sequence[1] == 'A') return UP; - if (sequence[1] == 'B') return DOWN; - } - } - return NONE; -} -#endif - -void clearBlock(int lines) { - for (int i = 0; i < lines; i++) { - std::cout << "\033[1A"; // up - std::cout << "\033[2K"; // clear whole line - std::cout << "\r"; - } -} - -namespace asker { - std::string input(const std::string& question, bool required) { - std::cout << Color::TextHex("#75b5ff") << ">> " << question << ' ' << Color::TextHex("#ff28e6"); - std::string response; - while (std::getline(std::cin, response)) { - if (required && response.length() == 0) {} - else break; - } - std::cout << Color::Reset; - return response; - } - - bool confirm(const std::string& question) { - bool result = true; - std::string response; - response = input(question + Color::TextHex("#e84b85") + " (y/n) " + Color::TextHex("#ff28e6")); - if (response[0] != 'y' && response[0] != 'Y' && response[0] != '\0' ) result = false; - std::cout << Color::Reset; - return result; - } -} \ No newline at end of file diff --git a/src/Libraries/Asker/Asker.hpp b/src/Libraries/Asker/Asker.hpp deleted file mode 100644 index ac4e164..0000000 --- a/src/Libraries/Asker/Asker.hpp +++ /dev/null @@ -1,65 +0,0 @@ -#pragma once -/* -* Asker is an internal Neoluma library for handling CLI input -*/ -#include -#include -#include "../Color/Color.hpp" -enum Key { NONE, UP, DOWN, ENTER, BACKSPACE }; - -#ifdef _WIN32 -#include -Key getKey(); -void enableRaw(); // do nothing on windows -void disableRaw(); -#else -#include -#include -static struct termios term; -void enableRaw(); -void disableRaw(); -Key getKey(); -#endif - -void clearBlock(int lines); - -namespace asker { - constexpr const char* Clear = "\033[0m\033[2J\033[H"; - - std::string input(const std::string& question, bool required=false); - - bool confirm(const std::string& question); - - template - std::string selectList(const std::string& question, const std::string (&options)[n]) { - enableRaw(); - - int pos = 0; - Key key = NONE; - int lines = n + 2; - - while (true) { - clearBlock(lines); - - std::cout << Color::TextHex("#75b5ff") << ">> " << question << '\n'; - - for (int i = 0; i < n; i++) { - if (i == pos) { - std::cout << Color::TextHex("#00ff48ffff") << "> " << Color::TextHex("#ff28e6") << options[i] << '\n'; - } - else { - std::cout << Color::TextHex("#ff28e6") << " " << options[i] << '\n'; - } - } - - key = getKey(); - if (key == UP && pos > 0) pos--; - else if (key == DOWN && pos < n - 1) pos++; - else if (key == ENTER) break; - } - - disableRaw(); - std::cout << Color::Reset << "\n"; - return options[pos]; - } -}; \ No newline at end of file diff --git a/src/Libraries/Color/Color.cpp b/src/Libraries/Color/Color.cpp deleted file mode 100644 index 8e60b55..0000000 --- a/src/Libraries/Color/Color.cpp +++ /dev/null @@ -1,35 +0,0 @@ -#include "Color.hpp" -#include -#ifdef _WIN32 - #define Neoluma_sscanf sscanf_s -#else - #define Neoluma_sscanf sscanf -#endif - -namespace Color { - std::string TextRGB(uint8_t r, uint8_t g, uint8_t b) { - return std::format("\033[38;2;{};{};{}m", r, g, b); - } - - std::string BackgroundRGB(uint8_t r, uint8_t g, uint8_t b) { - return std::format("\033[48;2;{};{};{}m", r, g, b); - } - - std::string TextHex(const std::string& hex) { - unsigned int r, g, b; - if (hex[0] == '#') { - Neoluma_sscanf(hex.c_str(), "#%02x%02x%02x", &r, &g, &b); - return TextRGB(r, g, b); - } - return ""; - } - - std::string BackgroundHex(const std::string& hex) { - unsigned int r, g, b; - if (hex[0] == '#') { - Neoluma_sscanf(hex.c_str(), "#%02x%02x%02x", &r, &g, &b); - return BackgroundRGB(r, g, b); - } - return ""; - } -} \ No newline at end of file diff --git a/src/Libraries/Color/Color.hpp b/src/Libraries/Color/Color.hpp deleted file mode 100644 index da9a19c..0000000 --- a/src/Libraries/Color/Color.hpp +++ /dev/null @@ -1,31 +0,0 @@ -#pragma once - -#include - -namespace Color { - std::string TextRGB(uint8_t r, uint8_t g, uint8_t b); - - std::string BackgroundRGB(uint8_t r, uint8_t g, uint8_t b); - - std::string TextHex(const std::string& hex); - - std::string BackgroundHex(const std::string& hex); - - namespace Effect { - constexpr std::string BoldOn = "\033[1m"; - constexpr std::string DimOn = "\033[2m"; - constexpr std::string UnderlineOn = "\033[4m"; - constexpr std::string BlinkOn = "\033[5m"; - constexpr std::string ReverseOn = "\033[7m"; - constexpr std::string HideOn = "\033[8m"; - - constexpr std::string BoldOff = "\033[21m"; - constexpr std::string DimOff = "\033[22m"; - constexpr std::string UnderlineOff = "\033[24m"; - constexpr std::string BlinkOff = "\033[25m"; - constexpr std::string ReverseOff = "\033[27m"; - constexpr std::string HideOff = "\033[28m"; - } - - constexpr std::string Reset = "\033[0m"; -} diff --git a/src/Libraries/Json/Json.cpp b/src/Libraries/Json/Json.cpp deleted file mode 100644 index a0a78f6..0000000 --- a/src/Libraries/Json/Json.cpp +++ /dev/null @@ -1,683 +0,0 @@ -#include "Json.hpp" -#include -#include -#include -#include -#include -#include - -namespace json { - -// --------- Value helpers ---------- -Value* Value::find(const std::string& key) { - if (!isObject()) return nullptr; - auto& obj = std::get(data); - for (auto& [k, v] : obj) if (k == key) return &v; - return nullptr; -} -const Value* Value::find(const std::string& key) const { - if (!isObject()) return nullptr; - auto& obj = std::get(data); - for (auto& [k, v] : obj) if (k == key) return &v; - return nullptr; -} -bool Value::has(const std::string& key) const { return find(key) != nullptr; } - -Value& Value::operator[](const std::string& key) { - if (!isObject()) data = Object{}; - auto& obj = std::get(data); - for (auto& [k, v] : obj) { - if (k == key) return v; - } - obj.emplace_back(key, Value{}); - return obj.back().second; -} - -const Value& Value::operator[](const std::string& key) const { - static const Value kNull{}; - auto* p = find(key); - return p ? *p : kNull; -} - -Value& Value::at(size_t i) { - auto& arr = std::get(data); - if (i >= arr.size()) throw std::out_of_range("json::Value::at array index out of range"); - return arr[i]; -} -const Value& Value::at(size_t i) const { - auto& arr = std::get(data); - if (i >= arr.size()) throw std::out_of_range("json::Value::at array index out of range"); - return arr[i]; -} - -// --------- UTF-8 decode (for correct unicode escaping) ---------- -static bool utf8DecodeOne(std::string_view s, size_t& i, uint32_t& cp) { - auto byte = [&](size_t j)->uint8_t { return (uint8_t)s[j]; }; - if (i >= s.size()) return false; - - uint8_t b0 = byte(i); - if (b0 < 0x80) { cp = b0; i += 1; return true; } - - if ((b0 & 0xE0) == 0xC0) { - if (i + 1 >= s.size()) return false; - uint8_t b1 = byte(i+1); - if ((b1 & 0xC0) != 0x80) return false; - uint32_t x = ((b0 & 0x1F) << 6) | (b1 & 0x3F); - if (x < 0x80) return false; // overlong - cp = x; i += 2; return true; - } - - if ((b0 & 0xF0) == 0xE0) { - if (i + 2 >= s.size()) return false; - uint8_t b1 = byte(i+1), b2 = byte(i+2); - if ((b1 & 0xC0) != 0x80 || (b2 & 0xC0) != 0x80) return false; - uint32_t x = ((b0 & 0x0F) << 12) | ((b1 & 0x3F) << 6) | (b2 & 0x3F); - if (x < 0x800) return false; // overlong - if (x >= 0xD800 && x <= 0xDFFF) return false; // surrogate invalid in UTF-8 - cp = x; i += 3; return true; - } - - if ((b0 & 0xF8) == 0xF0) { - if (i + 3 >= s.size()) return false; - uint8_t b1 = byte(i+1), b2 = byte(i+2), b3 = byte(i+3); - if ((b1 & 0xC0) != 0x80 || (b2 & 0xC0) != 0x80 || (b3 & 0xC0) != 0x80) return false; - uint32_t x = ((b0 & 0x07) << 18) | ((b1 & 0x3F) << 12) | ((b2 & 0x3F) << 6) | (b3 & 0x3F); - if (x < 0x10000 || x > 0x10FFFF) return false; - cp = x; i += 4; return true; - } - - return false; -} - -static void appendHex4(std::string& out, uint16_t v) { - static const char* hex = "0123456789ABCDEF"; - out.push_back(hex[(v >> 12) & 0xF]); - out.push_back(hex[(v >> 8) & 0xF]); - out.push_back(hex[(v >> 4) & 0xF]); - out.push_back(hex[(v >> 0) & 0xF]); -} - -// --------- Stringify escape ---------- -static void appendEscaped(std::string& out, std::string_view s, bool escape_non_ascii) { - auto emitCpAsEscapes = [&](uint32_t cp) { - if (cp <= 0xFFFF) { - out += "\\u"; - appendHex4(out, (uint16_t)cp); - } else { - cp -= 0x10000; - uint16_t hi = 0xD800 + ((cp >> 10) & 0x3FF); - uint16_t lo = 0xDC00 + (cp & 0x3FF); - out += "\\u"; appendHex4(out, hi); - out += "\\u"; appendHex4(out, lo); - } - }; - - for (size_t i = 0; i < s.size();) { - unsigned char c = (unsigned char)s[i]; - - if (c < 0x80) { - switch (c) { - case '\"': out += "\\\""; break; - case '\\': out += "\\\\"; break; - case '\b': out += "\\b"; break; - case '\f': out += "\\f"; break; - case '\n': out += "\\n"; break; - case '\r': out += "\\r"; break; - case '\t': out += "\\t"; break; - default: - if (c < 0x20) { out += "\\u"; appendHex4(out, (uint16_t)c); } - else out.push_back((char)c); - } - ++i; - continue; - } - - if (!escape_non_ascii) { - // keep UTF-8 bytes as-is (most compatible modern behavior) - out.push_back((char)s[i]); - ++i; - continue; - } - - uint32_t cp = 0; - size_t save = i; - if (!utf8DecodeOne(s, i, cp)) { - // invalid sequence -> escape raw byte - i = save + 1; - out += "\\u"; - appendHex4(out, (uint16_t)(uint8_t)s[save]); - continue; - } - emitCpAsEscapes(cp); - } -} - -static void indent(std::string& out, int n) { - out.append((size_t)n, ' '); -} - -// --------- Parser ---------- -class Parser { -public: - Parser(std::string_view s, ParseOptions opt) - : src(s), options(opt) { - if (options.allow_bom && src.size() >= 3 && - (unsigned char)src[0] == 0xEF && - (unsigned char)src[1] == 0xBB && - (unsigned char)src[2] == 0xBF) { - pos = 3; - } - } - - Value parseRoot() { - skipWsAndCommentsCollect(pending_before); - Value v = parseValue(); - - // If we collected comments before root, attach - if (!pending_before.empty()) { - v.comments_before.insert(v.comments_before.begin(), pending_before.begin(), pending_before.end()); - pending_before.clear(); - } - - skipWsAndCommentsCollect(pending_before); - if (pos != src.size()) error("Unexpected trailing characters"); - return v; - } - -private: - std::string_view src; - ParseOptions options{}; - size_t pos{0}; - size_t line{1}; - size_t col{1}; - - // comments collected between separators and next value - std::vector pending_before; - - [[noreturn]] void error(const std::string& msg) const { - throw ParseError(msg, pos, line, col); - } - - char peek() const { return (pos < src.size()) ? src[pos] : '\0'; } - - char get() { - if (pos >= src.size()) return '\0'; - char c = src[pos++]; - if (c == '\n') { line++; col = 1; } - else { col++; } - return c; - } - - bool consume(char c) { - if (peek() == c) { get(); return true; } - return false; - } - - void expect(char c, const char* msg) { - if (!consume(c)) error(msg); - } - - static bool isLineBreak(char c) { return c == '\n' || c == '\r'; } - - void skipWhitespaceOnly() { - while (true) { - char c = peek(); - if (c == ' ' || c == '\t' || c == '\r' || c == '\n') { get(); continue; } - break; - } - } - - void skipWsAndCommentsCollect(std::vector& outComments) { - while (true) { - skipWhitespaceOnly(); - if (!options.allow_comments) return; - - // line comment // - if (peek() == '/' && pos + 1 < src.size() && src[pos + 1] == '/') { - get(); get(); - std::string text; - while (pos < src.size() && !isLineBreak(peek())) text.push_back(get()); - outComments.push_back(trim(text)); - continue; - } - - // block comment /* ... */ - if (peek() == '/' && pos + 1 < src.size() && src[pos + 1] == '*') { - get(); get(); - std::string text; - while (true) { - if (pos >= src.size()) error("Unterminated block comment"); - if (peek() == '*' && pos + 1 < src.size() && src[pos + 1] == '/') { - get(); get(); - break; - } - text.push_back(get()); - } - outComments.push_back(trim(text)); - continue; - } - - return; - } - } - - bool startsWith(std::string_view w) const { - return src.substr(pos, w.size()) == w; - } - - Value parseValue() { - // collect leading comments for this value - std::vector leading; - skipWsAndCommentsCollect(leading); - - char c = peek(); - Value v; - - if (c == '{') v = Value(parseObject()); - else if (c == '[') v = Value(parseArray()); - else if (c == '"' || (options.allow_single_quotes && c == '\'')) v = Value(parseString()); - else if (c == '-' || (c >= '0' && c <= '9')) v = parseNumber(); - else if (startsWith("true")) { pos += 4; col += 4; v = Value(true); } - else if (startsWith("false")) { pos += 5; col += 5; v = Value(false); } - else if (startsWith("null")) { pos += 4; col += 4; v = Value(nullptr); } - else error("Expected a JSON value"); - - v.comments_before = std::move(leading); - - // try to attach trailing comment - size_t savePos = pos, saveLine = line, saveCol = col; - - auto skipSpacesTabs = [&]() { - while (peek() == ' ' || peek() == '\t') get(); - }; - - skipSpacesTabs(); - - if (options.allow_comments && peek() == '/' && pos + 1 < src.size()) { - if (src[pos + 1] == '/') { - get(); get(); - std::string text; - while (pos < src.size() && !isLineBreak(peek())) text.push_back(get()); - v.comments_after = trim(text); - } else if (src[pos + 1] == '*') { - get(); get(); - std::string text; - while (true) { - if (pos >= src.size()) error("Unterminated block comment"); - if (peek() == '*' && pos + 1 < src.size() && src[pos + 1] == '/') { - get(); get(); - break; - } - text.push_back(get()); - } - v.comments_after = trim(text); - } else { - pos = savePos; line = saveLine; col = saveCol; - } - } else { - pos = savePos; line = saveLine; col = saveCol; - } - - return v; - } - - std::string parseString() { - char quote = peek(); - if (quote != '"' && quote != '\'') error("Expected string quote"); - if (quote == '\'' && !options.allow_single_quotes) error("Single-quoted strings are disabled"); - get(); // consume quote - - std::string out; - while (true) { - if (pos >= src.size()) error("Unterminated string"); - char c = get(); - if (c == quote) break; - - if (c == '\\') { - if (pos >= src.size()) error("Bad escape"); - char e = get(); - switch (e) { - case '"': out.push_back('"'); break; - case '\'': out.push_back('\''); break; - case '\\': out.push_back('\\'); break; - case '/': out.push_back('/'); break; - case 'b': out.push_back('\b'); break; - case 'f': out.push_back('\f'); break; - case 'n': out.push_back('\n'); break; - case 'r': out.push_back('\r'); break; - case 't': out.push_back('\t'); break; - case 'u': { - auto hex = [&](char h)->int{ - if (h >= '0' && h <= '9') return h - '0'; - if (h >= 'a' && h <= 'f') return 10 + (h - 'a'); - if (h >= 'A' && h <= 'F') return 10 + (h - 'A'); - return -1; - }; - if (pos + 4 > src.size()) error("Invalid \\u escape"); - int v0 = hex(get()), v1 = hex(get()), v2 = hex(get()), v3 = hex(get()); - if (v0 < 0 || v1 < 0 || v2 < 0 || v3 < 0) error("Invalid \\u escape"); - uint32_t cp = (uint32_t)((v0<<12) | (v1<<8) | (v2<<4) | v3); - - // surrogate pair handling - if (cp >= 0xD800 && cp <= 0xDBFF) { - size_t pSave = pos; size_t lSave = line; size_t cSave = col; - if (peek() == '\\' && pos+1 < src.size() && src[pos+1] == 'u') { - get(); get(); - if (pos + 4 > src.size()) error("Invalid \\u escape"); - int w0 = hex(get()), w1 = hex(get()), w2 = hex(get()), w3 = hex(get()); - if (w0 < 0 || w1 < 0 || w2 < 0 || w3 < 0) error("Invalid \\u escape"); - uint32_t lo = (uint32_t)((w0<<12) | (w1<<8) | (w2<<4) | w3); - if (lo >= 0xDC00 && lo <= 0xDFFF) { - uint32_t hi = cp - 0xD800; - lo -= 0xDC00; - cp = 0x10000 + ((hi << 10) | lo); - } else { - pos = pSave; line = lSave; col = cSave; - } - } - } - - // encode UTF-8 - if (cp <= 0x7F) out.push_back((char)cp); - else if (cp <= 0x7FF) { - out.push_back((char)(0xC0 | ((cp >> 6) & 0x1F))); - out.push_back((char)(0x80 | (cp & 0x3F))); - } else if (cp <= 0xFFFF) { - out.push_back((char)(0xE0 | ((cp >> 12) & 0x0F))); - out.push_back((char)(0x80 | ((cp >> 6) & 0x3F))); - out.push_back((char)(0x80 | (cp & 0x3F))); - } else { - out.push_back((char)(0xF0 | ((cp >> 18) & 0x07))); - out.push_back((char)(0x80 | ((cp >> 12) & 0x3F))); - out.push_back((char)(0x80 | ((cp >> 6) & 0x3F))); - out.push_back((char)(0x80 | (cp & 0x3F))); - } - break; - } - default: - error("Unknown escape sequence"); - } - } else { - if ((unsigned char)c < 0x20) error("Control character in string"); - out.push_back(c); - } - } - return out; - } - - Value parseNumber() { - size_t start = pos; - if (peek() == '-') get(); - - if (peek() == '0') { - get(); - } else { - if (!(peek() >= '1' && peek() <= '9')) error("Invalid number"); - while (peek() >= '0' && peek() <= '9') get(); - } - - bool isFloat = false; - if (peek() == '.') { - isFloat = true; - get(); - if (!(peek() >= '0' && peek() <= '9')) error("Invalid fraction"); - while (peek() >= '0' && peek() <= '9') get(); - } - - if (peek() == 'e' || peek() == 'E') { - isFloat = true; - get(); - if (peek() == '+' || peek() == '-') get(); - if (!(peek() >= '0' && peek() <= '9')) error("Invalid exponent"); - while (peek() >= '0' && peek() <= '9') get(); - } - - std::string_view sv = src.substr(start, pos - start); - - if (!isFloat) { - std::int64_t val = 0; - bool neg = false; - size_t i = 0; - if (!sv.empty() && sv[0] == '-') { neg = true; i = 1; } - for (; i < sv.size(); ++i) { - char c = sv[i]; - if (c < '0' || c > '9') error("Invalid integer"); - int digit = c - '0'; - if (!neg) { - if (val > (std::numeric_limits::max() - digit) / 10) { - double d = std::strtod(std::string(sv).c_str(), nullptr); - if (!std::isfinite(d)) error("Non-finite number not allowed"); - return Value(d); - } - val = val * 10 + digit; - } else { - if (val < (std::numeric_limits::min() + digit) / 10) { - double d = std::strtod(std::string(sv).c_str(), nullptr); - if (!std::isfinite(d)) error("Non-finite number not allowed"); - return Value(d); - } - val = val * 10 - digit; - } - } - return Value(val); - } - - double d = std::strtod(std::string(sv).c_str(), nullptr); - if (!std::isfinite(d)) error("Non-finite number not allowed"); - return Value(d); - } - - Array parseArray() { - expect('[', "Expected '['"); - Array arr; - - skipWsAndCommentsCollect(pending_before); - if (consume(']')) return arr; - - while (true) { - Value v = parseValue(); - if (!pending_before.empty()) { - v.comments_before.insert(v.comments_before.begin(), pending_before.begin(), pending_before.end()); - pending_before.clear(); - } - arr.push_back(std::move(v)); - - skipWsAndCommentsCollect(pending_before); - - if (consume(',')) { - skipWsAndCommentsCollect(pending_before); - if (options.allow_trailing_commas && peek() == ']') { get(); break; } - continue; - } - - if (consume(']')) break; - error("Expected ',' or ']'"); - } - - return arr; - } - - Object parseObject() { - expect('{', "Expected '{'"); - Object obj; - - skipWsAndCommentsCollect(pending_before); - if (consume('}')) return obj; - - while (true) { - skipWsAndCommentsCollect(pending_before); - - char c = peek(); - if (!(c == '"' || (options.allow_single_quotes && c == '\''))) - error("Object keys must be strings"); - - std::string key = parseString(); - - skipWsAndCommentsCollect(pending_before); - expect(':', "Expected ':' after key"); - - Value val = parseValue(); - if (!pending_before.empty()) { - val.comments_before.insert(val.comments_before.begin(), pending_before.begin(), pending_before.end()); - pending_before.clear(); - } - - // duplicate key policy: last-wins by default - bool replaced = false; - for (auto& [k, existing] : obj) { - if (k == key) { - if (!options.duplicate_keys_last_wins) { - error("Duplicate key in object: " + key); - } - existing = std::move(val); - replaced = true; - break; - } - } - if (!replaced) obj.emplace_back(std::move(key), std::move(val)); - - skipWsAndCommentsCollect(pending_before); - - if (consume(',')) { - skipWsAndCommentsCollect(pending_before); - if (options.allow_trailing_commas && peek() == '}') { get(); break; } - continue; - } - - if (consume('}')) break; - error("Expected ',' or '}'"); - } - - return obj; - } -}; - -// --------- Stringify ---------- -static void emitCommentsBefore(std::string& out, const Value& v, const StringifyOptions& opt, int depth) { - if (!opt.emit_comments) return; - for (const auto& c : v.comments_before) { - if (opt.pretty) indent(out, depth); - out += "// "; - out += c; - out += opt.pretty ? "\n" : ""; - } -} - -static void emitCommentAfter(std::string& out, const Value& v, const StringifyOptions& opt) { - if (!opt.emit_comments) return; - if (!v.comments_after.empty()) { - out += opt.pretty ? " " : ""; - out += "/* "; - out += v.comments_after; - out += " */"; - } -} - -static void stringifyImpl(std::string& out, const Value& v, const StringifyOptions& opt, int depth); - -static void stringifyArray(std::string& out, const Array& arr, const StringifyOptions& opt, int depth) { - out += "["; - if (arr.empty()) { out += "]"; return; } - - if (opt.pretty) out += "\n"; - for (size_t i = 0; i < arr.size(); ++i) { - const auto& el = arr[i]; - emitCommentsBefore(out, el, opt, depth + opt.indent); - if (opt.pretty) indent(out, depth + opt.indent); - - stringifyImpl(out, el, opt, depth + opt.indent); - emitCommentAfter(out, el, opt); - - if (i + 1 < arr.size()) out += ","; - out += opt.pretty ? "\n" : ""; - } - if (opt.pretty) indent(out, depth); - out += "]"; -} - -static void stringifyObject(std::string& out, const Object& obj, const StringifyOptions& opt, int depth) { - out += "{"; - if (obj.empty()) { out += "}"; return; } - - if (opt.pretty) out += "\n"; - - std::vector idx(obj.size()); - for (size_t i = 0; i < obj.size(); ++i) idx[i] = i; - - if (opt.sort_keys) { - std::sort(idx.begin(), idx.end(), [&](size_t a, size_t b){ - return obj[a].first < obj[b].first; - }); - } - - for (size_t n = 0; n < idx.size(); ++n) { - const auto& [k, val] = obj[idx[n]]; - - emitCommentsBefore(out, val, opt, depth + opt.indent); - if (opt.pretty) indent(out, depth + opt.indent); - - out += "\""; - appendEscaped(out, k, opt.escape_non_ascii); - out += "\":"; - out += opt.pretty ? " " : ""; - - stringifyImpl(out, val, opt, depth + opt.indent); - emitCommentAfter(out, val, opt); - - if (n + 1 < idx.size()) out += ","; - out += opt.pretty ? "\n" : ""; - } - - if (opt.pretty) indent(out, depth); - out += "}"; -} - -static void stringifyImpl(std::string& out, const Value& v, const StringifyOptions& opt, int depth) { - if (v.isNull()) { out += "null"; return; } - if (v.isBool()) { out += (v.asBool() ? "true" : "false"); return; } - if (v.isInt()) { out += std::to_string(v.asInt()); return; } - if (v.isDouble()) { - std::ostringstream oss; - oss.setf(std::ios::fmtflags(0), std::ios::floatfield); - oss << std::setprecision(17) << v.asDouble(); - out += oss.str(); - return; - } - if (v.isString()) { - out += "\""; - appendEscaped(out, v.asString(), opt.escape_non_ascii); - out += "\""; - return; - } - if (v.isArray()) { stringifyArray(out, v.asArray(), opt, depth); return; } - if (v.isObject()) { stringifyObject(out, v.asObject(), opt, depth); return; } -} - -// --------- Public API ---------- -Value parse(std::string_view text, const ParseOptions& opt) { - Parser p(text, opt); - return p.parseRoot(); -} - -Value parseFile(const std::string& filePath, const ParseOptions& opt) { - return parse(readFile(filePath), opt); -} - -std::string stringify(const Value& v, const StringifyOptions& opt) { - std::string out; - emitCommentsBefore(out, v, opt, 0); - stringifyImpl(out, v, opt, 0); - emitCommentAfter(out, v, opt); - if (opt.pretty) out += "\n"; - return out; -} - -void writeFile(const std::string& filePath, const Value& v, const StringifyOptions& opt) { - std::ofstream f(filePath, std::ios::binary); - if (!f) throw std::runtime_error("json::writeFile: cannot open file for writing: " + filePath); - auto s = stringify(v, opt); - f.write(s.data(), (std::streamsize)s.size()); - if (!f) throw std::runtime_error("json::writeFile: write failed: " + filePath); -} - -} // namespace json diff --git a/src/Libraries/Json/Json.hpp b/src/Libraries/Json/Json.hpp deleted file mode 100644 index d0ebc46..0000000 --- a/src/Libraries/Json/Json.hpp +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Json is an internal Neoluma library that allows to read or write JSON data (with comments) - -Quick usage - -1) Parse JSON / JSONC --------------------- -json::Value root = json::parse(text); -// or -json::Value root = json::parseFile("config.jsonc"); - -Throws json::ParseError on invalid input (never loops or hangs). - -2) Read values (safe pattern) ------------------------------ -if (root.isObject()) { - std::string name = root["name"].isString() - ? root["name"].asString() - : "default"; - - int w = (root["window"].isObject() && root["window"]["w"].isInt()) - ? (int)root["window"]["w"].asInt() - : 800; -} - -3) Modify / create values -------------------------- -root["enabled"] = true; -root["count"] = (std::int64_t)42; -root["list"] = json::Array{ 1, 2, 3 }; - -json::Object obj; -obj.emplace_back("a", 1); -obj.emplace_back("b", "text"); -root["sub"] = obj; - -4) Comments ------------ -root.comments_before.push_back("Root comment"); -root["enabled"].comments_before.push_back("Toggle feature"); -root["enabled"].comments_after = "do not touch"; - -5) Write back -------------- -std::string out = json::stringify(root, { - .pretty = true, - .emit_comments = true -}); - -// or -json::writeFile("out.jsonc", root); - -Notes: -- Supports // and /.* *./ comments (without dots) -- Supports trailing commas -- Supports single-quoted strings -- Duplicate keys: last one wins -- Always throws on invalid JSON (no infinite loops) -*/ - -#pragma once -#include -#include -#include -#include -#include -#include - -#include "HelperFunctions.hpp" // provides: trim, split, readFile - -namespace json { - -// ---------- Error ---------- -struct ParseError : std::runtime_error { - size_t offset{}, line{}, col{}; - ParseError(const std::string& msg, size_t off, size_t ln, size_t cl) - : std::runtime_error(msg), offset(off), line(ln), col(cl) {} -}; - -// ---------- Value ---------- -struct Value; - -using Array = std::vector; -using Object = std::vector>; - -struct Value { - // Comment strings attached to this node - std::vector comments_before; - std::string comments_after; - - using Storage = std::variant; - Storage data; - - // Constructors - Value() : data(std::monostate{}) {} - Value(std::nullptr_t) : data(std::monostate{}) {} - Value(bool b) : data(b) {} - Value(std::int64_t i) : data(i) {} - Value(double d) : data(d) {} - Value(std::string s) : data(std::move(s)) {} - Value(const char* s) : data(std::string(s)) {} - Value(Array a) : data(std::move(a)) {} - Value(Object o) : data(std::move(o)) {} - - // Type checks - bool isNull() const { return std::holds_alternative(data); } - bool isBool() const { return std::holds_alternative(data); } - bool isInt() const { return std::holds_alternative(data); } - bool isDouble() const { return std::holds_alternative(data); } - bool isNumber() const { return isInt() || isDouble(); } - bool isString() const { return std::holds_alternative(data); } - bool isArray() const { return std::holds_alternative(data); } - bool isObject() const { return std::holds_alternative(data); } - - // Access (throws std::bad_variant_access on mismatch) - bool& asBool() { return std::get(data); } - std::int64_t& asInt() { return std::get(data); } - double& asDouble() { return std::get(data); } - std::string& asString() { return std::get(data); } - Array& asArray() { return std::get(data); } - Object& asObject() { return std::get(data); } - - const bool& asBool() const { return std::get(data); } - const std::int64_t&asInt() const { return std::get(data); } - const double& asDouble() const { return std::get(data); } - const std::string& asString() const { return std::get(data); } - const Array& asArray() const { return std::get(data); } - const Object& asObject() const { return std::get(data); } - - // Ordered object helpers - Value* find(const std::string& key); - const Value* find(const std::string& key) const; - bool has(const std::string& key) const; - - // Convenience indexing - Value& operator[](const std::string& key); // creates if missing - const Value& operator[](const std::string& key) const; // returns null Value if missing - - // Array indexing - Value& at(size_t i); - const Value& at(size_t i) const; -}; - -// ---------- Options ---------- -struct ParseOptions { - bool allow_comments = true; - bool allow_trailing_commas = true; // [1,2,] { "a":1, } - bool allow_bom = true; // UTF-8 BOM - bool allow_single_quotes = true; - bool duplicate_keys_last_wins = true; -}; - -struct StringifyOptions { - bool pretty = true; - int indent = 2; - bool emit_comments = true; - bool escape_non_ascii = false; // if true, escape real Unicode as \uXXXX / surrogate pairs - bool sort_keys = false; // optional stable output -}; - -// ---------- API ---------- -Value parse(std::string_view text, const ParseOptions& opt = {}); -Value parseFile(const std::string& filePath, const ParseOptions& opt = {}); - -std::string stringify(const Value& v, const StringifyOptions& opt = {}); -void writeFile(const std::string& filePath, const Value& v, const StringifyOptions& opt = {}); - -} // namespace json diff --git a/src/Libraries/Json/JsonGet.hpp b/src/Libraries/Json/JsonGet.hpp deleted file mode 100644 index f7e46e2..0000000 --- a/src/Libraries/Json/JsonGet.hpp +++ /dev/null @@ -1,36 +0,0 @@ -#pragma once -#include "Json.hpp" - -namespace json { - - // -------- Safe getters -------- - inline const Value* get(const Value& v, const std::string& key) { - if (!v.isObject()) return nullptr; - return v.find(key); - } - - inline const Value* get(const Value& v, size_t index) { - if (!v.isArray()) return nullptr; - if (index >= v.asArray().size()) return nullptr; - return &v.asArray()[index]; - } - - inline std::string getString(const Value& v, const std::string& key, std::string def = {}) { - auto* p = get(v, key); - return (p && p->isString()) ? p->asString() : def; - } - - inline std::int64_t getInt(const Value& v, const std::string& key, std::int64_t def = 0) { - auto* p = get(v, key); - if (!p) return def; - if (p->isInt()) return p->asInt(); - if (p->isDouble()) return (std::int64_t)p->asDouble(); - return def; - } - - inline bool getBool(const Value& v, const std::string& key, bool def = false) { - auto* p = get(v, key); - return (p && p->isBool()) ? p->asBool() : def; - } - -} // namespace json diff --git a/src/Libraries/Localization/Localization.cpp b/src/Libraries/Localization/Localization.cpp deleted file mode 100644 index 94e3366..0000000 --- a/src/Libraries/Localization/Localization.cpp +++ /dev/null @@ -1,149 +0,0 @@ -#include "Localization.hpp" - -#include -#include -#include -#include - -#include "Libraries/Toml/Toml.hpp" -#include "Libraries/Paths/Paths.hpp" -#include "Libraries/Utils/Utils.hpp" -#if _WIN32 - #include -#else - #include -#endif - -namespace Localization { - std::unordered_map localeMap; - std::filesystem::path localeFolder = Paths::dataDir() + "/locales/"; - - std::string detectSystemLanguage() { - #if _WIN32 // i hate microsoft - ULONG numLangs = 0; - ULONG bufferLength = 0; - - GetUserPreferredUILanguages(MUI_LANGUAGE_NAME, &numLangs, nullptr, &bufferLength); - if (bufferLength > 0) { - std::wstring buffer(bufferLength, L'\0'); - if (GetUserPreferredUILanguages(MUI_LANGUAGE_NAME, &numLangs, buffer.data(), &bufferLength)) { - std::wstring firstLang = buffer.data(); // first system language - - int len = WideCharToMultiByte(CP_UTF8, 0, firstLang.c_str(), -1, nullptr, 0, nullptr, nullptr); - std::string out((size_t)len, 0); - WideCharToMultiByte(CP_UTF8, 0, firstLang.c_str(), -1, out.data(), len, nullptr, nullptr); - out.resize((size_t)len - 1); - - for (auto& c : out) if (c == '-') c = '_'; - return out; - } - } - - // old method fallback just in case - WCHAR buffer[LOCALE_NAME_MAX_LENGTH]; - int r = GetUserDefaultLocaleName(buffer, LOCALE_NAME_MAX_LENGTH); - if (r > 0) { - int len = WideCharToMultiByte(CP_UTF8, 0, buffer, -1, nullptr, 0, nullptr, nullptr); - std::string out((size_t)len, 0); - WideCharToMultiByte(CP_UTF8, 0, buffer, -1, out.data(), len, nullptr, nullptr); - out.resize((size_t)len - 1); - - for (auto& c : out) if (c == '-') c = '_'; - return out; - } - - return "en_US"; // fallback - #else - const char* langPtr = std::getenv("LANG"); - if (!langPtr) return "en_US"; - - std::string s = langPtr; - - // LANG often: "en_US.UTF-8" - if (auto dot = s.find('.'); dot != std::string::npos) - s = s.substr(0, dot); - - // Sometimes it can be "en_US@modifier" - if (auto at = s.find('@'); at != std::string::npos) - s = s.substr(0, at); - - return s; - #endif - } - - std::unordered_map loadJson(const std::string& locale) { - std::unordered_map map; - // they all must be folders. if there's one guy who messes this up in system files it's their fault - for (auto& folder : std::filesystem::directory_iterator(localeFolder)){ - if (!folder.is_directory()) { - std::println(std::cerr, "[Localization] Not a directory: {}", folder.path().string()); - continue; - } - std::string name = folder.path().stem().string(); - for (auto& f : std::filesystem::directory_iterator(localeFolder / name)) - { - if (!f.is_regular_file() || f.path().extension() != ".jsonc") { - std::println(std::cerr, "[Localization] Not a locale file found: {}", f.path().string()); - continue; - } - if (f.path().stem().string() != locale) continue; - - json::Value value = json::parseFile(f.path().string()); - pancakeJson(value, name, map); - } - } - return map; - } - - void pancakeJson(const json::Value& v, const std::string& prefix, std::unordered_map& out) { - if (v.isObject()) { - for (const auto& [k, child] : v.asObject()) { - std::string key = prefix.empty() ? k : (prefix + "." + k); - pancakeJson(child, key, out); - } - return; - } - - if (!v.isString()) { - std::println(std::cerr, "[Localization] Non-string value at key: {}", prefix); - return; - } - - out[prefix] = v.asString(); - } - - void init() { - if (!std::filesystem::exists(localeFolder)) { - std::println(std::cerr, "Neoluma's localization module detected that you have no localization folder. We highly suggest you repairing the installation via your installer. \nNeoluma can't run without the localization."); - // TODO: Implement a fallback system for people who ever will to delete locale configs. - - return; - } - localeMap = loadJson("en_US"); - std::filesystem::path configPath = Paths::userDataDir() + "/config.jsonc"; - if (!std::filesystem::exists(configPath)){ - std::filesystem::create_directory(configPath.parent_path()); - std::string locale = detectSystemLanguage(); - json::Value cfg = json::parse("{//Locale is used to determine your language Neoluma will use.\n//Please do not modify this option unless you're familiar with languages Neoluma supports.\n\"language\": \"" + detectSystemLanguage() + "\"}"); - json::writeFile(configPath.string(), cfg); - } - - json::Value cfg = json::parseFile(configPath.string()); - std::unordered_map userLanguage = loadJson(cfg["language"].asString()); - for (const auto& [k, v] : userLanguage) localeMap[k] = v; - - //for (const auto& [k, v] : localeMap) std::println(std::cerr, "{}: {}", k, v); - } - - String translate(const String& key) { - if (auto it = localeMap.find(key); it != localeMap.end()) return it->second; - std::println(std::cerr, "[Localization] Couldn't translate key '{}'", key); - return key; - } - - // Translate with {} formatting - String translatef(const String& key, const Array& args) { - String result = translate(key); - return String(result, args); - } -} \ No newline at end of file diff --git a/src/Libraries/Localization/Localization.hpp b/src/Libraries/Localization/Localization.hpp deleted file mode 100644 index 63c27ff..0000000 --- a/src/Libraries/Localization/Localization.hpp +++ /dev/null @@ -1,23 +0,0 @@ -#pragma once -/* -* Localization is an internal Neoluma library for handling localizations of the internal docs / cli / errors / etc. -*/ - -#include -#include -#include "../Json/Json.hpp" - -namespace Localization { - extern std::unordered_map localeMap; - - // ==== Internal helpers ==== - std::string detectSystemLanguage(); // runs only once if configs don't exist - std::unordered_map loadJson(const std::string& filePath); - - // ==== Main functions ==== - void init(); - void pancakeJson(const json::Value& v, const std::string& prefix, std::unordered_map& out); - - std::string translate(const std::string& key); - std::string translatef(const std::string& key, const std::vector& args); -} \ No newline at end of file diff --git a/src/Libraries/Paths/Paths.cpp b/src/Libraries/Paths/Paths.cpp deleted file mode 100644 index 77fb51b..0000000 --- a/src/Libraries/Paths/Paths.cpp +++ /dev/null @@ -1,120 +0,0 @@ -#include "Paths.hpp" -#include - -#if _WIN32 - #include -#elif __APPLE__ && __MACH__ - #include - #include - #include -#else - #include - #include -#endif - -#include -#include - -#if _WIN32 -static std::string getEnvVar(const char* name){ - char* buf = nullptr; - size_t len = 0; - errno_t err = _dupenv_s(&buf, &len, name); - if (err != 0 || !buf) return ""; - - std::string value(buf); - free(buf); - return value; -} -#else -static std::string getEnvVar(const char* name){ - const char* v = std::getenv(name); - return v ? std::string(v) : ""; -} -#endif - -static std::string normalizeSlashes(std::string s){ - for (auto& c : s ) if (c == '\\') c = '/'; - return s; -} - -std::string Paths::join(const std::string& a, const std::string& b){ - if (a.empty()) return b; - if (b.empty()) return a; - if (a.back() == '/' || a.back() == '\\') return a + b; - return a + '/' + b; -} - -std::string Paths::executablePath(){ -#if _WIN32 - char buf[MAX_PATH]; - DWORD len = GetModuleFileNameA(NULL, buf, MAX_PATH); - if (len == 0 || len == MAX_PATH) throw std::runtime_error("Paths::executablePath(): GetModuleFileNameA failed"); - return normalizeSlashes(std::string(buf, len)); -#elif __APPLE__ && __MACH__ - uint32_t size = 0; - _NSGetExecutablePath(NULL, &size); - std::string out(size, '\0'); - if (_NSGetExecutablePath(out.data(), &size) != 0) throw std::runtime_error("Paths::executablePath(): _NSGetExecutablePath failed"); - out = std::string(out.c_str()); - char resolvedPath[PATH_MAX]; - if (realpath(out.c_str(), resolvedPath)) return std::string(resolvedPath); - return out; -#else - char resolvedPath[PATH_MAX]; - ssize_t len = readlink("/proc/self/exe", resolvedPath, sizeof(resolvedPath)-1); - if (len <= 0) throw std::runtime_error("Paths::executablePath(): readlink failed"); - resolvedPath[len] = '\0'; - return std::string(resolvedPath); -#endif -} - -// Gets Neoluma's installation folder -std::string Paths::rootDir(){ - auto p = normalizeSlashes(executablePath()); - - // remove executable name - auto pos = p.find_last_of('/'); - if (pos == std::string::npos) return "."; - p = p.substr(0, pos); - - // remove "bin" - pos = p.find_last_of('/'); - if (pos == std::string::npos) return "."; - return p.substr(0, pos); -} - -// Gets Neoluma's data folder -std::string Paths::dataDir() -{ - return rootDir() + "/share"; -} - -std::string Paths::userDataDir(){ -#if _WIN32 - auto local = getEnvVar("LOCALAPPDATA"); - if (!local.empty()) return join(normalizeSlashes(local), "Neoluma"); - - auto app = getEnvVar("APPDATA"); - if (!app.empty()) return join(normalizeSlashes(app), "Neoluma"); - - return join(rootDir(), "userData"); - -#elif __APPLE__ && __MACH__ - auto home = getEnvVar("HOME"); - if (!home.empty()) - return normalizeSlashes(home) + "/Library/Application Support/Neoluma"; - - return join(rootDir(), "userData"); - -#else - auto xdg = getEnvVar("XDG_DATA_HOME"); - if (!xdg.empty()) return join(normalizeSlashes(xdg), "neoluma"); - - auto home = getEnvVar("HOME"); - if (!home.empty()) - return normalizeSlashes(home) + "/.local/share/neoluma"; - - return join(rootDir(), "userData"); -#endif -} \ No newline at end of file diff --git a/src/Libraries/Paths/Paths.hpp b/src/Libraries/Paths/Paths.hpp deleted file mode 100644 index 2982695..0000000 --- a/src/Libraries/Paths/Paths.hpp +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Path is an internal Neoluma library for handling paths near Neoluma executable installation. - * Really, i made it just for that. - */ - -#pragma once -#include - -namespace Paths { - std::string executablePath(); - - std::string rootDir(); - std::string dataDir(); - std::string userDataDir(); - - std::string join(const std::string& a, const std::string& b); -}; \ No newline at end of file diff --git a/src/Libraries/Toml/Toml.cpp b/src/Libraries/Toml/Toml.cpp deleted file mode 100644 index 13e7dda..0000000 --- a/src/Libraries/Toml/Toml.cpp +++ /dev/null @@ -1,162 +0,0 @@ -#include "Toml.hpp" -#include "../../HelperFunctions.hpp" - -namespace Toml { - // ==== Helper utilities ==== - TomlValue& getOrCreate(TomlTable& table, const std::string& key) { - for (auto& [k, v] : table) { - if (k == key) { - if (v.type != TomlType::Table) v.type = TomlType::Table; - return v; - } - } - TomlValue val; - val.type = TomlType::Table; - val.value = TomlTable{}; - table.emplace_back(key, std::move(val)); - return table.back().second; - } - - TomlValue& TomlValue::operator[](const std::string& key) { - TomlTable& table = std::get(value); - for (auto& [k, v] : table) { - if (k == key) return v; - } - table.emplace_back(key, TomlValue{}); - return table.back().second; - } - - // ===== Main parsing ===== - TomlValue parseValue(const std::string& text) { - std::string s = trim(text); - if (s.empty()) return TomlValue(""); - - // arrays - if (s.front() == '[' && s.back() == ']') { - TomlArray arr; - std::string inside = s.substr(1, s.size() - 2); - std::stringstream ss(inside); - std::string item; - while (std::getline(ss, item, ',')) { - arr.push_back(parseValue(item)); - } - return TomlValue(arr); - } - - // string - if (s.front() == '"' && s.back() == '"') { - return TomlValue(s.substr(1, s.size() - 2)); - } - - // boolean - if (s == "true") return TomlValue(true); - if (s == "false") return TomlValue(false); - - // integer - size_t pos; - int64_t i = std::stoll(s, &pos); - if (pos == s.size()) return TomlValue(i); - - // float - double d = std::stod(s, &pos); - if (pos == s.size()) return TomlValue(d); - - // fallback as string - return TomlValue(s); - } - - TomlTable parseToml(std::istream& in) { - TomlTable root; - TomlTable* current = &root; - - std::string line; - while (std::getline(in, line)) { - // remove comments - auto pos = line.find('#'); - if (pos != std::string::npos) line = line.substr(0, pos); - - line = trim(line); - if (line.empty()) continue; - - // parse table headers into tomltable - if (line.front() == '[' && line.back() == ']') { - auto parts = split(line.substr(1, line.size() - 2), '.'); - current = &root; - for (auto& part : parts) { - TomlValue& v = getOrCreate(*current, part); - v.type = TomlType::Table; - current = &std::get(v.value); - } - } - else { - auto eq = line.find('='); - if (eq == std::string::npos) continue; - std::string key = trim(line.substr(0, eq)); - std::string val = trim(line.substr(eq + 1)); - TomlValue& v = getOrCreate(*current, key); - v = parseValue(val); - } - } - - return root; - } - - std::string serializeValue(const TomlValue& val) { - switch (val.type) { - case TomlType::String: return "\"" + std::get(val.value) + "\""; - case TomlType::Integer: return std::to_string(std::get(val.value)); - case TomlType::Float: return std::to_string(std::get(val.value)); - case TomlType::Boolean: return std::get(val.value) ? "true" : "false"; - case TomlType::Array: { - const auto& arr = std::get(val.value); - std::string res = "["; - for (size_t i = 0; i < arr.size(); i++) { - res += serializeValue(arr[i]); - if (i + 1 < arr.size()) res += ", "; - } - return res + "]"; - } - case TomlType::Table: return ""; - case TomlType::Comment: return "#" + std::get(val.value); - } - return ""; - } - - void serializeTable(std::ostream& out, const TomlTable& table, const std::string& parent) { - // values - for (auto& [key, val] : table) { - if (val.type != TomlType::Table) { - out << key << " = " << serializeValue(val) << "\n"; - } - } - // subtables - for (auto& [key, val] : table) { - if (val.type == TomlType::Table) { - std::string full = parent.empty() ? key : parent + "." + key; - out << "\n[" << full << "]\n"; - serializeTable(out, std::get(val.value), full); - } - } - } - - std::string serialize(const TomlTable& root) { - std::ostringstream out; - serializeTable(out, root); - return out.str(); - } - - TomlValue& Table::operator[](const std::string& key) { - for (auto& [k, v] : data) - if (k == key) return v; - data.emplace_back(key, TomlValue{}); - return data.back().second; - } - - const TomlValue& Table::operator[](const std::string& key) const { - for (const auto& [k, v] : data) - if (k == key) return v; - throw std::out_of_range(std::format("[NeolumaLibs/Toml::Table] Key '{}' not found", key)); - } - - TomlTable& Table::get() { return data; } -} diff --git a/src/Libraries/Toml/Toml.hpp b/src/Libraries/Toml/Toml.hpp deleted file mode 100644 index 5f034ef..0000000 --- a/src/Libraries/Toml/Toml.hpp +++ /dev/null @@ -1,49 +0,0 @@ -#pragma once - -#include -#include -#include -#include -#include -#include -#include -#include - -namespace Toml { - enum class TomlType { Comment, String, Integer, Float, Boolean, Array, Table }; - - struct TomlValue; - - using TomlArray = std::vector; - using TomlTable = std::vector>; - - struct TomlValue { - TomlType type; - std::variant value; - - TomlValue() = default; - TomlValue(const std::string& str) : type(TomlType::String), value(str) {} - TomlValue(const char* str) : type(TomlType::String), value(std::string(str)) {} - TomlValue(bool b) : type(TomlType::Boolean), value(b) {} - TomlValue(int64_t i) : type(TomlType::Integer), value(i) {} - TomlValue(double f) : type(TomlType::Float), value(f) {} - TomlValue(const TomlArray& arr) : type(TomlType::Array), value(arr) {} - TomlValue(const TomlTable& tbl) : type(TomlType::Table), value(tbl) {} - - TomlValue& operator[](const std::string& key); - }; - - struct Table { - TomlTable data; - TomlValue& operator[](const std::string& key); - const TomlValue& operator[](const std::string& key) const; - TomlTable& get(); - }; - - TomlValue parseValue(const std::string& text); - TomlTable parseToml(std::istream& in); - - std::string serializeValue(const TomlValue& val); - void serializeTable(std::ostream& out, const TomlTable& table, const std::string& parent = ""); - std::string serialize(const TomlTable& root); -}; diff --git a/src/Libraries/Utils/Types/Array.hpp b/src/Libraries/Utils/Types/Array.hpp deleted file mode 100644 index 3b116f1..0000000 --- a/src/Libraries/Utils/Types/Array.hpp +++ /dev/null @@ -1,31 +0,0 @@ -#pragma once - -#include -#include -#include -#include - -template -class Array { - std::vector data; -public: - Array() = default; - Array(std::initializer_list values) : data(values) {} - - void add(const T& value) { data.push_back(value); } - void add(T&& value) { data.push_back(std::move(value)); } - std::size_t len() const { return data.size(); } - void clear() { data.clear(); } - T& first() { return data[0]; } - T& last() { return data[data.size() - 1]; } - void reverse() { std::reverse(begin(), end()); } - bool empty() const { return data.empty(); } - T& operator[](std::size_t index) { return data[index]; } - const T& operator[](std::size_t index) const { return data[index]; } - - // evil ass rape functions - auto begin() const { return data.begin(); } - auto end() const { return data.end(); } - auto begin() { return data.begin(); } - auto end() { return data.end(); } -}; diff --git a/src/Libraries/Utils/Types/Hashmap.hpp b/src/Libraries/Utils/Types/Hashmap.hpp deleted file mode 100644 index 83a7c7e..0000000 --- a/src/Libraries/Utils/Types/Hashmap.hpp +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once - -#include - -template -class HashMap { - std::unordered_map map; -public: - HashMap() = default; - - void set(K key, V value) { map[key] = value; } - V get(K key) const { return map.at(key); } - const V& get(const K& key) const { return map.at(key); } - V& operator[](K key) { return map[key]; } - - bool contains(K key) const { return map.find(key) != map.end(); } - bool empty() const { return map.empty(); } - void remove(const K& key) { map.erase(key); } - void clear() { map.clear(); } - size_t len() const { return map.size(); } -}; diff --git a/src/Libraries/Utils/Types/String.cpp b/src/Libraries/Utils/Types/String.cpp deleted file mode 100644 index 843c61a..0000000 --- a/src/Libraries/Utils/Types/String.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include "String.hpp" - -String::String() = default; -String::String(const char* value) : str(value) {} -String::String(const std::string& value) : str(value) {} -String::String(std::string_view value) : str(value) {} - -String::operator const std::string&() const { return str; } -String::operator std::string&() { return str; } - -String& String::operator=(const std::string& value) { str = value; return *this; } -String& String::operator=(std::string&& value) { str = std::move(value); return *this; } -String& String::operator=(const char* value) { str = value; return *this; } -String& String::operator+=(const std::string& value) { str += value; return *this; } -String& String::operator+=(const char* value) { str += value; return *this; } -String& String::operator+=(char value) { str += value; return *this; } -bool String::operator==(const std::string& value) const { return str == value; } -bool String::operator!=(const std::string& value) const { return str != value; } -char& String::operator[](std::size_t index) { return str[index]; } -const char& String::operator[](std::size_t index) const { return str[index]; } - -std::size_t String::len() const { return str.length(); } -bool String::empty() const { return str.empty(); } -void String::clear() { str.clear(); } - -void String::trim() { str.erase(0, str.find_first_not_of(' ')); } - -Array String::split(char delimiter) const { - Array result; - String current; - for (const char c : str) { - if (c == delimiter) { - current.trim(); - result.add(current); - current.clear(); - } else current += c; - } - current.trim(); - result.add(current); - return result; -} diff --git a/src/Libraries/Utils/Types/String.hpp b/src/Libraries/Utils/Types/String.hpp deleted file mode 100644 index b3bbd0d..0000000 --- a/src/Libraries/Utils/Types/String.hpp +++ /dev/null @@ -1,109 +0,0 @@ -#pragma once - -#include -#include -#include -#include -#include -#include -#include - -#include "Array.hpp" - -class String { - std::string str; - - template - String anyToStr(T&& v) { - std::ostringstream oss; - oss << std::forward(v); - return String(oss.str()); - } - - String formatStrVec(const std::string& value, const Array& args) { - String out; - size_t argCount = 0; - for (size_t i = 0; i < value.size(); i++) { - char c = value[i]; - if (c == '{') { - if (i + 1 >= value.size()) throw std::runtime_error("[Neoluma/String] Invalid '{'"); - char next = value[i + 1]; - if (next == '{') { out += '{'; i++; } - else { - size_t j = i + 1; - - // {} case - if (value[j] == '}') { - if (argCount >= args.len()) throw std::runtime_error("[Neoluma/String] Not enough format arguments"); - out += args[argCount++]; - i = j; - } - // {number} case - else if (isDigit(value[j])) { - size_t index = 0; - - while (j < value.size() && isDigit(value[j])) { - index = index * 10 + (value[j] - '0'); - j++; - } - - if (j >= value.size() || value[j] != '}') throw std::runtime_error("[Neoluma/String] Invalid positional format"); - if (index >= args.len()) throw std::runtime_error("[Neoluma/String] Positional argument out of range"); - - out += args[index]; - i = j; - } - else throw std::runtime_error("[Neoluma/String] Invalid '{'"); - } - } - else if (c == '}') { - if (i + 1 < value.size() && value[i + 1] == '}') { out += '}'; i++; } - else throw std::runtime_error("[Neoluma/String] Invalid '}'"); - } - else out += c; - } - if (argCount < args.len()) throw std::runtime_error("[Neoluma/String] Too many format arguments"); - return out; - } - - bool isDigit(char c) { return c >= '0' && c <= '9'; } -public: - String(); - String(const char* value); - String(const std::string& value); - String(std::string_view value); - // TODO for later: fix this, i absolutely hate how this looks - template - String(const std::string& value, Args&&... args) { - Array collectedArgs = { anyToStr(args)... }; - formatStrVec(value, collectedArgs); - } - String(const std::string& value, const Array& args) { formatStrVec(value, args); } - - String& operator=(const std::string& value); - String& operator=(std::string&& value); - String& operator=(const char* value); - String& operator+=(const std::string& value); - String& operator+=(const char* value); - String& operator+=(char value); - bool operator==(const std::string& value) const; - bool operator!=(const std::string& value) const; - char& operator[](std::size_t index); - const char& operator[](std::size_t index) const; - operator const std::string&() const; - operator std::string&(); - - std::size_t len() const; - bool empty() const; - void clear(); - - void trim(); - Array split(char delimiter) const; -}; - -namespace std { - template<> - struct hash { - size_t operator()(const String& value) const noexcept { return hash()(value); } - }; -} \ No newline at end of file diff --git a/src/Libraries/Utils/Utils.hpp b/src/Libraries/Utils/Utils.hpp deleted file mode 100644 index c128a04..0000000 --- a/src/Libraries/Utils/Utils.hpp +++ /dev/null @@ -1,5 +0,0 @@ -#pragma once - -#include "Types/Array.hpp" -#include "Types/String.hpp" -#include "Types/Hashmap.hpp" \ No newline at end of file diff --git a/src/Localization/CLI/ar_SA.jsonc b/src/Localization/CLI/ar_SA.jsonc deleted file mode 100644 index b441d66..0000000 --- a/src/Localization/CLI/ar_SA.jsonc +++ /dev/null @@ -1,25 +0,0 @@ -{ - "helpMessage": "Neoluma لغةَ برمجة عاليةَ المستوى، مصنوعة لكل شئ،حتي لو كنت تكتب script صغيرا أو تبني operating system، فهي مصنوعة لتتوسع معك،تستغدم syntax شبه python، الarchitecture مستوحى من ++C#/C. هي لغة تعبيرية وقوية.\n\nألاستخدامات:\nneoluma build l\n- compile الproject إلي executable\nneoluma run l\n- compile ثم شغل الملف\nneoluma check l\n- أكد الsyntax بدون ان تقوم بbuild\nneoluma new l\n- اصنع project جديد\nneoluma version l\n-اطبع الversion خاص بالcompiler", - "parseProjectFile.parseOutputError": "الidentifier لألoutput خاطئ،الأختبارات المحتوية هي: exe, ir, obj, sharedlib, staticlib", - "build": { - "initialization": "🔨 بدأ البناء للproject:" - }, - "run": { - "initialization": "🚀 بدأ تشغيل الملف..." - }, - "check": { - "initialization": "✅ بدأ التأكيد ل: {}" - }, - "createProject": { - "initialization": "📃 لقد بدأ تصنيع الproject الجديد", - "projectName": "❓ ما اسم الproject؟ ", - "projectVersion": "🆚 ما الversion الأول لألproject (يمكن أن يكون أي شئ)؟ ", - "projectAuthors": "🤓 من هو الكاتب لهذا الproject (منقسم باستخدام ،)؟", - "projectLicense": "📃 ما الlicense خاص بالproject؟", - "confirmation": "😎 لنلخص الproject!\nاسم الproject: {}؛\nالversion خاص بالproject: {}؛\nالكاتب: {}؛\nالlicense: {}؛\n\n{}هل هذا صحيح؟", - "confirmation.yes": "✅ قد صنع الproject! نتمنى انك تستمتع بneoluma", - "confirmation.no": "❌ الproject أتلغي،إذا هدا كان خطأ جرب أن تصنع project مجددا", - "template.main.comment": "أهلاً إلي neoluma! نتمنى انك ستستمتع به. ", - "template.main.printmsg": "أهلاً من neoluma!" - } -} \ No newline at end of file diff --git a/src/Localization/CLI/de_DE.jsonc b/src/Localization/CLI/de_DE.jsonc deleted file mode 100644 index 4db4c55..0000000 --- a/src/Localization/CLI/de_DE.jsonc +++ /dev/null @@ -1,27 +0,0 @@ -{ - "helpMessage": "Neoluma ist eine höhere und allzweckliche Programmiersprache.\nUnabhängig davon, ob Sie ein kleines Skript erstellen oder ein ganzes Betriebssystem.\nNeoluma ist dafür entwickelt, mit Ihnen zu skalieren.\nAnhand der ähnlichen Syntax wie Python und der Architektur inspiriert von C# und C++ ist es sowohl ausdrucksvoll als auch leistungsstark.\n\nVerwendung:\n neoluma build - Kompilieren als ausführbares Programm\n neoluma run - Kompilieren und ausführen\n neoluma check - Syntaxüberprüfung ohne Kompilierung\n neoluma new - Neues Projekt erstellen\n neoluma version - Ausgeben der Version des Kompilierers", - "parseProjectFile.parseOutputError": "Das Kennzeichen des Ausgabetypen ist ungültig. Verfügbare Optionen: exe, ir, obj, sharedlib, staticlib", - "build": { - "initialization": "🔨 Baue Projekt:" - }, - "run": { - "initialization": "🚀 Programmausführung..." - }, - "check": { - "initialization": "✅ Semantische Überprüfung von:", - "complete": "{}🎉 Check completed successfully!{}", - "failed": "{}❌ Analytic check failed. Please check the errors above.{}" - }, - "createProject": { - "initialization": "📃 Neues Neoluma Projekt erstellen", - "projectName": "❓ Was ist der Name Ihres Projektes?", - "projectVersion": "🆚 Was ist Ihre erste Projektversion (alles möglich)?", - "projectAuthors": "🤓 Wer sind die Projektauthoren (getrennt mit Komma)?", - "projectLicense": "📃 Welche Lizenz hat Ihr Projekt?", - "confirmation": "{}😎 Lass uns Ihr Projekt zusammenfassen!\n Projektname: {};\n Version: {};\n Authoren: {};\n Lizenz: {};\n\n{}ist dies korrekt?{}", - "confirmation.yes": "{}✅ Projekt erstellt! Viel Spaß beim Erstellen mit Neoluma!{}", - "confirmation.no": "{}❌ Projekterstellung abgebrochen. Falls dies ein Fehler war, versuchen Sie es erneut!{}", - "template.main.comment": "Willkommen bei Neoluma! Viel Spaß beim Erschaffen!", - "template.main.printmsg": "Hallo von Neoluma!" - } -} \ No newline at end of file diff --git a/src/Localization/CLI/en_US.jsonc b/src/Localization/CLI/en_US.jsonc deleted file mode 100644 index 257d133..0000000 --- a/src/Localization/CLI/en_US.jsonc +++ /dev/null @@ -1,27 +0,0 @@ -{ - "helpMessage": "Neoluma is a high-level, all-purpose programming language designed to be a language for everything.\nWhether you're writing a small script or building an entire operating system, Neoluma is made to scale with you. With a Python-like syntax and C#/C++-inspired architecture,\nit's both expressive and powerful.\n\nUsage:\n neoluma build - Compile project to executable\n neoluma run - Compile and immediately run\n neoluma check - Syntax-check without building\n neoluma new - Create new project\n neoluma version - Print compiler version", - "parseProjectFile.parseOutputError": "The identifier of output type is incorrect. Available ones are: exe, ir, obj, sharedlib, staticlib", - "build": { - "initialization": "🔨 Building project:" - }, - "run": { - "initialization": "🚀 Running executable..." - }, - "check": { - "initialization": "✅ Analytic check for: {}", - "complete": "🎉 Check completed successfully!", - "failed": "❌ Analytic check failed. Please check the errors above." - }, - "createProject": { - "initialization": "📃 Creating a new Neoluma project", - "projectName": "❓ What's the name of your project?", - "projectVersion": "🆚 What's your project first version (can be anything)?", - "projectAuthors": "🤓 Who is/are the author(s) of the project (separate with ,)?", - "projectLicense": "📃 What license does your project have?", - "confirmation": "😎 Let's sum up your project!\n Project Name: {};\n Version: {};\n Authors: {};\n License: {};\n\n{}Is that correct?", - "confirmation.yes": "✅ Project created! Have fun building in Neoluma!", - "confirmation.no": "❌ Project cancelled. If it's a mistake, try create a project again!", - "template.main.comment": "Welcome to Neoluma! Have fun building!", - "template.main.printmsg": "Hello from Neoluma!" - } -} \ No newline at end of file diff --git a/src/Localization/CLI/it_IT.jsonc b/src/Localization/CLI/it_IT.jsonc deleted file mode 100644 index d81322f..0000000 --- a/src/Localization/CLI/it_IT.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -{ - "build": { - "initialization": "🔨 Compilando il progetto:" - }, - "run": { - "initialization": "🚀 Applicazione in esecuzione..." - }, - "createProject": { - "template.main.printmsg": "Ciao di Neoluma!" - } -} \ No newline at end of file diff --git a/src/Localization/CLI/ru_RU.jsonc b/src/Localization/CLI/ru_RU.jsonc deleted file mode 100644 index 1266467..0000000 --- a/src/Localization/CLI/ru_RU.jsonc +++ /dev/null @@ -1,27 +0,0 @@ -{ - "helpMessage": "Neoluma — это высокоуровневый, универсальный язык программирования, созданный как язык для всего. Будь то маленький скрипт или целая операционная система — Neoluma масштабируется вместе с вами. Синтаксис, напоминающий Python, и архитектура, вдохновлённая C# и C++, делают его одновременно выразительным и мощным.\n\nИспользование:\n neoluma build - Скомпилировать проект в исполняемый файл\n neoluma run - Скомпилировать и сразу запустить\n neoluma check - Проверить синтаксис без сборки\n neoluma new - Создать новый проект\n neoluma version - Показать версию компилятора", - "parseProjectFile.parseOutputError": "Идентификатор типа вывода некорректен. Доступные на данный момент: exe, ir, obj, sharedlib, staticlib", - "build": { - "initialization": "🔨 Сборка проекта:" - }, - "run": { - "initialization": "🚀 Запуск программы..." - }, - "check": { - "initialization": "✅ Аналитическая проверка для: {}", - "complete": "🎉 Проверка пройдена успешно!", - "failed": "❌ Аналитическая проверка не удалась. Пожалуйста, проверьте ошибки выше." - }, - "createProject": { - "initialization": "📃 Создание нового проекта Neoluma", - "projectName": "❓ Какое имя вашего проекта?", - "projectVersion": "🆚 Какая первая версия вашего проекта (может быть что угодно)?", - "projectAuthors": "🤓 Кто является автором(-ами) вашего проекта (разделите через ,)?", - "projectLicense": "📃 Под какой лицензией находится ваш проект?", - "confirmation": "😎 Давайте подытожим ваш проект!\n Название проекта: {};\n Версия: {};\n Авторы: {};\n Лицензия: {};\n\n{}Это верно?", - "confirmation.yes": "✅ Проект создан! Удачного времяпровождения и создания в Neoluma!", - "confirmation.no": "❌ Проект отменён. Если это была ошибка, попробуйте создать проект снова!", - "template.main.comment": "Добро пожаловать в Neoluma! Удачного времяпровождения и создания!", - "template.main.printmsg": "Привет от Neoluma!" - } -} \ No newline at end of file diff --git a/src/Localization/ErrorManager/en_US.jsonc b/src/Localization/ErrorManager/en_US.jsonc deleted file mode 100644 index 2848f45..0000000 --- a/src/Localization/ErrorManager/en_US.jsonc +++ /dev/null @@ -1,275 +0,0 @@ -{ - "hint": "💡 Hint: {}", - "errorsFound": "{} error(s) found!", - // safetyGuard triggers in Parser only. - "safetyGuard": "❌😵‍💫 Recovery guard triggered! Stopping parsing to avoid infinite loop. If you see this message somehow, report this to the developers. \n\n Information: \n Function: {},\n File {},\n Happened at Line {}:{}\n\nThank you!\n", - "Syntax": { - "UnexpectedToken.message": "Unexpected token: '{}'", - "UnexpectedToken.hint": "Remove it, or make sure you typed it correctly.", - - "MissingToken": { - "message": "Missing '{}'", - "hint": "Add '{}' here.", - - "noVariableAfter.message": "Missing expression after '{}'", - "noVariableAfter.hint": "Provide a value or variable after '{}'.", - - "missingOperandUnary.message": "Missing operand after unary operator '{}'", - "missingOperandUnary.hint": "Add an operand after '{}'. For example: !x, -x.", - - "missingExpressionLambda.message": "Missing expression after '{}' in lambda", - "missingExpressionLambda.hint": "Provide an expression inside the parentheses.", - - "dictColonAfterKey.message": "Missing ':' after dictionary key '{}'", - "dictColonAfterKey.hint": "Add a colon after the key. For example: {{ key: value }}.", - - "closingParen.message": "Missing closing ')' after '{}'", - "closingParen.hint": "Close the parenthesis after '{}'.", - - "openingParen.message": "Missing '(' after '{}'", - "openingParen.hint": "Add '(' after '{}'.", - - "closingBrace.message": "Missing closing '}}' after '{}'", - "closingBrace.hint": "Close the block with '}}'.", - - "openingBrace.message": "Missing '{{' to start '{}' body", - "openingBrace.hint": "Add '{{' to open the block.", - - "closingBracket.message": "Missing ']' after size in type definition", - "closingBracket.hint": "Close the bracket after the size value.", - - "colonAfterVar.message": "Missing ':' after variable name '{}'", - "colonAfterVar.hint": "Add ':' after the variable name to declare its type. For example: x: int.", - - "colonInFor.message": "Missing ':' after variable '{}' in for loop", - "colonInFor.hint": "Write the for loop like this: for (item: myList) {{ ... }}.", - - "colonInCase.message": "Missing ':' after 'case' condition", - "colonInCase.hint": "Add ':' after the case condition. For example: case 1: ...", - - "colonInDefault.message": "Missing ':' after 'default'", - "colonInDefault.hint": "Add ':' after 'default'. For example: default: ...", - - "colonInInterface.message": "Missing ':' after field name '{}' in interface", - "colonInInterface.hint": "Add ':' and the field type. For example: name: str.", - - "catchAfterTry.message": "Missing 'catch' block after 'try'", - "catchAfterTry.hint": "Add a catch block. For example: catch (e) {{ ... }}.", - - "exceptionVar.message": "Missing exception variable name after 'catch'", - "exceptionVar.hint": "Provide a variable name in catch. For example: catch (e) {{ ... }}.", - - "importTarget.message": "Missing import path after '#import'", - "importTarget.hint": "Provide a string path after #import. For example: #import \"myModule\".", - - "importAlias.message": "Missing identifier after 'as' in import", - "importAlias.hint": "Provide an alias name. For example: #import \"myModule\" as mod.", - - "macroIdentifier.message": "Missing identifier after '#macro'", - "macroIdentifier.hint": "Provide a name for the macro. For example: #macro MY_MACRO.", - - "functionName.message": "Missing function name after 'fn'", - "functionName.hint": "Provide a name for the function. For example: fn myFunction() {{ ... }}.", - - "functionParams.message": "Missing '(' after function name '{}'", - "functionParams.hint": "Add parentheses after the function name. For example: fn {}() {{ ... }}.", - - "functionParamName.message": "Missing parameter name in function '{}'", - "functionParamName.hint": "Provide a name for each parameter. For example: fn foo(x: int) {{ ... }}.", - - "functionParamDefault.message": "Missing default value after '=' in parameter", - "functionParamDefault.hint": "Provide a value after '='. For example: fn foo(x: int = 0) {{ ... }}.", - - "functionClosingParen.message": "Missing ')' after parameters in function '{}'", - "functionClosingParen.hint": "Close the parameter list with ')'.", - - "functionBody.message": "Missing body for function '{}'", - "functionBody.hint": "Add a block body after the function signature. For example: fn {}() {{ ... }}.", - - "className.message": "Missing class name after 'class'", - "className.hint": "Provide a name for the class. For example: class MyClass {{ ... }}.", - - "classBody.message": "Missing '{{' to start class '{}' body", - "classBody.hint": "Add '{{' to open the class body.", - - "namespaceName.message": "Missing namespace name after 'namespace'", - "namespaceName.hint": "Provide a name for the namespace. For example: namespace MyNamespace {{ ... }}.", - - "namespaceBody.message": "Missing '{{' to start namespace '{}' body", - "namespaceBody.hint": "Add '{{' to open the namespace body.", - - "enumName.message": "Missing enum name after 'enum'", - "enumName.hint": "Provide a name for the enum. For example: enum Color {{ Red, Green, Blue }}.", - - "enumBody.message": "Missing '{{' after enum name '{}'", - "enumBody.hint": "Add '{{' to open the enum body.", - - "enumClosingBrace.message": "Missing '}}' at end of enum '{}'", - "enumClosingBrace.hint": "Close the enum body with '}}'.", - - "interfaceName.message": "Missing interface name after 'interface'", - "interfaceName.hint": "Provide a name for the interface. For example: interface IMyInterface {{ ... }}.", - - "interfaceBody.message": "Missing '{{' after interface name '{}'", - "interfaceBody.hint": "Add '{{' to open the interface body.", - - "interfaceClosingBrace.message": "Missing '}}' at end of interface '{}'", - "interfaceClosingBrace.hint": "Close the interface body with '}}'.", - - "interfaceMethodName.message": "Missing method name after 'fn' in interface '{}'", - "interfaceMethodName.hint": "Provide a name for the method. For example: fn myMethod().", - - "interfaceMethodParams.message": "Missing '(' after method name '{}' in interface", - "interfaceMethodParams.hint": "Add parentheses after the method name.", - - "interfaceMethodParamName.message": "Missing parameter name in interface method '{}'", - "interfaceMethodParamName.hint": "Provide a name for each parameter.", - - "interfaceMethodClosingParen.message": "Missing ')' after parameters in interface method '{}'", - "interfaceMethodClosingParen.hint": "Close the parameter list with ')'.", - - "interfaceReturnType.message": "Missing return type after '->' in interface method '{}'", - "interfaceReturnType.hint": "Provide a return type after '->'. For example: fn foo() -> int.", - - "decoratorName.message": "Missing decorator name after '@'", - "decoratorName.hint": "Provide a name after '@'. For example: @myDecorator.", - - "decoratorParamName.message": "Missing parameter name in decorator '{}'", - "decoratorParamName.hint": "Provide a name for each parameter.", - - "decoratorParamDefault.message": "Missing default value after '=' in decorator parameter", - "decoratorParamDefault.hint": "Provide a value after '='. For example: @myDecorator(x = 0).", - - "decoratorClosingParen.message": "Unterminated parameter list in decorator '{}'", - "decoratorClosingParen.hint": "Close the parameter list with ')'.", - - "decoratorBody.message": "Missing body for decorator '{}'", - "decoratorBody.hint": "Add a block body after the decorator signature.", - - "genericTypeArgument.message": "Expected generic type argument for '{}'.", - "genericTypeArgument.hint": "Write a type inside angle brackets, for example '{}'.", - - "genericClosingAngle.message": "Expected closing '>' for generic type '{}'.", - "genericClosingAngle.hint": "Close the generic type argument list with '>'." - }, - - "InvalidStatement": { - "message": "Invalid statement", - "hint": "This cannot be used here.", - - "missedBlock.message": "Expected a block body after '{}'", - "missedBlock.hint": "Add '{{ }}' after '{}'. For example: {} {{ ... }}.", - - "emptyCondition.message": "Empty condition in '{}'", - "emptyCondition.hint": "Provide a condition inside the parentheses. For example: {} (x > 0) {{ ... }}.", - - "expectedCondition.message": "Failed to parse condition in '{}'", - "expectedCondition.hint": "Make sure the condition is a valid expression. For example: {} (x > 0) {{ ... }}.", - - "expectedBody.message": "Missing body after '{}' statement", - "expectedBody.hint": "Add a block body. For example: {} {{ ... }}.", - - "expectedIterable.message": "Missing iterable expression in 'for' loop", - "expectedIterable.hint": "Provide something to iterate over. For example: for (item: myList) {{ ... }}.", - - "unexpectedInClass.message": "Unexpected token '{}' inside class body", - "unexpectedInClass.hint": "Class bodies can only contain fields, methods, and a constructor.", - - "unexpectedInSwitch.message": "Unexpected token '{}' inside switch — expected 'case' or 'default'", - "unexpectedInSwitch.hint": "Switch bodies can only contain 'case' and 'default' blocks.", - - "unexpectedInEnum.message": "Unexpected token '{}' inside enum — expected an identifier", - "unexpectedInEnum.hint": "Enum members must be identifiers. For example: enum Color {{ Red, Green, Blue }}.", - - "unexpectedInInterface.message": "Unexpected token '{}' inside interface body", - "unexpectedInInterface.hint": "Interface bodies can only contain field and method declarations.", - - "enumDelimiter.message": "Unexpected token '{}' between enum members", - "enumDelimiter.hint": "Separate enum members with commas or newlines.", - - "interfaceDelimiter.message": "Unexpected token '{}' between interface members", - "interfaceDelimiter.hint": "Separate interface members with newlines.", - - "noType.message": "Missing type — expected a type name here", - "noType.hint": "Provide a type name. For example: x: int.", - - "constructorFailed.message": "Failed to parse constructor in class '{}'", - "constructorFailed.hint": "Make sure the constructor matches the class name and has a valid body.", - - "enumNonLiteralValue.message": "Enum member '{}' must have a literal value", - "enumNonLiteralValue.hint": "Use a number or string literal. For example: enum Color {{ Red = 0, Green = 1 }}.", - - "intrinsicBody.message": "{} cannot have a function body while being an intrinsic function", - "intrinsicBody.hint": "Intrinsic calls are reserved for LLVM layer. Remove the curly braces." - - - }, - - "InvalidNumberFormat.message": "Invalid number format: '{}'", - "InvalidNumberFormat.hint": "Numbers can only be written with integer, floating point and exponent. Example: 1.23e-6", - - "UnterminatedComment.message": "Unterminated comment", - "UnterminatedComment.hint": "Close the comment with '*/'.", - - "UnterminatedString.message": "Unterminated string" - }, - "Analysis": { - "MultipleEntryPoints.message": "Multiple entry points detected", - "MultipleEntryPoints.hint": "Keep only one function marked with @entry. First one detected at {}:{}:{}.", - - "NoEntryPoints.message": "No entry points found", - "NoEntryPoints.hint": "Add @entry to a function or define fn main().", - - "RedefinedVariable.message": "Redefined Variable: '{}'", - "RedefinedVariable.hint": "You can't declare the same variable twice in terms of parent scope.", - - "DuplicateParameterName.message": "Duplicate parameter '{}' at '{}' function", - "DuplicateParameterName.hint": "Rename or remove the parameter.", - - "UnknownType.message": "Unknown type '{}' of '{}'", - "UnknownType.hint": "Make sure the type is defined or imported correctly.", - - "UndefinedVariable.message": "Undefined variable '{}'", - "UndefinedVariable.hint": "Make sure the variable is defined or imported correctly.", - - "ConstantReassignment.message": "Constant reassignment has been attempted: '{}'", - "ConstantReassignment.hint": "If a variable is constant, it cannot be reassigned. Fix the code.", - - "UndefinedDecorator.message": "Undefined decorator '{}'", - "UndefinedDecorator.hint": "Make sure the decorator is defined or imported correctly.", - - "UndefinedFunction.message": "Undefined function '{}'", - "UndefinedFunction.hint": "Make sure the function is defined or imported correctly.", - - "FunctionMismatch.message": "Function mismatch: '{}'", - "FunctionMismatch.hint" : "Make sure you typed in the arguments correctly.", - - "ReturnOutsideFunction.message": "Detected return outside of function", - "ReturnOutsideFunction.hint": "Yes, you can't use return outside a function. No, it will not return your ex", - - "BreakOutsideLoop.message": "Detected break outside of loop", - "BreakOutsideLoop.hint": "I am not sure if you're trying to break the 4th wall, but... you can't.\nThis statement only works inside a loop, so move it there or remove it.", - - "ContinueOutsideLoop.message": "Detected continue outside of loop", - "ContinueOutsideLoop.hint": "Continue what? Your code =.=? This statement only works inside a loop, so move it there or remove it.", - - "DuplicateEnumMember.message": "Duplicate enum element '{}' found in '{}'.", - "DuplicateEnumMember.hint": "Remove or rename it." - }, - "Preprocessor": { - "ImportNotFound.message": "Import not found: '{}'", - "ImportNotFound.hint": "Check the path or create a module file at that location.", - - "ImportNotFound.nativePackageNotInstalled.message": "Native package '{}' is not installed", - "ImportNotFound.nativePackageNotInstalled.hint": "Add it to project dependencies (.nlp) or install the package.", - - "ImportAliasConflict.message": "Import alias conflict: '{}'", - "ImportAliasConflict.hint": "Use a different alias name.", - - "InvalidDirective.message": "Invalid directive: '{}'", - "InvalidDirective.hint": "Check the Neoluma documentation to see what directives are available.", - - "CircularImport.message": "Circular import detected", - "CircularImport.hint": "Remove the cycle or refactor shared code into a separate module." - } -} diff --git a/src/Localization/ErrorManager/ru_RU.jsonc b/src/Localization/ErrorManager/ru_RU.jsonc deleted file mode 100644 index 4823d0e..0000000 --- a/src/Localization/ErrorManager/ru_RU.jsonc +++ /dev/null @@ -1,258 +0,0 @@ -{ - "hint": "💡 Подсказка: {}", - "errorsFound": "Найдено {} ошибок!", - // safetyGuard запускается только из Parser. - "safetyGuard": "❌😵‍💫 Сработала защита восстановления! Останавливаем парсер для избежания вечного цикла. Если каким-то образом вы видите это сообщение, доложите об этом разработчикам. \n\n Информация: \n Функция: {},\n Файл {},\n Случилось в строке {}:{}\n\nСпасибо!\n", - "Syntax": { - "UnexpectedToken.message": "Неизвестный токен: '{}'", - "UnexpectedToken.hint": "Удалите его, или убедитесь что ввели его верно", - - "MissingToken": { - "message": "Missing '{}'", - "hint": "Add '{}' here.", - - "noVariableAfter.message": "Missing expression after '{}'", - "noVariableAfter.hint": "Provide a value or variable after '{}'.", - - "missingOperandUnary.message": "Missing operand after unary operator '{}'", - "missingOperandUnary.hint": "Add an operand after '{}'. For example: !x, -x.", - - "missingExpressionLambda.message": "Missing expression after '{}' in lambda", - "missingExpressionLambda.hint": "Provide an expression inside the parentheses.", - - "dictColonAfterKey.message": "Missing ':' after dictionary key '{}'", - "dictColonAfterKey.hint": "Add a colon after the key. For example: {{ key: value }}.", - - "closingParen.message": "Missing closing ')' after '{}'", - "closingParen.hint": "Close the parenthesis after '{}'.", - - "openingParen.message": "Missing '(' after '{}'", - "openingParen.hint": "Add '(' after '{}'.", - - "closingBrace.message": "Missing closing '}}' after '{}'", - "closingBrace.hint": "Close the block with '}}'.", - - "openingBrace.message": "Missing '{{' to start '{}' body", - "openingBrace.hint": "Add '{{' to open the block.", - - "closingBracket.message": "Missing ']' after size in type definition", - "closingBracket.hint": "Close the bracket after the size value.", - - "colonAfterVar.message": "Missing ':' after variable name '{}'", - "colonAfterVar.hint": "Add ':' after the variable name to declare its type. For example: x: int.", - - "colonInFor.message": "Missing ':' after variable '{}' in for loop", - "colonInFor.hint": "Write the for loop like this: for (item: myList) {{ ... }}.", - - "colonInCase.message": "Missing ':' after 'case' condition", - "colonInCase.hint": "Add ':' after the case condition. For example: case 1: ...", - - "colonInDefault.message": "Missing ':' after 'default'", - "colonInDefault.hint": "Add ':' after 'default'. For example: default: ...", - - "colonInInterface.message": "Missing ':' after field name '{}' in interface", - "colonInInterface.hint": "Add ':' and the field type. For example: name: str.", - - "catchAfterTry.message": "Missing 'catch' block after 'try'", - "catchAfterTry.hint": "Add a catch block. For example: catch (e) {{ ... }}.", - - "exceptionVar.message": "Missing exception variable name after 'catch'", - "exceptionVar.hint": "Provide a variable name in catch. For example: catch (e) {{ ... }}.", - - "importTarget.message": "Missing import path after '#import'", - "importTarget.hint": "Provide a string path after #import. For example: #import \"myModule\".", - - "importAlias.message": "Missing identifier after 'as' in import", - "importAlias.hint": "Provide an alias name. For example: #import \"myModule\" as mod.", - - "macroIdentifier.message": "Missing identifier after '#macro'", - "macroIdentifier.hint": "Provide a name for the macro. For example: #macro MY_MACRO.", - - "functionName.message": "Missing function name after 'fn'", - "functionName.hint": "Provide a name for the function. For example: fn myFunction() {{ ... }}.", - - "functionParams.message": "Missing '(' after function name '{}'", - "functionParams.hint": "Add parentheses after the function name. For example: fn {}() {{ ... }}.", - - "functionParamName.message": "Missing parameter name in function '{}'", - "functionParamName.hint": "Provide a name for each parameter. For example: fn foo(x: int) {{ ... }}.", - - "functionParamDefault.message": "Missing default value after '=' in parameter", - "functionParamDefault.hint": "Provide a value after '='. For example: fn foo(x: int = 0) {{ ... }}.", - - "functionClosingParen.message": "Missing ')' after parameters in function '{}'", - "functionClosingParen.hint": "Close the parameter list with ')'.", - - "functionBody.message": "Missing body for function '{}'", - "functionBody.hint": "Add a block body after the function signature. For example: fn {}() {{ ... }}.", - - "className.message": "Missing class name after 'class'", - "className.hint": "Provide a name for the class. For example: class MyClass {{ ... }}.", - - "classBody.message": "Missing '{{' to start class '{}' body", - "classBody.hint": "Add '{{' to open the class body.", - - "enumName.message": "Missing enum name after 'enum'", - "enumName.hint": "Provide a name for the enum. For example: enum Color {{ Red, Green, Blue }}.", - - "enumBody.message": "Missing '{{' after enum name '{}'", - "enumBody.hint": "Add '{{' to open the enum body.", - - "enumClosingBrace.message": "Missing '}}' at end of enum '{}'", - "enumClosingBrace.hint": "Close the enum body with '}}'.", - - "interfaceName.message": "Missing interface name after 'interface'", - "interfaceName.hint": "Provide a name for the interface. For example: interface IMyInterface {{ ... }}.", - - "interfaceBody.message": "Missing '{{' after interface name '{}'", - "interfaceBody.hint": "Add '{{' to open the interface body.", - - "interfaceClosingBrace.message": "Missing '}}' at end of interface '{}'", - "interfaceClosingBrace.hint": "Close the interface body with '}}'.", - - "interfaceMethodName.message": "Missing method name after 'fn' in interface '{}'", - "interfaceMethodName.hint": "Provide a name for the method. For example: fn myMethod().", - - "interfaceMethodParams.message": "Missing '(' after method name '{}' in interface", - "interfaceMethodParams.hint": "Add parentheses after the method name.", - - "interfaceMethodParamName.message": "Missing parameter name in interface method '{}'", - "interfaceMethodParamName.hint": "Provide a name for each parameter.", - - "interfaceMethodClosingParen.message": "Missing ')' after parameters in interface method '{}'", - "interfaceMethodClosingParen.hint": "Close the parameter list with ')'.", - - "interfaceReturnType.message": "Missing return type after '->' in interface method '{}'", - "interfaceReturnType.hint": "Provide a return type after '->'. For example: fn foo() -> int.", - - "decoratorName.message": "Missing decorator name after '@'", - "decoratorName.hint": "Provide a name after '@'. For example: @myDecorator.", - - "decoratorParamName.message": "Missing parameter name in decorator '{}'", - "decoratorParamName.hint": "Provide a name for each parameter.", - - "decoratorParamDefault.message": "Missing default value after '=' in decorator parameter", - "decoratorParamDefault.hint": "Provide a value after '='. For example: @myDecorator(x = 0).", - - "decoratorClosingParen.message": "Unterminated parameter list in decorator '{}'", - "decoratorClosingParen.hint": "Close the parameter list with ')'.", - - "decoratorBody.message": "Missing body for decorator '{}'", - "decoratorBody.hint": "Add a block body after the decorator signature." - }, - - "InvalidStatement": { - "message": "Invalid statement", - "hint": "This cannot be used here.", - - "missedBlock.message": "Expected a block body after '{}'", - "missedBlock.hint": "Add '{{ }}' after '{}'. For example: {} {{ ... }}.", - - "emptyCondition.message": "Empty condition in '{}'", - "emptyCondition.hint": "Provide a condition inside the parentheses. For example: {} (x > 0) {{ ... }}.", - - "expectedCondition.message": "Failed to parse condition in '{}'", - "expectedCondition.hint": "Make sure the condition is a valid expression. For example: {} (x > 0) {{ ... }}.", - - "expectedBody.message": "Missing body after '{}' statement", - "expectedBody.hint": "Add a block body. For example: {} {{ ... }}.", - - "expectedIterable.message": "Missing iterable expression in 'for' loop", - "expectedIterable.hint": "Provide something to iterate over. For example: for (item: myList) {{ ... }}.", - - "unexpectedInClass.message": "Unexpected token '{}' inside class body", - "unexpectedInClass.hint": "Class bodies can only contain fields, methods, and a constructor.", - - "unexpectedInSwitch.message": "Unexpected token '{}' inside switch — expected 'case' or 'default'", - "unexpectedInSwitch.hint": "Switch bodies can only contain 'case' and 'default' blocks.", - - "unexpectedInEnum.message": "Unexpected token '{}' inside enum — expected an identifier", - "unexpectedInEnum.hint": "Enum members must be identifiers. For example: enum Color {{ Red, Green, Blue }}.", - - "unexpectedInInterface.message": "Unexpected token '{}' inside interface body", - "unexpectedInInterface.hint": "Interface bodies can only contain field and method declarations.", - - "enumDelimiter.message": "Unexpected token '{}' between enum members", - "enumDelimiter.hint": "Separate enum members with commas or newlines.", - - "interfaceDelimiter.message": "Unexpected token '{}' between interface members", - "interfaceDelimiter.hint": "Separate interface members with newlines.", - - "noType.message": "Missing type — expected a type name here", - "noType.hint": "Provide a type name. For example: x: int.", - - "constructorFailed.message": "Failed to parse constructor in class '{}'", - "constructorFailed.hint": "Make sure the constructor matches the class name and has a valid body.", - - "enumNonLiteralValue.message": "Enum member '{}' must have a literal value", - "enumNonLiteralValue.hint": "Use a number or string literal. For example: enum Color {{ Red = 0, Green = 1 }}." - }, - - "InvalidNumberFormat.message": "Invalid number format: '{}'", - "InvalidNumberFormat.hint": "Numbers can only be written with integer, floating point and exponent. Example: 1.23e-6", - - "UnterminatedComment.message": "Unterminated comment", - "UnterminatedComment.hint": "Close the comment with '*/'.", - - "UnterminatedString.message": "Unterminated string" - }, - "Analysis": { - "MultipleEntryPoints.message": "Multiple entry points detected", - "MultipleEntryPoints.hint": "Keep only one function marked with @entry. First one detected at {}:{}:{}.", - - "NoEntryPoints.message": "No entry points found", - "NoEntryPoints.hint": "Add @entry to a function or define fn main().", - - "RedefinedVariable.message": "Redefined Variable: '{}'", - "RedefinedVariable.hint": "You can't declare the same variable twice in terms of parent scope.", - - "DuplicateParameterName.message": "Duplicate parameter '{}' at '{}' function", - "DuplicateParameterName.hint": "Rename or remove the parameter.", - - "UnknownType.message": "Unknown type '{}' of '{}'", - "UnknownType.hint": "Make sure the type is defined or imported correctly.", - - "UndefinedVariable.message": "Неизвестная переменная '{}'", - "UndefinedVariable.hint": "Убедитесь, что переменная объявлена или импортирована корректно.", - - "ConstantReassignment.message": "Constant reassignment has been attempted: '{}'", - "ConstantReassignment.hint": "If a variable is constant, it cannot be reassigned. Fix the code.", - - "UndefinedDecorator.message": "Undefined decorator '{}'", - "UndefinedDecorator.hint": "Make sure the decorator is defined or imported correctly.", - - "UndefinedFunction.message": "Неизвестная функция '{}'", - "UndefinedFunction.hint": "Убедитесь, что функция объявлена или импортирована корректно.", - - "FunctionMismatch.message": "Function mismatch: '{}'", - "FunctionMismatch.hint" : "Make sure you typed in the arguments correctly.", - - "ReturnOutsideFunction.message": "Detected return outside of function", - "ReturnOutsideFunction.hint": "Yes, you can't use return outside a function. No, it will not return your ex", - - "BreakOutsideLoop.message": "Detected break outside of loop", - "BreakOutsideLoop.hint": "I am not sure if you're trying to break the 4th wall, but... you can't.\nThis statement only works inside a loop, so move it there or remove it.", - - "ContinueOutsideLoop.message": "Detected continue outside of loop", - "ContinueOutsideLoop.hint": "Continue what? Your code =.=? This statement only works inside a loop, so move it there or remove it.", - - "DuplicateEnumMember.message": "Duplicate enum element '{}' found in '{}'.", - "DuplicateEnumMember.hint": "Remove or rename it." - }, - "Preprocessor": { - "ImportNotFound.message": "Import not found: '{}'", - "ImportNotFound.hint": "Check the path or create a module file at that location.", - - "ImportNotFound.nativePackageNotInstalled.message": "Native package '{}' is not installed", - "ImportNotFound.nativePackageNotInstalled.hint": "Add it to project dependencies (.nlp) or install the package.", - - "ImportAliasConflict.message": "Import alias conflict: '{}'", - "ImportAliasConflict.hint": "Use a different alias name.", - - "InvalidDirective.message": "Invalid directive: '{}'", - "InvalidDirective.hint": "Check the Neoluma documentation to see what directives are available.", - - "CircularImport.message": "Circular import detected", - "CircularImport.hint": "Remove the cycle or refactor shared code into a separate module." - } -} \ No newline at end of file diff --git a/src/Localization/Libraries/ar_SA.jsonc b/src/Localization/Libraries/ar_SA.jsonc deleted file mode 100644 index c48ec1c..0000000 --- a/src/Localization/Libraries/ar_SA.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "toml": { - "tableOutOfBoundsError": "المفتاح '{}' ليس موجود" - } -} \ No newline at end of file diff --git a/src/Localization/Libraries/de_DE.jsonc b/src/Localization/Libraries/de_DE.jsonc deleted file mode 100644 index c47d5a2..0000000 --- a/src/Localization/Libraries/de_DE.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "toml": { - "tableOutOfBoundsError": "Schlüssen '{}' nicht gefunden" - } -} \ No newline at end of file diff --git a/src/Localization/Libraries/en_US.jsonc b/src/Localization/Libraries/en_US.jsonc deleted file mode 100644 index 558475e..0000000 --- a/src/Localization/Libraries/en_US.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "toml": { - "tableOutOfBoundsError": "Key '{}' not found" - } -} \ No newline at end of file diff --git a/src/Localization/Libraries/ru_RU.jsonc b/src/Localization/Libraries/ru_RU.jsonc deleted file mode 100644 index 85fb103..0000000 --- a/src/Localization/Libraries/ru_RU.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "toml": { - "tableOutOfBoundsError": "Ключ '{}' не найден" - } -} \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp deleted file mode 100644 index 0a8492f..0000000 --- a/src/main.cpp +++ /dev/null @@ -1,78 +0,0 @@ -#include -#include -#include -#include - -#include "CLI/CLI.hpp" -#include "Libraries/Color/Color.hpp" -#include "Core/Frontend/Lexer/Lexer.hpp" -#include "HelperFunctions.hpp" -#include "Libraries/Localization/Localization.hpp" -#include "Libraries/Paths/Paths.hpp" - -#ifdef _WIN32 -#include -#endif - -std::filesystem::path findProjectFile(const std::filesystem::path& folder) { - for (const auto& entry : std::filesystem::directory_iterator(folder)) { - if (entry.is_regular_file() && entry.path().extension() == ".nlp") { - return entry.path(); - } - } - return {}; -} - -int main(int argc, char** argv) { - #ifdef _WIN32 - SetConsoleOutputCP(CP_UTF8); - #endif - Localization::init(); - CLIArgs args = parseArgs(argc, argv); - - if (args.command == "new") { - if (!args.options.empty()) { - ProjectConfig config; - config.name = args.options.count("name") ? args.options.at("name") : config.name; - if (args.options.count("author")) - config.author = split(args.options.at("author"), ','); - config.version = args.options.count("version") ? args.options.at("version") : config.version; - if (args.options.count("license")) - config.license = parseLicense(args.options.at("license")); - createProject(config); - } // If no arguments provided, aka "neoluma new", it will run an integrated assistant to set up a project. - else createProject(); - - } else if (args.command == "build") { - // build - } else if (args.command == "run") { - // run - } else if (args.command == "check") { - std::filesystem::path projectFilePath; - - if (args.options.count("project")) { - std::filesystem::path input = args.options.at("project"); - - if (std::filesystem::exists(input)) { - if (std::filesystem::is_directory(input)) projectFilePath = findProjectFile(input); - else projectFilePath = input; - } - } - else if (args.positional.size() > 0) { - std::println("Test"); - } - else { - projectFilePath = findProjectFile(std::filesystem::current_path()); - - if (projectFilePath.empty()) { - std::println("{}[Neoluma/Check] Project file was not found!{}", Color::TextHex("#ff5050"), Color::Reset); - return 2; - } - } - - check(projectFilePath.string(), args.options.count("json")); - } else if (args.command == "version") std::println("{}Neoluma Alpha Release v0.1{}", Color::TextHex("#ff28e6"), Color::Reset); - else printHelp(); - - return 0; -} diff --git a/tests/.gitignore b/tests/.gitignore deleted file mode 100644 index 3018b3a..0000000 --- a/tests/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.tmp/ diff --git a/tests/README.md b/tests/README.md deleted file mode 100644 index 4f40bb4..0000000 --- a/tests/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Tests (regression suite) - -Run the regression suite with: - -```powershell -powershell -ExecutionPolicy Bypass -File tests/runner/run-tests.ps1 -``` - -Or through CMake after building: - -```powershell -cmake --build .build/cmake-debug --target frontend_tests -``` - -The runner creates a temporary project per case under `tests/.tmp/`, copies the case files into `src/`, runs `neoluma check --json`, and validates stable fields from `expect.json`. diff --git a/tests/cases/orchestrator/invalid/empty_project/expect.json b/tests/cases/orchestrator/invalid/empty_project/expect.json deleted file mode 100644 index e28e03e..0000000 --- a/tests/cases/orchestrator/invalid/empty_project/expect.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "status": "error", - "stage": "semantic", - "error_code": "NAnE30", - "message_key": "ErrorManager.Analysis.NoEntryPoints.message" -} diff --git a/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/bar.nm b/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/bar.nm deleted file mode 100644 index a16f090..0000000 --- a/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/bar.nm +++ /dev/null @@ -1 +0,0 @@ -fn bar() {} diff --git a/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/expect.json b/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/expect.json deleted file mode 100644 index ea23c17..0000000 --- a/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/expect.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "status": "error", - "stage": "orchestrator", - "error_code": "NPrE3", - "line": 2, - "column": 1, - "message_key": "ErrorManager.Preprocessor.ImportAliasConflict.message" -} diff --git a/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/foo.nm b/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/foo.nm deleted file mode 100644 index 8f3b7ef..0000000 --- a/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/foo.nm +++ /dev/null @@ -1 +0,0 @@ -fn foo() {} diff --git a/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/main.nm b/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/main.nm deleted file mode 100644 index 5678b4e..0000000 --- a/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/main.nm +++ /dev/null @@ -1,5 +0,0 @@ -#import "foo" as util -#import "bar" as util - -@entry -fn main() {} diff --git a/tests/cases/orchestrator/invalid/no_entrypoint/expect.json b/tests/cases/orchestrator/invalid/no_entrypoint/expect.json deleted file mode 100644 index 1acd2eb..0000000 --- a/tests/cases/orchestrator/invalid/no_entrypoint/expect.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "status": "error", - "stage": "semantic", - "error_code": "NAnE30", - "line": 1, - "column": 1, - "message_key": "ErrorManager.Analysis.NoEntryPoints.message" -} diff --git a/tests/cases/orchestrator/invalid/no_entrypoint/main.nm b/tests/cases/orchestrator/invalid/no_entrypoint/main.nm deleted file mode 100644 index 1519936..0000000 --- a/tests/cases/orchestrator/invalid/no_entrypoint/main.nm +++ /dev/null @@ -1 +0,0 @@ -fn helper() {} diff --git a/tests/cases/parser/invalid/malformed_array/expect.json b/tests/cases/parser/invalid/malformed_array/expect.json deleted file mode 100644 index 75593d3..0000000 --- a/tests/cases/parser/invalid/malformed_array/expect.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "status": "error", - "stage": "parser", - "error_code": "NSyE2", - "line": 4, - "column": 1, - "message_key": "ErrorManager.Syntax.MissingToken.closingBracket.message" -} diff --git a/tests/cases/parser/invalid/malformed_array/main.nm b/tests/cases/parser/invalid/malformed_array/main.nm deleted file mode 100644 index d7e0a66..0000000 --- a/tests/cases/parser/invalid/malformed_array/main.nm +++ /dev/null @@ -1,4 +0,0 @@ -@entry -fn main() { - values: array = [1, 2 -} diff --git a/tests/cases/parser/invalid/malformed_dict/expect.json b/tests/cases/parser/invalid/malformed_dict/expect.json deleted file mode 100644 index 8e6ceb2..0000000 --- a/tests/cases/parser/invalid/malformed_dict/expect.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "status": "error", - "stage": "parser", - "error_code": "NSyE2", - "line": 3, - "column": 32, - "message_key": "ErrorManager.Syntax.MissingToken.dictColonAfterKey.message" -} diff --git a/tests/cases/parser/invalid/malformed_dict/main.nm b/tests/cases/parser/invalid/malformed_dict/main.nm deleted file mode 100644 index 59880df..0000000 --- a/tests/cases/parser/invalid/malformed_dict/main.nm +++ /dev/null @@ -1,4 +0,0 @@ -@entry -fn main() { - values: dict = {"a": 1, "b" -} diff --git a/tests/cases/parser/invalid/malformed_set/expect.json b/tests/cases/parser/invalid/malformed_set/expect.json deleted file mode 100644 index 612edc9..0000000 --- a/tests/cases/parser/invalid/malformed_set/expect.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "status": "error", - "stage": "parser", - "error_code": "NSyE2", - "line": 3, - "column": 24, - "message_key": "ErrorManager.Syntax.MissingToken.closingBrace.message" -} diff --git a/tests/cases/parser/invalid/malformed_set/main.nm b/tests/cases/parser/invalid/malformed_set/main.nm deleted file mode 100644 index 4f0fe7d..0000000 --- a/tests/cases/parser/invalid/malformed_set/main.nm +++ /dev/null @@ -1,4 +0,0 @@ -@entry -fn main() { - values: set = {1, 2 -} diff --git a/tests/cases/parser/valid/decorator_entry/expect.json b/tests/cases/parser/valid/decorator_entry/expect.json deleted file mode 100644 index bc4e010..0000000 --- a/tests/cases/parser/valid/decorator_entry/expect.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "status": "ok" -} diff --git a/tests/cases/parser/valid/decorator_entry/main.nm b/tests/cases/parser/valid/decorator_entry/main.nm deleted file mode 100644 index 0455ba8..0000000 --- a/tests/cases/parser/valid/decorator_entry/main.nm +++ /dev/null @@ -1,2 +0,0 @@ -@entry -fn main() {} diff --git a/tests/cases/semantic/invalid/break_outside_loop/expect.json b/tests/cases/semantic/invalid/break_outside_loop/expect.json deleted file mode 100644 index 9ac7564..0000000 --- a/tests/cases/semantic/invalid/break_outside_loop/expect.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "status": "error", - "stage": "semantic", - "error_code": "NAnE31", - "line": 3, - "column": 5, - "message_key": "ErrorManager.Analysis.BreakOutsideLoop.message" -} diff --git a/tests/cases/semantic/invalid/break_outside_loop/main.nm b/tests/cases/semantic/invalid/break_outside_loop/main.nm deleted file mode 100644 index f8c6c01..0000000 --- a/tests/cases/semantic/invalid/break_outside_loop/main.nm +++ /dev/null @@ -1,4 +0,0 @@ -@entry -fn main() { - break -} diff --git a/tests/cases/semantic/invalid/const_reassignment/expect.json b/tests/cases/semantic/invalid/const_reassignment/expect.json deleted file mode 100644 index 1ed43eb..0000000 --- a/tests/cases/semantic/invalid/const_reassignment/expect.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "status": "error", - "stage": "semantic", - "error_code": "NAnE4", - "line": 4, - "column": 5, - "message_key": "ErrorManager.Analysis.ConstantReassignment.message" -} diff --git a/tests/cases/semantic/invalid/const_reassignment/main.nm b/tests/cases/semantic/invalid/const_reassignment/main.nm deleted file mode 100644 index b87cec6..0000000 --- a/tests/cases/semantic/invalid/const_reassignment/main.nm +++ /dev/null @@ -1,5 +0,0 @@ -@entry -fn main() { - const value: int = 1 - value = 2 -} diff --git a/tests/cases/semantic/invalid/continue_outside_loop/expect.json b/tests/cases/semantic/invalid/continue_outside_loop/expect.json deleted file mode 100644 index bab73c8..0000000 --- a/tests/cases/semantic/invalid/continue_outside_loop/expect.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "status": "error", - "stage": "semantic", - "error_code": "NAnE32", - "line": 3, - "column": 5, - "message_key": "ErrorManager.Analysis.ContinueOutsideLoop.message" -} diff --git a/tests/cases/semantic/invalid/continue_outside_loop/main.nm b/tests/cases/semantic/invalid/continue_outside_loop/main.nm deleted file mode 100644 index bbe59a4..0000000 --- a/tests/cases/semantic/invalid/continue_outside_loop/main.nm +++ /dev/null @@ -1,4 +0,0 @@ -@entry -fn main() { - continue -} diff --git a/tests/cases/semantic/invalid/duplicate_parameter/expect.json b/tests/cases/semantic/invalid/duplicate_parameter/expect.json deleted file mode 100644 index f1564d5..0000000 --- a/tests/cases/semantic/invalid/duplicate_parameter/expect.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "status": "error", - "stage": "semantic", - "error_code": "NAnE11", - "line": 2, - "column": 21, - "message_key": "ErrorManager.Analysis.DuplicateParameterName.message" -} diff --git a/tests/cases/semantic/invalid/duplicate_parameter/main.nm b/tests/cases/semantic/invalid/duplicate_parameter/main.nm deleted file mode 100644 index a7e2585..0000000 --- a/tests/cases/semantic/invalid/duplicate_parameter/main.nm +++ /dev/null @@ -1,2 +0,0 @@ -@entry -fn main(value: int, value: int) {} diff --git a/tests/cases/semantic/invalid/return_outside_function/expect.json b/tests/cases/semantic/invalid/return_outside_function/expect.json deleted file mode 100644 index d3a5b16..0000000 --- a/tests/cases/semantic/invalid/return_outside_function/expect.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "status": "error", - "stage": "semantic", - "error_code": "NAnE14", - "line": 1, - "column": 1, - "message_key": "ErrorManager.Analysis.ReturnOutsideFunction.message" -} diff --git a/tests/cases/semantic/invalid/return_outside_function/main.nm b/tests/cases/semantic/invalid/return_outside_function/main.nm deleted file mode 100644 index 953e0e6..0000000 --- a/tests/cases/semantic/invalid/return_outside_function/main.nm +++ /dev/null @@ -1,4 +0,0 @@ -return 1 - -@entry -fn main() {} diff --git a/tests/cases/semantic/invalid/undefined_function/expect.json b/tests/cases/semantic/invalid/undefined_function/expect.json deleted file mode 100644 index f33d7a9..0000000 --- a/tests/cases/semantic/invalid/undefined_function/expect.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "status": "error", - "stage": "semantic", - "error_code": "NAnE8", - "line": 3, - "column": 5, - "message_key": "ErrorManager.Analysis.UndefinedFunction.message" -} diff --git a/tests/cases/semantic/invalid/undefined_function/main.nm b/tests/cases/semantic/invalid/undefined_function/main.nm deleted file mode 100644 index 93d7884..0000000 --- a/tests/cases/semantic/invalid/undefined_function/main.nm +++ /dev/null @@ -1,4 +0,0 @@ -@entry -fn main() { - missing() -} diff --git a/tests/cases/semantic/invalid/undefined_variable/expect.json b/tests/cases/semantic/invalid/undefined_variable/expect.json deleted file mode 100644 index 2e61f00..0000000 --- a/tests/cases/semantic/invalid/undefined_variable/expect.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "status": "error", - "stage": "semantic", - "error_code": "NAnE1", - "line": 3, - "column": 5, - "message_key": "ErrorManager.Analysis.UndefinedVariable.message" -} diff --git a/tests/cases/semantic/invalid/undefined_variable/main.nm b/tests/cases/semantic/invalid/undefined_variable/main.nm deleted file mode 100644 index 9508363..0000000 --- a/tests/cases/semantic/invalid/undefined_variable/main.nm +++ /dev/null @@ -1,4 +0,0 @@ -@entry -fn main() { - missing = 1 -} diff --git a/tests/runner/testrunner.py b/tests/runner/testrunner.py deleted file mode 100644 index 14cc73b..0000000 --- a/tests/runner/testrunner.py +++ /dev/null @@ -1,188 +0,0 @@ -import json - -exePath = ".build/.runtime/Debug/bin/neoluma.exe" -casesRoot = "../cases" - - -# """param( -# [string]$ExePath = ".build/.runtime/Debug/bin/neoluma.exe", -# [string]$CasesRoot = "tests/cases", -# [string[]]$Suites = @("parser", "semantic", "orchestrator") -# ) -# -# $ErrorActionPreference = "Stop" -# $PSNativeCommandUseErrorActionPreference = $false -# -# function Strip-Ansi { -# param([string]$Text) -# return [regex]::Replace($Text, "\x1B\[[0-9;?]*[ -/]*[@-~]", "") -# } -# -# function Get-ActualStage { -# param( -# [string]$Suite, -# [string]$ErrorCode -# ) -# -# if ($Suite -eq "orchestrator") { -# return "orchestrator" -# } -# -# if ($ErrorCode -like "NSyE*") { return "parser" } -# if ($ErrorCode -like "NPrE*") { return "orchestrator" } -# if ($ErrorCode -like "NAnE*") { return "semantic" } -# return "" -# } -# -# function New-ProjectFile { -# param([string]$ProjectPath) -# -# @' -# [project] -# name = "NeolumaFrontendTest" -# version = "1.0" -# authors = ["User"] -# license = "custom" -# output = "exe" -# sourceFolder = "src/" -# buildFolder = ".build/" -# '@ | Set-Content -LiteralPath $ProjectPath -# } -# -# function Invoke-Case { -# param( -# [string]$Suite, -# [string]$Kind, -# [string]$CasePath -# ) -# -# $expectPath = Join-Path $CasePath "expect.json" -# $expect = Get-Content -LiteralPath $expectPath -Raw | ConvertFrom-Json -# -# $tmpRoot = Join-Path "tests/.tmp" ("{0}-{1}-{2}" -f $Suite, $Kind, [IO.Path]::GetFileName($CasePath)) -# if (Test-Path $tmpRoot) { -# Remove-Item -LiteralPath $tmpRoot -Recurse -Force -# } -# -# $srcRoot = Join-Path $tmpRoot "src" -# New-Item -ItemType Directory -Path $srcRoot -Force | Out-Null -# -# Get-ChildItem -LiteralPath $CasePath -Recurse -File | Where-Object { $_.Name -ne "expect.json" } | ForEach-Object { -# $relative = $_.FullName.Substring($CasePath.Length).TrimStart('\', '/') -# $dest = Join-Path $srcRoot $relative -# $destDir = Split-Path -Parent $dest -# if ($destDir) { -# New-Item -ItemType Directory -Path $destDir -Force | Out-Null -# } -# Copy-Item -LiteralPath $_.FullName -Destination $dest -Force -# } -# -# $projectPath = Join-Path $tmpRoot "case.nlp" -# New-ProjectFile -ProjectPath $projectPath -# -# $command = ('"{0}" check --project "{1}" --json 2>&1' -f $ExePath, $projectPath) -# $rawOutput = & cmd /c $command | Out-String -# $output = Strip-Ansi $rawOutput -# $jsonStart = $output.IndexOf('{') -# $jsonEnd = $output.LastIndexOf('}') -# if ($jsonStart -lt 0 -or $jsonEnd -lt $jsonStart) { -# throw "No JSON payload found in output for case '$CasePath'. Raw output:`n$output" -# } -# $jsonText = $output.Substring($jsonStart, $jsonEnd - $jsonStart + 1) -# $resultJson = $jsonText | ConvertFrom-Json -# $status = $resultJson.status -# -# $errorCode = "" -# $actualStage = "" -# $line = $null -# $column = $null -# $messageKey = "" -# -# if ($resultJson.errors.Count -gt 0) { -# $firstError = $resultJson.errors[0] -# $errorCode = $firstError.error_code -# $actualStage = if ($firstError.stage) { $firstError.stage } else { Get-ActualStage -Suite $Suite -ErrorCode $errorCode } -# if ($null -ne $firstError.line) { $line = [int]$firstError.line } -# if ($null -ne $firstError.column) { $column = [int]$firstError.column } -# $messageKey = $firstError.message_key -# $output = $firstError.message -# } else { -# $output = "" -# } -# -# $failures = @() -# if ($expect.status -ne $status) { -# $failures += "status expected '$($expect.status)' got '$status'" -# } -# -# if ($expect.stage -and $expect.stage -ne $actualStage) { -# $failures += "stage expected '$($expect.stage)' got '$actualStage'" -# } -# -# if ($expect.error_code -and $expect.error_code -ne $errorCode) { -# $failures += "error_code expected '$($expect.error_code)' got '$errorCode'" -# } -# -# if ($null -ne $expect.line -and $expect.line -ne $line) { -# $failures += "line expected '$($expect.line)' got '$line'" -# } -# -# if ($null -ne $expect.column -and $expect.column -ne $column) { -# $failures += "column expected '$($expect.column)' got '$column'" -# } -# -# if ($expect.message_key -and $expect.message_key -ne $messageKey) { -# $failures += "message_key expected '$($expect.message_key)' got '$messageKey'" -# } -# -# if ($expect.message_contains -and -not $output.Contains($expect.message_contains)) { -# $failures += "message missing '$($expect.message_contains)'" -# } -# -# [pscustomobject]@{ -# Suite = $Suite -# Kind = $Kind -# Case = [IO.Path]::GetFileName($CasePath) -# Passed = ($failures.Count -eq 0) -# Failures = $failures -# Output = $output.Trim() -# } -# } -# -# if (-not (Test-Path -LiteralPath $ExePath)) { -# throw "Executable not found: $ExePath" -# } -# -# New-Item -ItemType Directory -Path "tests/.tmp" -Force | Out-Null -# -# $results = @() -# foreach ($suite in $Suites) { -# foreach ($kind in @("valid", "invalid")) { -# $root = Join-Path $CasesRoot "$suite/$kind" -# if (-not (Test-Path -LiteralPath $root)) { continue } -# -# Get-ChildItem -LiteralPath $root -Directory | Sort-Object Name | ForEach-Object { -# $results += Invoke-Case -Suite $suite -Kind $kind -CasePath $_.FullName -# } -# } -# } -# -# $failed = $results | Where-Object { -not $_.Passed } -# foreach ($result in $results) { -# if ($result.Passed) { -# Write-Host "[PASS] $($result.Suite)/$($result.Kind)/$($result.Case)" -# } else { -# Write-Host "[FAIL] $($result.Suite)/$($result.Kind)/$($result.Case)" -# foreach ($failure in $result.Failures) { -# Write-Host " - $failure" -# } -# } -# } -# -# Write-Host "" -# Write-Host ("Passed {0}/{1} cases." -f ($results.Count - $failed.Count), $results.Count) -# -# if ($failed.Count -gt 0) { -# exit 1 -# } -""" \ No newline at end of file From 953090d76397737aec2a6d848fc6d337b2aff88c Mon Sep 17 00:00:00 2001 From: TsukimotoX Date: Sun, 21 Jun 2026 17:53:13 +0300 Subject: [PATCH 2/3] Initial commit --- .idea/neoluma.iml | 8 -- CMakeLists.txt => deprecated/CMakeLists.txt | 0 .../CMakePresets.json | 0 build.bat => deprecated/build.bat | 0 build.sh => deprecated/build.sh | 0 crowdin.yml => deprecated/crowdin.yml | 0 {resources => deprecated/resources}/app.icns | Bin {resources => deprecated/resources}/app.ico | Bin {resources => deprecated/resources}/app.rc | 0 run.bat => deprecated/run.bat | 0 {src => deprecated/src}/CLI/CLI.cpp | 0 {src => deprecated/src}/CLI/CLI.hpp | 0 .../src}/CLI/CLIHelperFunctions.cpp | 0 .../src}/CLI/CLIHelperFunctions.hpp | 0 .../src}/CLI/LicenseTemplates/Apache.txt | 0 .../CLI/LicenseTemplates/BSDv2Simplified.txt | 0 .../CLI/LicenseTemplates/BSDv3NewRevised.txt | 0 .../src}/CLI/LicenseTemplates/BoostV1.txt | 0 .../src}/CLI/LicenseTemplates/CC0v1.txt | 0 .../src}/CLI/LicenseTemplates/EclipseV2.txt | 0 .../src}/CLI/LicenseTemplates/GNUAGPLv3.txt | 0 .../src}/CLI/LicenseTemplates/GNUGPLv2.txt | 0 .../src}/CLI/LicenseTemplates/GNUGPLv3.txt | 0 .../src}/CLI/LicenseTemplates/GNULGPLv2_1.txt | 0 .../src}/CLI/LicenseTemplates/MIT.txt | 0 .../src}/CLI/LicenseTemplates/MozillaV2.txt | 0 .../src}/CLI/LicenseTemplates/Unlicense.txt | 0 .../src}/Core/Backend/Codegen/filler | 0 {src => deprecated/src}/Core/Compiler.cpp | 0 {src => deprecated/src}/Core/Compiler.hpp | 0 .../Core/Extras/ErrorManager/ErrorManager.cpp | 0 .../Core/Extras/ErrorManager/ErrorManager.hpp | 0 .../src}/Core/Extras/LangPacks/filler | 0 .../Extras/ProjectManager/ProjectManager.hpp | 0 .../src}/Core/Frontend/Lexer/Lexer.cpp | 0 .../src}/Core/Frontend/Lexer/Lexer.hpp | 0 .../src}/Core/Frontend/Nodes.cpp | 0 .../src}/Core/Frontend/Nodes.hpp | 0 .../Frontend/Orchestrator/Orchestrator.cpp | 0 .../Frontend/Orchestrator/Orchestrator.hpp | 0 .../src}/Core/Frontend/Parser/ASTBuilder.hpp | 0 .../src}/Core/Frontend/Parser/Parser.cpp | 0 .../src}/Core/Frontend/Parser/Parser.hpp | 0 .../SemanticAnalysis/SemanticAnalysis.cpp | 0 .../SemanticAnalysis/SemanticAnalysis.hpp | 0 .../src}/Core/Frontend/Token.cpp | 0 .../src}/Core/Frontend/Token.hpp | 0 .../Middleend/IRGenerator/IRGenerator.cpp | 0 .../Middleend/IRGenerator/IRGenerator.hpp | 0 .../src}/Core/Middleend/Optimizer/filler | 0 {src => deprecated/src}/HelperFunctions.cpp | 0 {src => deprecated/src}/HelperFunctions.hpp | 0 .../src}/IntrinsicModules/std/LICENSE | 0 .../src}/IntrinsicModules/std/src/fs.nm | 0 .../src}/IntrinsicModules/std/src/io.nm | 0 .../src}/IntrinsicModules/std/src/iter.nm | 0 .../src}/IntrinsicModules/std/src/math.nm | 0 .../src}/IntrinsicModules/std/src/random.nm | 0 .../src}/IntrinsicModules/std/src/time.nm | 0 .../src}/IntrinsicModules/std/std.nlp | 0 .../src}/Libraries/Asker/Asker.cpp | 0 .../src}/Libraries/Asker/Asker.hpp | 0 .../src}/Libraries/Color/Color.cpp | 0 .../src}/Libraries/Color/Color.hpp | 0 .../src}/Libraries/Json/Json.cpp | 0 .../src}/Libraries/Json/Json.hpp | 0 .../src}/Libraries/Json/JsonGet.hpp | 0 .../Libraries/Localization/Localization.cpp | 0 .../Libraries/Localization/Localization.hpp | 0 .../src}/Libraries/Paths/Paths.cpp | 0 .../src}/Libraries/Paths/Paths.hpp | 0 .../src}/Libraries/Toml/Toml.cpp | 0 .../src}/Libraries/Toml/Toml.hpp | 0 .../src}/Libraries/Utils/Types/Array.hpp | 0 .../src}/Libraries/Utils/Types/Hashmap.hpp | 0 .../src}/Libraries/Utils/Types/String.cpp | 0 .../src}/Libraries/Utils/Types/String.hpp | 0 .../src}/Libraries/Utils/Utils.hpp | 0 .../src}/Localization/CLI/ar_SA.jsonc | 0 .../src}/Localization/CLI/de_DE.jsonc | 0 .../src}/Localization/CLI/en_US.jsonc | 0 .../src}/Localization/CLI/it_IT.jsonc | 0 .../src}/Localization/CLI/ru_RU.jsonc | 0 .../Localization/ErrorManager/en_US.jsonc | 0 .../Localization/ErrorManager/ru_RU.jsonc | 0 .../src}/Localization/Libraries/ar_SA.jsonc | 0 .../src}/Localization/Libraries/de_DE.jsonc | 0 .../src}/Localization/Libraries/en_US.jsonc | 0 .../src}/Localization/Libraries/ru_RU.jsonc | 0 {src => deprecated/src}/main.cpp | 0 {tests => deprecated/tests}/.gitignore | 0 {tests => deprecated/tests}/README.md | 0 .../invalid/empty_project/expect.json | 0 .../bar.nm | 0 .../expect.json | 0 .../foo.nm | 0 .../main.nm | 0 .../invalid/no_entrypoint/expect.json | 0 .../invalid/no_entrypoint/main.nm | 0 .../invalid/malformed_array/expect.json | 0 .../parser/invalid/malformed_array/main.nm | 0 .../parser/invalid/malformed_dict/expect.json | 0 .../parser/invalid/malformed_dict/main.nm | 0 .../parser/invalid/malformed_set/expect.json | 0 .../parser/invalid/malformed_set/main.nm | 0 .../parser/valid/decorator_entry/expect.json | 0 .../parser/valid/decorator_entry/main.nm | 0 .../invalid/break_outside_loop/expect.json | 0 .../invalid/break_outside_loop/main.nm | 0 .../invalid/const_reassignment/expect.json | 0 .../invalid/const_reassignment/main.nm | 0 .../invalid/continue_outside_loop/expect.json | 0 .../invalid/continue_outside_loop/main.nm | 0 .../invalid/duplicate_parameter/expect.json | 0 .../invalid/duplicate_parameter/main.nm | 0 .../return_outside_function/expect.json | 0 .../invalid/return_outside_function/main.nm | 0 .../invalid/undefined_function/expect.json | 0 .../invalid/undefined_function/main.nm | 0 .../invalid/undefined_variable/expect.json | 0 .../invalid/undefined_variable/main.nm | 0 .../tests}/runner/testrunner.py | 0 example.nm | 134 ------------------ 123 files changed, 142 deletions(-) delete mode 100644 .idea/neoluma.iml rename CMakeLists.txt => deprecated/CMakeLists.txt (100%) rename CMakePresets.json => deprecated/CMakePresets.json (100%) rename build.bat => deprecated/build.bat (100%) rename build.sh => deprecated/build.sh (100%) rename crowdin.yml => deprecated/crowdin.yml (100%) rename {resources => deprecated/resources}/app.icns (100%) rename {resources => deprecated/resources}/app.ico (100%) rename {resources => deprecated/resources}/app.rc (100%) rename run.bat => deprecated/run.bat (100%) rename {src => deprecated/src}/CLI/CLI.cpp (100%) rename {src => deprecated/src}/CLI/CLI.hpp (100%) rename {src => deprecated/src}/CLI/CLIHelperFunctions.cpp (100%) rename {src => deprecated/src}/CLI/CLIHelperFunctions.hpp (100%) rename {src => deprecated/src}/CLI/LicenseTemplates/Apache.txt (100%) rename {src => deprecated/src}/CLI/LicenseTemplates/BSDv2Simplified.txt (100%) rename {src => deprecated/src}/CLI/LicenseTemplates/BSDv3NewRevised.txt (100%) rename {src => deprecated/src}/CLI/LicenseTemplates/BoostV1.txt (100%) rename {src => deprecated/src}/CLI/LicenseTemplates/CC0v1.txt (100%) rename {src => deprecated/src}/CLI/LicenseTemplates/EclipseV2.txt (100%) rename {src => deprecated/src}/CLI/LicenseTemplates/GNUAGPLv3.txt (100%) rename {src => deprecated/src}/CLI/LicenseTemplates/GNUGPLv2.txt (100%) rename {src => deprecated/src}/CLI/LicenseTemplates/GNUGPLv3.txt (100%) rename {src => deprecated/src}/CLI/LicenseTemplates/GNULGPLv2_1.txt (100%) rename {src => deprecated/src}/CLI/LicenseTemplates/MIT.txt (100%) rename {src => deprecated/src}/CLI/LicenseTemplates/MozillaV2.txt (100%) rename {src => deprecated/src}/CLI/LicenseTemplates/Unlicense.txt (100%) rename {src => deprecated/src}/Core/Backend/Codegen/filler (100%) rename {src => deprecated/src}/Core/Compiler.cpp (100%) rename {src => deprecated/src}/Core/Compiler.hpp (100%) rename {src => deprecated/src}/Core/Extras/ErrorManager/ErrorManager.cpp (100%) rename {src => deprecated/src}/Core/Extras/ErrorManager/ErrorManager.hpp (100%) rename {src => deprecated/src}/Core/Extras/LangPacks/filler (100%) rename {src => deprecated/src}/Core/Extras/ProjectManager/ProjectManager.hpp (100%) rename {src => deprecated/src}/Core/Frontend/Lexer/Lexer.cpp (100%) rename {src => deprecated/src}/Core/Frontend/Lexer/Lexer.hpp (100%) rename {src => deprecated/src}/Core/Frontend/Nodes.cpp (100%) rename {src => deprecated/src}/Core/Frontend/Nodes.hpp (100%) rename {src => deprecated/src}/Core/Frontend/Orchestrator/Orchestrator.cpp (100%) rename {src => deprecated/src}/Core/Frontend/Orchestrator/Orchestrator.hpp (100%) rename {src => deprecated/src}/Core/Frontend/Parser/ASTBuilder.hpp (100%) rename {src => deprecated/src}/Core/Frontend/Parser/Parser.cpp (100%) rename {src => deprecated/src}/Core/Frontend/Parser/Parser.hpp (100%) rename {src => deprecated/src}/Core/Frontend/SemanticAnalysis/SemanticAnalysis.cpp (100%) rename {src => deprecated/src}/Core/Frontend/SemanticAnalysis/SemanticAnalysis.hpp (100%) rename {src => deprecated/src}/Core/Frontend/Token.cpp (100%) rename {src => deprecated/src}/Core/Frontend/Token.hpp (100%) rename {src => deprecated/src}/Core/Middleend/IRGenerator/IRGenerator.cpp (100%) rename {src => deprecated/src}/Core/Middleend/IRGenerator/IRGenerator.hpp (100%) rename {src => deprecated/src}/Core/Middleend/Optimizer/filler (100%) rename {src => deprecated/src}/HelperFunctions.cpp (100%) rename {src => deprecated/src}/HelperFunctions.hpp (100%) rename {src => deprecated/src}/IntrinsicModules/std/LICENSE (100%) rename {src => deprecated/src}/IntrinsicModules/std/src/fs.nm (100%) rename {src => deprecated/src}/IntrinsicModules/std/src/io.nm (100%) rename {src => deprecated/src}/IntrinsicModules/std/src/iter.nm (100%) rename {src => deprecated/src}/IntrinsicModules/std/src/math.nm (100%) rename {src => deprecated/src}/IntrinsicModules/std/src/random.nm (100%) rename {src => deprecated/src}/IntrinsicModules/std/src/time.nm (100%) rename {src => deprecated/src}/IntrinsicModules/std/std.nlp (100%) rename {src => deprecated/src}/Libraries/Asker/Asker.cpp (100%) rename {src => deprecated/src}/Libraries/Asker/Asker.hpp (100%) rename {src => deprecated/src}/Libraries/Color/Color.cpp (100%) rename {src => deprecated/src}/Libraries/Color/Color.hpp (100%) rename {src => deprecated/src}/Libraries/Json/Json.cpp (100%) rename {src => deprecated/src}/Libraries/Json/Json.hpp (100%) rename {src => deprecated/src}/Libraries/Json/JsonGet.hpp (100%) rename {src => deprecated/src}/Libraries/Localization/Localization.cpp (100%) rename {src => deprecated/src}/Libraries/Localization/Localization.hpp (100%) rename {src => deprecated/src}/Libraries/Paths/Paths.cpp (100%) rename {src => deprecated/src}/Libraries/Paths/Paths.hpp (100%) rename {src => deprecated/src}/Libraries/Toml/Toml.cpp (100%) rename {src => deprecated/src}/Libraries/Toml/Toml.hpp (100%) rename {src => deprecated/src}/Libraries/Utils/Types/Array.hpp (100%) rename {src => deprecated/src}/Libraries/Utils/Types/Hashmap.hpp (100%) rename {src => deprecated/src}/Libraries/Utils/Types/String.cpp (100%) rename {src => deprecated/src}/Libraries/Utils/Types/String.hpp (100%) rename {src => deprecated/src}/Libraries/Utils/Utils.hpp (100%) rename {src => deprecated/src}/Localization/CLI/ar_SA.jsonc (100%) rename {src => deprecated/src}/Localization/CLI/de_DE.jsonc (100%) rename {src => deprecated/src}/Localization/CLI/en_US.jsonc (100%) rename {src => deprecated/src}/Localization/CLI/it_IT.jsonc (100%) rename {src => deprecated/src}/Localization/CLI/ru_RU.jsonc (100%) rename {src => deprecated/src}/Localization/ErrorManager/en_US.jsonc (100%) rename {src => deprecated/src}/Localization/ErrorManager/ru_RU.jsonc (100%) rename {src => deprecated/src}/Localization/Libraries/ar_SA.jsonc (100%) rename {src => deprecated/src}/Localization/Libraries/de_DE.jsonc (100%) rename {src => deprecated/src}/Localization/Libraries/en_US.jsonc (100%) rename {src => deprecated/src}/Localization/Libraries/ru_RU.jsonc (100%) rename {src => deprecated/src}/main.cpp (100%) rename {tests => deprecated/tests}/.gitignore (100%) rename {tests => deprecated/tests}/README.md (100%) rename {tests => deprecated/tests}/cases/orchestrator/invalid/empty_project/expect.json (100%) rename {tests => deprecated/tests}/cases/orchestrator/invalid/import_alias_conflict_native_resolved/bar.nm (100%) rename {tests => deprecated/tests}/cases/orchestrator/invalid/import_alias_conflict_native_resolved/expect.json (100%) rename {tests => deprecated/tests}/cases/orchestrator/invalid/import_alias_conflict_native_resolved/foo.nm (100%) rename {tests => deprecated/tests}/cases/orchestrator/invalid/import_alias_conflict_native_resolved/main.nm (100%) rename {tests => deprecated/tests}/cases/orchestrator/invalid/no_entrypoint/expect.json (100%) rename {tests => deprecated/tests}/cases/orchestrator/invalid/no_entrypoint/main.nm (100%) rename {tests => deprecated/tests}/cases/parser/invalid/malformed_array/expect.json (100%) rename {tests => deprecated/tests}/cases/parser/invalid/malformed_array/main.nm (100%) rename {tests => deprecated/tests}/cases/parser/invalid/malformed_dict/expect.json (100%) rename {tests => deprecated/tests}/cases/parser/invalid/malformed_dict/main.nm (100%) rename {tests => deprecated/tests}/cases/parser/invalid/malformed_set/expect.json (100%) rename {tests => deprecated/tests}/cases/parser/invalid/malformed_set/main.nm (100%) rename {tests => deprecated/tests}/cases/parser/valid/decorator_entry/expect.json (100%) rename {tests => deprecated/tests}/cases/parser/valid/decorator_entry/main.nm (100%) rename {tests => deprecated/tests}/cases/semantic/invalid/break_outside_loop/expect.json (100%) rename {tests => deprecated/tests}/cases/semantic/invalid/break_outside_loop/main.nm (100%) rename {tests => deprecated/tests}/cases/semantic/invalid/const_reassignment/expect.json (100%) rename {tests => deprecated/tests}/cases/semantic/invalid/const_reassignment/main.nm (100%) rename {tests => deprecated/tests}/cases/semantic/invalid/continue_outside_loop/expect.json (100%) rename {tests => deprecated/tests}/cases/semantic/invalid/continue_outside_loop/main.nm (100%) rename {tests => deprecated/tests}/cases/semantic/invalid/duplicate_parameter/expect.json (100%) rename {tests => deprecated/tests}/cases/semantic/invalid/duplicate_parameter/main.nm (100%) rename {tests => deprecated/tests}/cases/semantic/invalid/return_outside_function/expect.json (100%) rename {tests => deprecated/tests}/cases/semantic/invalid/return_outside_function/main.nm (100%) rename {tests => deprecated/tests}/cases/semantic/invalid/undefined_function/expect.json (100%) rename {tests => deprecated/tests}/cases/semantic/invalid/undefined_function/main.nm (100%) rename {tests => deprecated/tests}/cases/semantic/invalid/undefined_variable/expect.json (100%) rename {tests => deprecated/tests}/cases/semantic/invalid/undefined_variable/main.nm (100%) rename {tests => deprecated/tests}/runner/testrunner.py (100%) delete mode 100644 example.nm diff --git a/.idea/neoluma.iml b/.idea/neoluma.iml deleted file mode 100644 index 74258b3..0000000 --- a/.idea/neoluma.iml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/CMakeLists.txt b/deprecated/CMakeLists.txt similarity index 100% rename from CMakeLists.txt rename to deprecated/CMakeLists.txt diff --git a/CMakePresets.json b/deprecated/CMakePresets.json similarity index 100% rename from CMakePresets.json rename to deprecated/CMakePresets.json diff --git a/build.bat b/deprecated/build.bat similarity index 100% rename from build.bat rename to deprecated/build.bat diff --git a/build.sh b/deprecated/build.sh similarity index 100% rename from build.sh rename to deprecated/build.sh diff --git a/crowdin.yml b/deprecated/crowdin.yml similarity index 100% rename from crowdin.yml rename to deprecated/crowdin.yml diff --git a/resources/app.icns b/deprecated/resources/app.icns similarity index 100% rename from resources/app.icns rename to deprecated/resources/app.icns diff --git a/resources/app.ico b/deprecated/resources/app.ico similarity index 100% rename from resources/app.ico rename to deprecated/resources/app.ico diff --git a/resources/app.rc b/deprecated/resources/app.rc similarity index 100% rename from resources/app.rc rename to deprecated/resources/app.rc diff --git a/run.bat b/deprecated/run.bat similarity index 100% rename from run.bat rename to deprecated/run.bat diff --git a/src/CLI/CLI.cpp b/deprecated/src/CLI/CLI.cpp similarity index 100% rename from src/CLI/CLI.cpp rename to deprecated/src/CLI/CLI.cpp diff --git a/src/CLI/CLI.hpp b/deprecated/src/CLI/CLI.hpp similarity index 100% rename from src/CLI/CLI.hpp rename to deprecated/src/CLI/CLI.hpp diff --git a/src/CLI/CLIHelperFunctions.cpp b/deprecated/src/CLI/CLIHelperFunctions.cpp similarity index 100% rename from src/CLI/CLIHelperFunctions.cpp rename to deprecated/src/CLI/CLIHelperFunctions.cpp diff --git a/src/CLI/CLIHelperFunctions.hpp b/deprecated/src/CLI/CLIHelperFunctions.hpp similarity index 100% rename from src/CLI/CLIHelperFunctions.hpp rename to deprecated/src/CLI/CLIHelperFunctions.hpp diff --git a/src/CLI/LicenseTemplates/Apache.txt b/deprecated/src/CLI/LicenseTemplates/Apache.txt similarity index 100% rename from src/CLI/LicenseTemplates/Apache.txt rename to deprecated/src/CLI/LicenseTemplates/Apache.txt diff --git a/src/CLI/LicenseTemplates/BSDv2Simplified.txt b/deprecated/src/CLI/LicenseTemplates/BSDv2Simplified.txt similarity index 100% rename from src/CLI/LicenseTemplates/BSDv2Simplified.txt rename to deprecated/src/CLI/LicenseTemplates/BSDv2Simplified.txt diff --git a/src/CLI/LicenseTemplates/BSDv3NewRevised.txt b/deprecated/src/CLI/LicenseTemplates/BSDv3NewRevised.txt similarity index 100% rename from src/CLI/LicenseTemplates/BSDv3NewRevised.txt rename to deprecated/src/CLI/LicenseTemplates/BSDv3NewRevised.txt diff --git a/src/CLI/LicenseTemplates/BoostV1.txt b/deprecated/src/CLI/LicenseTemplates/BoostV1.txt similarity index 100% rename from src/CLI/LicenseTemplates/BoostV1.txt rename to deprecated/src/CLI/LicenseTemplates/BoostV1.txt diff --git a/src/CLI/LicenseTemplates/CC0v1.txt b/deprecated/src/CLI/LicenseTemplates/CC0v1.txt similarity index 100% rename from src/CLI/LicenseTemplates/CC0v1.txt rename to deprecated/src/CLI/LicenseTemplates/CC0v1.txt diff --git a/src/CLI/LicenseTemplates/EclipseV2.txt b/deprecated/src/CLI/LicenseTemplates/EclipseV2.txt similarity index 100% rename from src/CLI/LicenseTemplates/EclipseV2.txt rename to deprecated/src/CLI/LicenseTemplates/EclipseV2.txt diff --git a/src/CLI/LicenseTemplates/GNUAGPLv3.txt b/deprecated/src/CLI/LicenseTemplates/GNUAGPLv3.txt similarity index 100% rename from src/CLI/LicenseTemplates/GNUAGPLv3.txt rename to deprecated/src/CLI/LicenseTemplates/GNUAGPLv3.txt diff --git a/src/CLI/LicenseTemplates/GNUGPLv2.txt b/deprecated/src/CLI/LicenseTemplates/GNUGPLv2.txt similarity index 100% rename from src/CLI/LicenseTemplates/GNUGPLv2.txt rename to deprecated/src/CLI/LicenseTemplates/GNUGPLv2.txt diff --git a/src/CLI/LicenseTemplates/GNUGPLv3.txt b/deprecated/src/CLI/LicenseTemplates/GNUGPLv3.txt similarity index 100% rename from src/CLI/LicenseTemplates/GNUGPLv3.txt rename to deprecated/src/CLI/LicenseTemplates/GNUGPLv3.txt diff --git a/src/CLI/LicenseTemplates/GNULGPLv2_1.txt b/deprecated/src/CLI/LicenseTemplates/GNULGPLv2_1.txt similarity index 100% rename from src/CLI/LicenseTemplates/GNULGPLv2_1.txt rename to deprecated/src/CLI/LicenseTemplates/GNULGPLv2_1.txt diff --git a/src/CLI/LicenseTemplates/MIT.txt b/deprecated/src/CLI/LicenseTemplates/MIT.txt similarity index 100% rename from src/CLI/LicenseTemplates/MIT.txt rename to deprecated/src/CLI/LicenseTemplates/MIT.txt diff --git a/src/CLI/LicenseTemplates/MozillaV2.txt b/deprecated/src/CLI/LicenseTemplates/MozillaV2.txt similarity index 100% rename from src/CLI/LicenseTemplates/MozillaV2.txt rename to deprecated/src/CLI/LicenseTemplates/MozillaV2.txt diff --git a/src/CLI/LicenseTemplates/Unlicense.txt b/deprecated/src/CLI/LicenseTemplates/Unlicense.txt similarity index 100% rename from src/CLI/LicenseTemplates/Unlicense.txt rename to deprecated/src/CLI/LicenseTemplates/Unlicense.txt diff --git a/src/Core/Backend/Codegen/filler b/deprecated/src/Core/Backend/Codegen/filler similarity index 100% rename from src/Core/Backend/Codegen/filler rename to deprecated/src/Core/Backend/Codegen/filler diff --git a/src/Core/Compiler.cpp b/deprecated/src/Core/Compiler.cpp similarity index 100% rename from src/Core/Compiler.cpp rename to deprecated/src/Core/Compiler.cpp diff --git a/src/Core/Compiler.hpp b/deprecated/src/Core/Compiler.hpp similarity index 100% rename from src/Core/Compiler.hpp rename to deprecated/src/Core/Compiler.hpp diff --git a/src/Core/Extras/ErrorManager/ErrorManager.cpp b/deprecated/src/Core/Extras/ErrorManager/ErrorManager.cpp similarity index 100% rename from src/Core/Extras/ErrorManager/ErrorManager.cpp rename to deprecated/src/Core/Extras/ErrorManager/ErrorManager.cpp diff --git a/src/Core/Extras/ErrorManager/ErrorManager.hpp b/deprecated/src/Core/Extras/ErrorManager/ErrorManager.hpp similarity index 100% rename from src/Core/Extras/ErrorManager/ErrorManager.hpp rename to deprecated/src/Core/Extras/ErrorManager/ErrorManager.hpp diff --git a/src/Core/Extras/LangPacks/filler b/deprecated/src/Core/Extras/LangPacks/filler similarity index 100% rename from src/Core/Extras/LangPacks/filler rename to deprecated/src/Core/Extras/LangPacks/filler diff --git a/src/Core/Extras/ProjectManager/ProjectManager.hpp b/deprecated/src/Core/Extras/ProjectManager/ProjectManager.hpp similarity index 100% rename from src/Core/Extras/ProjectManager/ProjectManager.hpp rename to deprecated/src/Core/Extras/ProjectManager/ProjectManager.hpp diff --git a/src/Core/Frontend/Lexer/Lexer.cpp b/deprecated/src/Core/Frontend/Lexer/Lexer.cpp similarity index 100% rename from src/Core/Frontend/Lexer/Lexer.cpp rename to deprecated/src/Core/Frontend/Lexer/Lexer.cpp diff --git a/src/Core/Frontend/Lexer/Lexer.hpp b/deprecated/src/Core/Frontend/Lexer/Lexer.hpp similarity index 100% rename from src/Core/Frontend/Lexer/Lexer.hpp rename to deprecated/src/Core/Frontend/Lexer/Lexer.hpp diff --git a/src/Core/Frontend/Nodes.cpp b/deprecated/src/Core/Frontend/Nodes.cpp similarity index 100% rename from src/Core/Frontend/Nodes.cpp rename to deprecated/src/Core/Frontend/Nodes.cpp diff --git a/src/Core/Frontend/Nodes.hpp b/deprecated/src/Core/Frontend/Nodes.hpp similarity index 100% rename from src/Core/Frontend/Nodes.hpp rename to deprecated/src/Core/Frontend/Nodes.hpp diff --git a/src/Core/Frontend/Orchestrator/Orchestrator.cpp b/deprecated/src/Core/Frontend/Orchestrator/Orchestrator.cpp similarity index 100% rename from src/Core/Frontend/Orchestrator/Orchestrator.cpp rename to deprecated/src/Core/Frontend/Orchestrator/Orchestrator.cpp diff --git a/src/Core/Frontend/Orchestrator/Orchestrator.hpp b/deprecated/src/Core/Frontend/Orchestrator/Orchestrator.hpp similarity index 100% rename from src/Core/Frontend/Orchestrator/Orchestrator.hpp rename to deprecated/src/Core/Frontend/Orchestrator/Orchestrator.hpp diff --git a/src/Core/Frontend/Parser/ASTBuilder.hpp b/deprecated/src/Core/Frontend/Parser/ASTBuilder.hpp similarity index 100% rename from src/Core/Frontend/Parser/ASTBuilder.hpp rename to deprecated/src/Core/Frontend/Parser/ASTBuilder.hpp diff --git a/src/Core/Frontend/Parser/Parser.cpp b/deprecated/src/Core/Frontend/Parser/Parser.cpp similarity index 100% rename from src/Core/Frontend/Parser/Parser.cpp rename to deprecated/src/Core/Frontend/Parser/Parser.cpp diff --git a/src/Core/Frontend/Parser/Parser.hpp b/deprecated/src/Core/Frontend/Parser/Parser.hpp similarity index 100% rename from src/Core/Frontend/Parser/Parser.hpp rename to deprecated/src/Core/Frontend/Parser/Parser.hpp diff --git a/src/Core/Frontend/SemanticAnalysis/SemanticAnalysis.cpp b/deprecated/src/Core/Frontend/SemanticAnalysis/SemanticAnalysis.cpp similarity index 100% rename from src/Core/Frontend/SemanticAnalysis/SemanticAnalysis.cpp rename to deprecated/src/Core/Frontend/SemanticAnalysis/SemanticAnalysis.cpp diff --git a/src/Core/Frontend/SemanticAnalysis/SemanticAnalysis.hpp b/deprecated/src/Core/Frontend/SemanticAnalysis/SemanticAnalysis.hpp similarity index 100% rename from src/Core/Frontend/SemanticAnalysis/SemanticAnalysis.hpp rename to deprecated/src/Core/Frontend/SemanticAnalysis/SemanticAnalysis.hpp diff --git a/src/Core/Frontend/Token.cpp b/deprecated/src/Core/Frontend/Token.cpp similarity index 100% rename from src/Core/Frontend/Token.cpp rename to deprecated/src/Core/Frontend/Token.cpp diff --git a/src/Core/Frontend/Token.hpp b/deprecated/src/Core/Frontend/Token.hpp similarity index 100% rename from src/Core/Frontend/Token.hpp rename to deprecated/src/Core/Frontend/Token.hpp diff --git a/src/Core/Middleend/IRGenerator/IRGenerator.cpp b/deprecated/src/Core/Middleend/IRGenerator/IRGenerator.cpp similarity index 100% rename from src/Core/Middleend/IRGenerator/IRGenerator.cpp rename to deprecated/src/Core/Middleend/IRGenerator/IRGenerator.cpp diff --git a/src/Core/Middleend/IRGenerator/IRGenerator.hpp b/deprecated/src/Core/Middleend/IRGenerator/IRGenerator.hpp similarity index 100% rename from src/Core/Middleend/IRGenerator/IRGenerator.hpp rename to deprecated/src/Core/Middleend/IRGenerator/IRGenerator.hpp diff --git a/src/Core/Middleend/Optimizer/filler b/deprecated/src/Core/Middleend/Optimizer/filler similarity index 100% rename from src/Core/Middleend/Optimizer/filler rename to deprecated/src/Core/Middleend/Optimizer/filler diff --git a/src/HelperFunctions.cpp b/deprecated/src/HelperFunctions.cpp similarity index 100% rename from src/HelperFunctions.cpp rename to deprecated/src/HelperFunctions.cpp diff --git a/src/HelperFunctions.hpp b/deprecated/src/HelperFunctions.hpp similarity index 100% rename from src/HelperFunctions.hpp rename to deprecated/src/HelperFunctions.hpp diff --git a/src/IntrinsicModules/std/LICENSE b/deprecated/src/IntrinsicModules/std/LICENSE similarity index 100% rename from src/IntrinsicModules/std/LICENSE rename to deprecated/src/IntrinsicModules/std/LICENSE diff --git a/src/IntrinsicModules/std/src/fs.nm b/deprecated/src/IntrinsicModules/std/src/fs.nm similarity index 100% rename from src/IntrinsicModules/std/src/fs.nm rename to deprecated/src/IntrinsicModules/std/src/fs.nm diff --git a/src/IntrinsicModules/std/src/io.nm b/deprecated/src/IntrinsicModules/std/src/io.nm similarity index 100% rename from src/IntrinsicModules/std/src/io.nm rename to deprecated/src/IntrinsicModules/std/src/io.nm diff --git a/src/IntrinsicModules/std/src/iter.nm b/deprecated/src/IntrinsicModules/std/src/iter.nm similarity index 100% rename from src/IntrinsicModules/std/src/iter.nm rename to deprecated/src/IntrinsicModules/std/src/iter.nm diff --git a/src/IntrinsicModules/std/src/math.nm b/deprecated/src/IntrinsicModules/std/src/math.nm similarity index 100% rename from src/IntrinsicModules/std/src/math.nm rename to deprecated/src/IntrinsicModules/std/src/math.nm diff --git a/src/IntrinsicModules/std/src/random.nm b/deprecated/src/IntrinsicModules/std/src/random.nm similarity index 100% rename from src/IntrinsicModules/std/src/random.nm rename to deprecated/src/IntrinsicModules/std/src/random.nm diff --git a/src/IntrinsicModules/std/src/time.nm b/deprecated/src/IntrinsicModules/std/src/time.nm similarity index 100% rename from src/IntrinsicModules/std/src/time.nm rename to deprecated/src/IntrinsicModules/std/src/time.nm diff --git a/src/IntrinsicModules/std/std.nlp b/deprecated/src/IntrinsicModules/std/std.nlp similarity index 100% rename from src/IntrinsicModules/std/std.nlp rename to deprecated/src/IntrinsicModules/std/std.nlp diff --git a/src/Libraries/Asker/Asker.cpp b/deprecated/src/Libraries/Asker/Asker.cpp similarity index 100% rename from src/Libraries/Asker/Asker.cpp rename to deprecated/src/Libraries/Asker/Asker.cpp diff --git a/src/Libraries/Asker/Asker.hpp b/deprecated/src/Libraries/Asker/Asker.hpp similarity index 100% rename from src/Libraries/Asker/Asker.hpp rename to deprecated/src/Libraries/Asker/Asker.hpp diff --git a/src/Libraries/Color/Color.cpp b/deprecated/src/Libraries/Color/Color.cpp similarity index 100% rename from src/Libraries/Color/Color.cpp rename to deprecated/src/Libraries/Color/Color.cpp diff --git a/src/Libraries/Color/Color.hpp b/deprecated/src/Libraries/Color/Color.hpp similarity index 100% rename from src/Libraries/Color/Color.hpp rename to deprecated/src/Libraries/Color/Color.hpp diff --git a/src/Libraries/Json/Json.cpp b/deprecated/src/Libraries/Json/Json.cpp similarity index 100% rename from src/Libraries/Json/Json.cpp rename to deprecated/src/Libraries/Json/Json.cpp diff --git a/src/Libraries/Json/Json.hpp b/deprecated/src/Libraries/Json/Json.hpp similarity index 100% rename from src/Libraries/Json/Json.hpp rename to deprecated/src/Libraries/Json/Json.hpp diff --git a/src/Libraries/Json/JsonGet.hpp b/deprecated/src/Libraries/Json/JsonGet.hpp similarity index 100% rename from src/Libraries/Json/JsonGet.hpp rename to deprecated/src/Libraries/Json/JsonGet.hpp diff --git a/src/Libraries/Localization/Localization.cpp b/deprecated/src/Libraries/Localization/Localization.cpp similarity index 100% rename from src/Libraries/Localization/Localization.cpp rename to deprecated/src/Libraries/Localization/Localization.cpp diff --git a/src/Libraries/Localization/Localization.hpp b/deprecated/src/Libraries/Localization/Localization.hpp similarity index 100% rename from src/Libraries/Localization/Localization.hpp rename to deprecated/src/Libraries/Localization/Localization.hpp diff --git a/src/Libraries/Paths/Paths.cpp b/deprecated/src/Libraries/Paths/Paths.cpp similarity index 100% rename from src/Libraries/Paths/Paths.cpp rename to deprecated/src/Libraries/Paths/Paths.cpp diff --git a/src/Libraries/Paths/Paths.hpp b/deprecated/src/Libraries/Paths/Paths.hpp similarity index 100% rename from src/Libraries/Paths/Paths.hpp rename to deprecated/src/Libraries/Paths/Paths.hpp diff --git a/src/Libraries/Toml/Toml.cpp b/deprecated/src/Libraries/Toml/Toml.cpp similarity index 100% rename from src/Libraries/Toml/Toml.cpp rename to deprecated/src/Libraries/Toml/Toml.cpp diff --git a/src/Libraries/Toml/Toml.hpp b/deprecated/src/Libraries/Toml/Toml.hpp similarity index 100% rename from src/Libraries/Toml/Toml.hpp rename to deprecated/src/Libraries/Toml/Toml.hpp diff --git a/src/Libraries/Utils/Types/Array.hpp b/deprecated/src/Libraries/Utils/Types/Array.hpp similarity index 100% rename from src/Libraries/Utils/Types/Array.hpp rename to deprecated/src/Libraries/Utils/Types/Array.hpp diff --git a/src/Libraries/Utils/Types/Hashmap.hpp b/deprecated/src/Libraries/Utils/Types/Hashmap.hpp similarity index 100% rename from src/Libraries/Utils/Types/Hashmap.hpp rename to deprecated/src/Libraries/Utils/Types/Hashmap.hpp diff --git a/src/Libraries/Utils/Types/String.cpp b/deprecated/src/Libraries/Utils/Types/String.cpp similarity index 100% rename from src/Libraries/Utils/Types/String.cpp rename to deprecated/src/Libraries/Utils/Types/String.cpp diff --git a/src/Libraries/Utils/Types/String.hpp b/deprecated/src/Libraries/Utils/Types/String.hpp similarity index 100% rename from src/Libraries/Utils/Types/String.hpp rename to deprecated/src/Libraries/Utils/Types/String.hpp diff --git a/src/Libraries/Utils/Utils.hpp b/deprecated/src/Libraries/Utils/Utils.hpp similarity index 100% rename from src/Libraries/Utils/Utils.hpp rename to deprecated/src/Libraries/Utils/Utils.hpp diff --git a/src/Localization/CLI/ar_SA.jsonc b/deprecated/src/Localization/CLI/ar_SA.jsonc similarity index 100% rename from src/Localization/CLI/ar_SA.jsonc rename to deprecated/src/Localization/CLI/ar_SA.jsonc diff --git a/src/Localization/CLI/de_DE.jsonc b/deprecated/src/Localization/CLI/de_DE.jsonc similarity index 100% rename from src/Localization/CLI/de_DE.jsonc rename to deprecated/src/Localization/CLI/de_DE.jsonc diff --git a/src/Localization/CLI/en_US.jsonc b/deprecated/src/Localization/CLI/en_US.jsonc similarity index 100% rename from src/Localization/CLI/en_US.jsonc rename to deprecated/src/Localization/CLI/en_US.jsonc diff --git a/src/Localization/CLI/it_IT.jsonc b/deprecated/src/Localization/CLI/it_IT.jsonc similarity index 100% rename from src/Localization/CLI/it_IT.jsonc rename to deprecated/src/Localization/CLI/it_IT.jsonc diff --git a/src/Localization/CLI/ru_RU.jsonc b/deprecated/src/Localization/CLI/ru_RU.jsonc similarity index 100% rename from src/Localization/CLI/ru_RU.jsonc rename to deprecated/src/Localization/CLI/ru_RU.jsonc diff --git a/src/Localization/ErrorManager/en_US.jsonc b/deprecated/src/Localization/ErrorManager/en_US.jsonc similarity index 100% rename from src/Localization/ErrorManager/en_US.jsonc rename to deprecated/src/Localization/ErrorManager/en_US.jsonc diff --git a/src/Localization/ErrorManager/ru_RU.jsonc b/deprecated/src/Localization/ErrorManager/ru_RU.jsonc similarity index 100% rename from src/Localization/ErrorManager/ru_RU.jsonc rename to deprecated/src/Localization/ErrorManager/ru_RU.jsonc diff --git a/src/Localization/Libraries/ar_SA.jsonc b/deprecated/src/Localization/Libraries/ar_SA.jsonc similarity index 100% rename from src/Localization/Libraries/ar_SA.jsonc rename to deprecated/src/Localization/Libraries/ar_SA.jsonc diff --git a/src/Localization/Libraries/de_DE.jsonc b/deprecated/src/Localization/Libraries/de_DE.jsonc similarity index 100% rename from src/Localization/Libraries/de_DE.jsonc rename to deprecated/src/Localization/Libraries/de_DE.jsonc diff --git a/src/Localization/Libraries/en_US.jsonc b/deprecated/src/Localization/Libraries/en_US.jsonc similarity index 100% rename from src/Localization/Libraries/en_US.jsonc rename to deprecated/src/Localization/Libraries/en_US.jsonc diff --git a/src/Localization/Libraries/ru_RU.jsonc b/deprecated/src/Localization/Libraries/ru_RU.jsonc similarity index 100% rename from src/Localization/Libraries/ru_RU.jsonc rename to deprecated/src/Localization/Libraries/ru_RU.jsonc diff --git a/src/main.cpp b/deprecated/src/main.cpp similarity index 100% rename from src/main.cpp rename to deprecated/src/main.cpp diff --git a/tests/.gitignore b/deprecated/tests/.gitignore similarity index 100% rename from tests/.gitignore rename to deprecated/tests/.gitignore diff --git a/tests/README.md b/deprecated/tests/README.md similarity index 100% rename from tests/README.md rename to deprecated/tests/README.md diff --git a/tests/cases/orchestrator/invalid/empty_project/expect.json b/deprecated/tests/cases/orchestrator/invalid/empty_project/expect.json similarity index 100% rename from tests/cases/orchestrator/invalid/empty_project/expect.json rename to deprecated/tests/cases/orchestrator/invalid/empty_project/expect.json diff --git a/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/bar.nm b/deprecated/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/bar.nm similarity index 100% rename from tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/bar.nm rename to deprecated/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/bar.nm diff --git a/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/expect.json b/deprecated/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/expect.json similarity index 100% rename from tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/expect.json rename to deprecated/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/expect.json diff --git a/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/foo.nm b/deprecated/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/foo.nm similarity index 100% rename from tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/foo.nm rename to deprecated/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/foo.nm diff --git a/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/main.nm b/deprecated/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/main.nm similarity index 100% rename from tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/main.nm rename to deprecated/tests/cases/orchestrator/invalid/import_alias_conflict_native_resolved/main.nm diff --git a/tests/cases/orchestrator/invalid/no_entrypoint/expect.json b/deprecated/tests/cases/orchestrator/invalid/no_entrypoint/expect.json similarity index 100% rename from tests/cases/orchestrator/invalid/no_entrypoint/expect.json rename to deprecated/tests/cases/orchestrator/invalid/no_entrypoint/expect.json diff --git a/tests/cases/orchestrator/invalid/no_entrypoint/main.nm b/deprecated/tests/cases/orchestrator/invalid/no_entrypoint/main.nm similarity index 100% rename from tests/cases/orchestrator/invalid/no_entrypoint/main.nm rename to deprecated/tests/cases/orchestrator/invalid/no_entrypoint/main.nm diff --git a/tests/cases/parser/invalid/malformed_array/expect.json b/deprecated/tests/cases/parser/invalid/malformed_array/expect.json similarity index 100% rename from tests/cases/parser/invalid/malformed_array/expect.json rename to deprecated/tests/cases/parser/invalid/malformed_array/expect.json diff --git a/tests/cases/parser/invalid/malformed_array/main.nm b/deprecated/tests/cases/parser/invalid/malformed_array/main.nm similarity index 100% rename from tests/cases/parser/invalid/malformed_array/main.nm rename to deprecated/tests/cases/parser/invalid/malformed_array/main.nm diff --git a/tests/cases/parser/invalid/malformed_dict/expect.json b/deprecated/tests/cases/parser/invalid/malformed_dict/expect.json similarity index 100% rename from tests/cases/parser/invalid/malformed_dict/expect.json rename to deprecated/tests/cases/parser/invalid/malformed_dict/expect.json diff --git a/tests/cases/parser/invalid/malformed_dict/main.nm b/deprecated/tests/cases/parser/invalid/malformed_dict/main.nm similarity index 100% rename from tests/cases/parser/invalid/malformed_dict/main.nm rename to deprecated/tests/cases/parser/invalid/malformed_dict/main.nm diff --git a/tests/cases/parser/invalid/malformed_set/expect.json b/deprecated/tests/cases/parser/invalid/malformed_set/expect.json similarity index 100% rename from tests/cases/parser/invalid/malformed_set/expect.json rename to deprecated/tests/cases/parser/invalid/malformed_set/expect.json diff --git a/tests/cases/parser/invalid/malformed_set/main.nm b/deprecated/tests/cases/parser/invalid/malformed_set/main.nm similarity index 100% rename from tests/cases/parser/invalid/malformed_set/main.nm rename to deprecated/tests/cases/parser/invalid/malformed_set/main.nm diff --git a/tests/cases/parser/valid/decorator_entry/expect.json b/deprecated/tests/cases/parser/valid/decorator_entry/expect.json similarity index 100% rename from tests/cases/parser/valid/decorator_entry/expect.json rename to deprecated/tests/cases/parser/valid/decorator_entry/expect.json diff --git a/tests/cases/parser/valid/decorator_entry/main.nm b/deprecated/tests/cases/parser/valid/decorator_entry/main.nm similarity index 100% rename from tests/cases/parser/valid/decorator_entry/main.nm rename to deprecated/tests/cases/parser/valid/decorator_entry/main.nm diff --git a/tests/cases/semantic/invalid/break_outside_loop/expect.json b/deprecated/tests/cases/semantic/invalid/break_outside_loop/expect.json similarity index 100% rename from tests/cases/semantic/invalid/break_outside_loop/expect.json rename to deprecated/tests/cases/semantic/invalid/break_outside_loop/expect.json diff --git a/tests/cases/semantic/invalid/break_outside_loop/main.nm b/deprecated/tests/cases/semantic/invalid/break_outside_loop/main.nm similarity index 100% rename from tests/cases/semantic/invalid/break_outside_loop/main.nm rename to deprecated/tests/cases/semantic/invalid/break_outside_loop/main.nm diff --git a/tests/cases/semantic/invalid/const_reassignment/expect.json b/deprecated/tests/cases/semantic/invalid/const_reassignment/expect.json similarity index 100% rename from tests/cases/semantic/invalid/const_reassignment/expect.json rename to deprecated/tests/cases/semantic/invalid/const_reassignment/expect.json diff --git a/tests/cases/semantic/invalid/const_reassignment/main.nm b/deprecated/tests/cases/semantic/invalid/const_reassignment/main.nm similarity index 100% rename from tests/cases/semantic/invalid/const_reassignment/main.nm rename to deprecated/tests/cases/semantic/invalid/const_reassignment/main.nm diff --git a/tests/cases/semantic/invalid/continue_outside_loop/expect.json b/deprecated/tests/cases/semantic/invalid/continue_outside_loop/expect.json similarity index 100% rename from tests/cases/semantic/invalid/continue_outside_loop/expect.json rename to deprecated/tests/cases/semantic/invalid/continue_outside_loop/expect.json diff --git a/tests/cases/semantic/invalid/continue_outside_loop/main.nm b/deprecated/tests/cases/semantic/invalid/continue_outside_loop/main.nm similarity index 100% rename from tests/cases/semantic/invalid/continue_outside_loop/main.nm rename to deprecated/tests/cases/semantic/invalid/continue_outside_loop/main.nm diff --git a/tests/cases/semantic/invalid/duplicate_parameter/expect.json b/deprecated/tests/cases/semantic/invalid/duplicate_parameter/expect.json similarity index 100% rename from tests/cases/semantic/invalid/duplicate_parameter/expect.json rename to deprecated/tests/cases/semantic/invalid/duplicate_parameter/expect.json diff --git a/tests/cases/semantic/invalid/duplicate_parameter/main.nm b/deprecated/tests/cases/semantic/invalid/duplicate_parameter/main.nm similarity index 100% rename from tests/cases/semantic/invalid/duplicate_parameter/main.nm rename to deprecated/tests/cases/semantic/invalid/duplicate_parameter/main.nm diff --git a/tests/cases/semantic/invalid/return_outside_function/expect.json b/deprecated/tests/cases/semantic/invalid/return_outside_function/expect.json similarity index 100% rename from tests/cases/semantic/invalid/return_outside_function/expect.json rename to deprecated/tests/cases/semantic/invalid/return_outside_function/expect.json diff --git a/tests/cases/semantic/invalid/return_outside_function/main.nm b/deprecated/tests/cases/semantic/invalid/return_outside_function/main.nm similarity index 100% rename from tests/cases/semantic/invalid/return_outside_function/main.nm rename to deprecated/tests/cases/semantic/invalid/return_outside_function/main.nm diff --git a/tests/cases/semantic/invalid/undefined_function/expect.json b/deprecated/tests/cases/semantic/invalid/undefined_function/expect.json similarity index 100% rename from tests/cases/semantic/invalid/undefined_function/expect.json rename to deprecated/tests/cases/semantic/invalid/undefined_function/expect.json diff --git a/tests/cases/semantic/invalid/undefined_function/main.nm b/deprecated/tests/cases/semantic/invalid/undefined_function/main.nm similarity index 100% rename from tests/cases/semantic/invalid/undefined_function/main.nm rename to deprecated/tests/cases/semantic/invalid/undefined_function/main.nm diff --git a/tests/cases/semantic/invalid/undefined_variable/expect.json b/deprecated/tests/cases/semantic/invalid/undefined_variable/expect.json similarity index 100% rename from tests/cases/semantic/invalid/undefined_variable/expect.json rename to deprecated/tests/cases/semantic/invalid/undefined_variable/expect.json diff --git a/tests/cases/semantic/invalid/undefined_variable/main.nm b/deprecated/tests/cases/semantic/invalid/undefined_variable/main.nm similarity index 100% rename from tests/cases/semantic/invalid/undefined_variable/main.nm rename to deprecated/tests/cases/semantic/invalid/undefined_variable/main.nm diff --git a/tests/runner/testrunner.py b/deprecated/tests/runner/testrunner.py similarity index 100% rename from tests/runner/testrunner.py rename to deprecated/tests/runner/testrunner.py diff --git a/example.nm b/example.nm deleted file mode 100644 index af13346..0000000 --- a/example.nm +++ /dev/null @@ -1,134 +0,0 @@ -#unsafe - // Marks the code as unsafe for low-level operations - -// Line comment -/* - Block comment - spanning multiple lines -*/ - -// Variables -a = 20 -b: string = "Hello!" // Type is optional -const c = 42; - -myarray = [1, 2, 3] -mydict = {"x": 1, "y": 2} -myset = (true, "apple", 1.5) -mybool = false -nullable: int = null - -// Enums and Interfaces -enum Color { Red, Green, Blue } -interface IShape { name: string, area: float } - -// Class and method declaration -class Animal { - init() {} - - public fn speak() { - print("Sound") - } -} - -class Dog <- Animal { - @override - public static fn speak() { - print("Bark") - } -} - -// Lambda and concise syntax -lambda x, y: x + y -(x, y) => x * y - -''' -Entry point of program -''' -public function main(args: string[], number) { - print("Hello, ${args[0]}!") - - result = add(10, 5) - print("Sum: ${result}") -} - -private fn add(a, b) -> int { - return a + b -} - -public fn subtract(a, b) -> int => a - b - -// Unsafe memory access -#import "memory" - -ptr = &map(memory.allocate(4 * size(int))) -*ptr = 123 -print(*ptr) -memory.free(ptr) - -// Imports from Neoluma modules -#import "math" -#import "random" as rnd - -num = rnd.random(1, 100) -print(num) - -a = input("Say something: ") -with open("log.txt", "w") as file { - file.write(a) -} - -// Control flow -for (i in range(5)) { - print(i) -} - -while (true) { - break -} - -if (num > 50) { - print("Big number") -} else { - print("Small number") -} - -switch (num) { - case 1: - print("One") - case 2: - print("Two") - default: - print("Other") -} - -// Namespace -namespace app.tools - -// Generators (list comprehension) -squares = [x * x for x in range(10)] - -// Importing external language pack -#import "cpp:mathlib" as math - -public fn calc() -> int { - return math.sqrt(144) -} - -// Try/catch/throw -try { - risky() -} catch (err) { - print("Error: ${err}") - throw err -} - -fn risky() -> result { - return result.error("Oops!") -} - -// Decorator usage -@decorator -fn decorated_func() { - print("I'm decorated!") -} From f167bf11d9c2a132c6d3851f223a0625508359b4 Mon Sep 17 00:00:00 2001 From: TsukimotoX Date: Wed, 24 Jun 2026 20:40:45 +0300 Subject: [PATCH 3/3] first batch of the rewrite (unfinished) --- .gitignore | 5 +- Neoluma.slnx | 5 + deprecated/build.bat | 63 --- deprecated/run.bat | 1 - deprecated/src/CLI/CLI.hpp | 180 --------- deprecated/src/HelperFunctions.cpp | 27 -- deprecated/src/HelperFunctions.hpp | 75 ---- deprecated/src/Libraries/Asker/Asker.cpp | 80 ---- deprecated/src/Libraries/Asker/Asker.hpp | 65 --- deprecated/src/Libraries/Color/Color.cpp | 35 -- deprecated/src/Libraries/Color/Color.hpp | 31 -- .../src/Libraries/Utils/Types/Array.hpp | 31 -- .../src/Libraries/Utils/Types/Hashmap.hpp | 21 - .../src/Libraries/Utils/Types/String.cpp | 41 -- .../src/Libraries/Utils/Types/String.hpp | 109 ----- deprecated/src/Libraries/Utils/Utils.hpp | 5 - run.ps1 | 1 + src/Neoluma.Compiler/CLI/ArgumentParser.cs | 34 ++ src/Neoluma.Compiler/CLI/CLI.cs | 57 +++ .../CLI/LicenseTemplates/Apache.txt | 0 .../CLI/LicenseTemplates/BSDv2Simplified.txt | 0 .../CLI/LicenseTemplates/BSDv3NewRevised.txt | 0 .../CLI/LicenseTemplates/BoostV1.txt | 0 .../CLI/LicenseTemplates/CC0v1.txt | 0 .../CLI/LicenseTemplates/EclipseV2.txt | 0 .../CLI/LicenseTemplates/GNUAGPLv3.txt | 0 .../CLI/LicenseTemplates/GNUGPLv2.txt | 0 .../CLI/LicenseTemplates/GNUGPLv3.txt | 0 .../CLI/LicenseTemplates/GNULGPLv2_1.txt | 0 .../CLI/LicenseTemplates/MIT.txt | 0 .../CLI/LicenseTemplates/MozillaV2.txt | 0 .../CLI/LicenseTemplates/Unlicense.txt | 0 src/Neoluma.Compiler/Core/Compiler.cs | 25 ++ .../Core/Extras/ProjectManager.cs | 60 +++ .../IntrinsicModules/std/LICENSE | 0 .../IntrinsicModules/std/src/fs.nm | 0 .../IntrinsicModules/std/src/io.nm | 0 .../IntrinsicModules/std/src/iter.nm | 0 .../IntrinsicModules/std/src/math.nm | 0 .../IntrinsicModules/std/src/random.nm | 0 .../IntrinsicModules/std/src/time.nm | 0 .../IntrinsicModules/std/std.nlp | 0 src/Neoluma.Compiler/Libraries/Asker.cs | 56 +++ src/Neoluma.Compiler/Libraries/Color.cs | 47 +++ src/Neoluma.Compiler/Libraries/JSON.cs | 376 ++++++++++++++++++ .../Libraries/Utils/FileEmbed.cs | 15 + .../Localization/CLI/ar_SA.jsonc | 0 .../Localization/CLI/de_DE.jsonc | 0 .../Localization/CLI/en_US.jsonc | 0 .../Localization/CLI/it_IT.jsonc | 0 .../Localization/CLI/ru_RU.jsonc | 0 .../Localization/ErrorManager/en_US.jsonc | 0 .../Localization/ErrorManager/ru_RU.jsonc | 0 .../Localization/Libraries/ar_SA.jsonc | 0 .../Localization/Libraries/de_DE.jsonc | 0 .../Localization/Libraries/en_US.jsonc | 0 .../Localization/Libraries/ru_RU.jsonc | 0 src/Neoluma.Compiler/Neoluma.Compiler.csproj | 40 ++ src/Neoluma.Compiler/Program.cs | 20 + 59 files changed, 738 insertions(+), 767 deletions(-) create mode 100644 Neoluma.slnx delete mode 100644 deprecated/build.bat delete mode 100644 deprecated/run.bat delete mode 100644 deprecated/src/CLI/CLI.hpp delete mode 100644 deprecated/src/HelperFunctions.cpp delete mode 100644 deprecated/src/HelperFunctions.hpp delete mode 100644 deprecated/src/Libraries/Asker/Asker.cpp delete mode 100644 deprecated/src/Libraries/Asker/Asker.hpp delete mode 100644 deprecated/src/Libraries/Color/Color.cpp delete mode 100644 deprecated/src/Libraries/Color/Color.hpp delete mode 100644 deprecated/src/Libraries/Utils/Types/Array.hpp delete mode 100644 deprecated/src/Libraries/Utils/Types/Hashmap.hpp delete mode 100644 deprecated/src/Libraries/Utils/Types/String.cpp delete mode 100644 deprecated/src/Libraries/Utils/Types/String.hpp delete mode 100644 deprecated/src/Libraries/Utils/Utils.hpp create mode 100644 run.ps1 create mode 100644 src/Neoluma.Compiler/CLI/ArgumentParser.cs create mode 100644 src/Neoluma.Compiler/CLI/CLI.cs rename {deprecated/src => src/Neoluma.Compiler}/CLI/LicenseTemplates/Apache.txt (100%) rename {deprecated/src => src/Neoluma.Compiler}/CLI/LicenseTemplates/BSDv2Simplified.txt (100%) rename {deprecated/src => src/Neoluma.Compiler}/CLI/LicenseTemplates/BSDv3NewRevised.txt (100%) rename {deprecated/src => src/Neoluma.Compiler}/CLI/LicenseTemplates/BoostV1.txt (100%) rename {deprecated/src => src/Neoluma.Compiler}/CLI/LicenseTemplates/CC0v1.txt (100%) rename {deprecated/src => src/Neoluma.Compiler}/CLI/LicenseTemplates/EclipseV2.txt (100%) rename {deprecated/src => src/Neoluma.Compiler}/CLI/LicenseTemplates/GNUAGPLv3.txt (100%) rename {deprecated/src => src/Neoluma.Compiler}/CLI/LicenseTemplates/GNUGPLv2.txt (100%) rename {deprecated/src => src/Neoluma.Compiler}/CLI/LicenseTemplates/GNUGPLv3.txt (100%) rename {deprecated/src => src/Neoluma.Compiler}/CLI/LicenseTemplates/GNULGPLv2_1.txt (100%) rename {deprecated/src => src/Neoluma.Compiler}/CLI/LicenseTemplates/MIT.txt (100%) rename {deprecated/src => src/Neoluma.Compiler}/CLI/LicenseTemplates/MozillaV2.txt (100%) rename {deprecated/src => src/Neoluma.Compiler}/CLI/LicenseTemplates/Unlicense.txt (100%) create mode 100644 src/Neoluma.Compiler/Core/Compiler.cs create mode 100644 src/Neoluma.Compiler/Core/Extras/ProjectManager.cs rename {deprecated/src => src/Neoluma.Compiler}/IntrinsicModules/std/LICENSE (100%) rename {deprecated/src => src/Neoluma.Compiler}/IntrinsicModules/std/src/fs.nm (100%) rename {deprecated/src => src/Neoluma.Compiler}/IntrinsicModules/std/src/io.nm (100%) rename {deprecated/src => src/Neoluma.Compiler}/IntrinsicModules/std/src/iter.nm (100%) rename {deprecated/src => src/Neoluma.Compiler}/IntrinsicModules/std/src/math.nm (100%) rename {deprecated/src => src/Neoluma.Compiler}/IntrinsicModules/std/src/random.nm (100%) rename {deprecated/src => src/Neoluma.Compiler}/IntrinsicModules/std/src/time.nm (100%) rename {deprecated/src => src/Neoluma.Compiler}/IntrinsicModules/std/std.nlp (100%) create mode 100644 src/Neoluma.Compiler/Libraries/Asker.cs create mode 100644 src/Neoluma.Compiler/Libraries/Color.cs create mode 100644 src/Neoluma.Compiler/Libraries/JSON.cs create mode 100644 src/Neoluma.Compiler/Libraries/Utils/FileEmbed.cs rename {deprecated/src => src/Neoluma.Compiler}/Localization/CLI/ar_SA.jsonc (100%) rename {deprecated/src => src/Neoluma.Compiler}/Localization/CLI/de_DE.jsonc (100%) rename {deprecated/src => src/Neoluma.Compiler}/Localization/CLI/en_US.jsonc (100%) rename {deprecated/src => src/Neoluma.Compiler}/Localization/CLI/it_IT.jsonc (100%) rename {deprecated/src => src/Neoluma.Compiler}/Localization/CLI/ru_RU.jsonc (100%) rename {deprecated/src => src/Neoluma.Compiler}/Localization/ErrorManager/en_US.jsonc (100%) rename {deprecated/src => src/Neoluma.Compiler}/Localization/ErrorManager/ru_RU.jsonc (100%) rename {deprecated/src => src/Neoluma.Compiler}/Localization/Libraries/ar_SA.jsonc (100%) rename {deprecated/src => src/Neoluma.Compiler}/Localization/Libraries/de_DE.jsonc (100%) rename {deprecated/src => src/Neoluma.Compiler}/Localization/Libraries/en_US.jsonc (100%) rename {deprecated/src => src/Neoluma.Compiler}/Localization/Libraries/ru_RU.jsonc (100%) create mode 100644 src/Neoluma.Compiler/Neoluma.Compiler.csproj create mode 100644 src/Neoluma.Compiler/Program.cs diff --git a/.gitignore b/.gitignore index 24b876e..5533052 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,5 @@ .vscode/ .idea/ -src/Installer/node_modules/ -src/Installer/dist/ -src/Installer/src-tauri/resources/* \ No newline at end of file +src/Neoluma.Compiler/bin +src/Neoluma.Compiler/obj \ No newline at end of file diff --git a/Neoluma.slnx b/Neoluma.slnx new file mode 100644 index 0000000..116d464 --- /dev/null +++ b/Neoluma.slnx @@ -0,0 +1,5 @@ + + + + + diff --git a/deprecated/build.bat b/deprecated/build.bat deleted file mode 100644 index 2b5ea1f..0000000 --- a/deprecated/build.bat +++ /dev/null @@ -1,63 +0,0 @@ -@echo off -setlocal EnableExtensions -for /f %%A in ('echo prompt $E ^| cmd') do set "ESC=%%A" - -set "MODE=%~1" -if "%MODE%"=="" set "MODE=release" - -set "CFG_PRESET=release-ninja" -set "BUILD_PRESET=release" -set "CONFIG=Release" - -if /I "%MODE%"=="debug" ( - set "CFG_PRESET=debug-ninja" - set "BUILD_PRESET=debug" - set "CONFIG=Debug" -) - -echo %ESC%[38;2;232;75;133m[INFO]%ESC%[0m Configure preset: %CFG_PRESET% -echo %ESC%[38;2;232;75;133m[INFO]%ESC%[0m Build preset: %BUILD_PRESET% - -echo %ESC%[38;2;232;75;133m[INFO]%ESC%[0m Configuring... -cmake --preset "%CFG_PRESET%" -if errorlevel 1 goto :cfg_fail - -goto :build - -:build -echo %ESC%[38;2;232;75;133m[INFO]%ESC%[0m Building neoluma... -cmake --build --preset "%BUILD_PRESET%" --target install -if errorlevel 1 goto :build_fail -echo %ESC%[38;2;232;75;133m[INFO]%ESC%[0m Building payload... -cmake --build --preset "%BUILD_PRESET%" --target payload -if errorlevel 1 goto :build_fail -goto :after_build - -:after_build -set "EXE=.build\.executables\%CONFIG%\neoluma.exe" -set "RUNTIME=.build\.runtime\%CONFIG%\" -if exist "%EXE%" ( - echo %ESC%[38;2;117;255;135m[SUCCESS]%ESC%[0m Built: %EXE% -) else ( - echo %ESC%[38;2;255;80;80m[ERROR]%ESC%[0m Can't find built exe at: %EXE% - exit /b 1 -) -if exist "%RUNTIME%" ( - echo %ESC%[38;2;117;255;135m[SUCCESS]%ESC%[0m Runtime built at: %RUNTIME% -) else ( - echo %ESC%[38;2;255;80;80m[ERROR]%ESC%[0m Can't find built runtime at: %RUNTIME% - exit /b 1 -) -goto :done - -:cfg_fail -echo %ESC%[38;2;255;80;80m[ERROR]%ESC%[0m CMake configure failed. -exit /b 1 - -:build_fail -echo %ESC%[38;2;255;80;80m[ERROR]%ESC%[0m Build failed. -exit /b 1 - -:done -echo %ESC%[38;2;117;255;135m[DONE]%ESC%[0m -exit /b 0 \ No newline at end of file diff --git a/deprecated/run.bat b/deprecated/run.bat deleted file mode 100644 index 5dcd372..0000000 --- a/deprecated/run.bat +++ /dev/null @@ -1 +0,0 @@ -.\.build\.runtime\Debug\bin\neoluma.exe check --project "TestProject/testproject.nlp" \ No newline at end of file diff --git a/deprecated/src/CLI/CLI.hpp b/deprecated/src/CLI/CLI.hpp deleted file mode 100644 index 6580735..0000000 --- a/deprecated/src/CLI/CLI.hpp +++ /dev/null @@ -1,180 +0,0 @@ -#pragma once -#include "CLIHelperFunctions.hpp" -#include "HelperFunctions.hpp" - -#include "Libraries/Asker/Asker.hpp" - -#include -#include -#include - -// CLIArgs is a struct that allows me to parse CLI arguments -struct CLIArgs { - std::string command; // parses commands like new, build, run, check and help - std::map options; // parses --arguments with_values.nlp - std::vector positional; // anything that is not an --argument -}; - -// Argument parsing -CLIArgs parseArgs(int argc, char** argv); - -// ==== Main functions ==== - -void build(const std::string& nlpFile); // Compiles Neoluma program into a binary executable -void run(const std::string& nlpFile); // Runs the code interpreted way. Useful for testing. -void check(const std::string& nlpFile, bool jsonOutput = false); // Checks code on errors. Doesn't generate any binaries -void createProject(ProjectConfig config); // Creates a project -void createProject(); // Creates a project (Without ProjectConfig) - -// Help function that just tells details about compiler and it's CLI. -void printHelp(); - -// Licenses templates -class Licenses { - static inline const std::string MIT_TEMPLATE = { - #embed "LicenseTemplates/MIT.txt" - }; - static inline const std::string APACHE_TEMPLATE = { - #embed "LicenseTemplates/Apache.txt" - }; - static inline const std::string GNUGPLv3_TEMPLATE = { - #embed "LicenseTemplates/GNUGPLv3.txt" - }; - static inline const std::string BSDv2Simplified_TEMPLATE = { - #embed "LicenseTemplates/BSDv2Simplified.txt" - }; - static inline const std::string BSDv3NewRevised_TEMPLATE = { - #embed "LicenseTemplates/BSDv3NewRevised.txt" - }; - static inline const std::string BoostV1_TEMPLATE = { - #embed "LicenseTemplates/BoostV1.txt" - }; - static inline const std::string CC0v1_TEMPLATE = { - #embed "LicenseTemplates/CC0v1.txt" - }; - static inline const std::string EclipseV2_TEMPLATE = { - #embed "LicenseTemplates/EclipseV2.txt" - }; - static inline const std::string GNUAGPLv3_TEMPLATE = { - #embed "LicenseTemplates/GNUAGPLv3.txt" - }; - static inline const std::string GNUGPLv2_TEMPLATE = { - #embed "LicenseTemplates/GNUGPLv2.txt" - }; - static inline const std::string GNULGPLv2_1_TEMPLATE = { - #embed "LicenseTemplates/GNULGPLv2_1.txt" - }; - static inline const std::string MozillaV2_TEMPLATE = { - #embed "LicenseTemplates/MozillaV2.txt" - }; - static inline const std::string Unlicense_TEMPLATE = { - #embed "LicenseTemplates/Unlicense.txt" - }; -public: - // Available identifiers: mit, apache, gpl2, gpl3, bsd2, bsd3, boost, cc0, eclipse, agpl, lgpl, mozilla, unlicense. Otherwise returns specific message - static std::string checkLicense(ProjectConfig config, License license) { - if (license == License::MIT) return MIT(listAuthors(config.author)); - if (license == License::Apache) return Apachev2(); - if (license == License::GPL2) return GNUGPLv2(); - if (license == License::GPL3) return GNUGPLv3(); - if (license == License::BSD2) return BSDv2Simplified(listAuthors(config.author)); - if (license == License::BSD3) return BSDv3NewRevised(listAuthors(config.author)); - if (license == License::Boost) return Boostv1(); - if (license == License::CC0) return CC0v1(); - if (license == License::Eclipse) return Eclipsev2(); - if (license == License::AGPL) return GNUAGPLv3(); - if (license == License::LGPL) return GNULGPLv2_1(); - if (license == License::Mozilla) return Mozillav2(); - if (license == License::Unlicense) return Unlicense(); - return "We haven't found licenses for your case. Please delete this text and insert your license here, or delete the license file completely."; - } - - /* A short and simple permissive license with conditions only requiring preservation of copyright and license notices. - Licensed works, modifications, and larger works may be distributed under different terms and without source code. */ - static std::string MIT(std::string author) { - const auto year = formatStr("{:%Y}", std::chrono::system_clock::now()); - return formatStr(MIT_TEMPLATE, year, author); - } - - /* A permissive license whose main conditions require preservation of copyright and license notices. - Contributors provide an express grant of patent rights. Licensed works, modifications, and larger works may be - distributed under different terms and without source code. */ - static std::string Apachev2() { - return APACHE_TEMPLATE; - } - - /*Permissions of this strong copyleft license are conditioned on making available complete source code of licensed works - and modifications, which include larger works using a licensed workunder the same license. Copyright and license notices - must be preserved. Contributors provide an express grant of patent rights.*/ - static std::string GNUGPLv3() { - return GNUGPLv3_TEMPLATE; - } - - /*A permissive license that comes in two variants, the BSD 2-Clause and BSD 3-Clause. - Both have very minute differences to the MIT license.*/ - static std::string BSDv2Simplified(std::string author){ - const auto year = formatStr("{:%Y}", std::chrono::system_clock::now()); - return formatStr(BSDv2Simplified_TEMPLATE, year, author); - } - - /*A permissive license similar to the BSD 2-Clause License, but with a 3rd clause that prohibits others from using the name - of the copyright holder or its contributors to promote derived products without written consent.*/ - static std::string BSDv3NewRevised(std::string author) { - const auto year = formatStr("{:%Y}", std::chrono::system_clock::now()); - return formatStr(BSDv3NewRevised_TEMPLATE, year, author); - } - - /*A simple permissive license only requiring preservation of copyright and license notices for source (and not binary) distribution. - Licensed works, modifications, and larger works may be distributed under different terms and without source code.*/ - static std::string Boostv1() { - return BoostV1_TEMPLATE; - } - - /*The Creative Commons CC0 Public Domain Dedication waives copyright interest in a work you've created and dedicates - it to the world-wide public domain. Use CC0 to opt out of copyright entirely and ensure your work has the widest reach. - As with the Unlicense and typical software licenses, CC0 disclaims warranties. CC0 is very similar to the Unlicense.*/ - static std::string CC0v1() { - return CC0v1_TEMPLATE; - } - - /*This commercially-friendly copyleft license provides the ability to commercially license binaries; a modern royalty-free patent - license grant; and the ability for linked works to use other licenses, including commercial ones.*/ - static std::string Eclipsev2() { - return EclipseV2_TEMPLATE; - } - - /*Permissions of this strongest copyleft license are conditioned on making available complete source code of licensed works - and modifications, which include larger works using a licensed work, under the same license. Copyright and license notices - must be preserved. Contributors provide an express grant of patent rights. When a modified version is used to provide - a service over a network, the complete source code of the modified version must be made available.*/ - static std::string GNUAGPLv3() { - return GNUAGPLv3_TEMPLATE; - } - - /* The GNU GPL is the most widely used free software license and has a strong copyleft requirement. - When distributing derived works, the source code of the work must be made available under the same license. - There are multiple variants of the GNU GPL, each with different requirements. */ - static std::string GNUGPLv2() { - return GNUGPLv2_TEMPLATE; - } - - /* Primarily used for software libraries, the GNU LGPL requires that derived works be licensed under the same license, but works that - only link to it do not fall under this restriction. There are two commonly used versions of the GNU LGPL.*/ - static std::string GNULGPLv2_1() { - return GNULGPLv2_1_TEMPLATE; - } - - /*Permissions of this weak copyleft license are conditioned on making available source code of licensed files and modifications of those - files under the same license (or in certain cases, one of the GNU licenses). Copyright and license notices must be preserved. - Contributors provide an express grant of patent rights. However, a larger work using the licensed work may be distributed under - different terms and without source code for files added in the larger work.*/ - static std::string Mozillav2() { - return MozillaV2_TEMPLATE; - } - - /*A license with no conditions whatsoever which dedicates works to the public domain. Unlicensed works, modifications, - and larger works may be distributed under different terms and without source code.*/ - static std::string Unlicense() { - return Unlicense_TEMPLATE; - } -}; \ No newline at end of file diff --git a/deprecated/src/HelperFunctions.cpp b/deprecated/src/HelperFunctions.cpp deleted file mode 100644 index 2ba1755..0000000 --- a/deprecated/src/HelperFunctions.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include "HelperFunctions.hpp" -#include "Libraries/Color/Color.hpp" -#include -#include -#include - - -// Reads the file -String readFile(const String& filePath) { - std::ifstream file(filePath); - if (!file.is_open()) { - std::println(std::cerr, "{}[Neoluma/HelperFunctions] Failed to open file: {}", Color::TextHex("#ff5050"), filePath); - return ""; - } - std::stringstream buffer; - buffer << file.rdbuf(); - return buffer.str(); -} - -String normalizePath(String path) { - size_t pos = 0; - while ((pos = path.find("\\", pos)) != String::npos) { - path.replace(pos, 1, "/"); - pos += 1; - } - return path; -} \ No newline at end of file diff --git a/deprecated/src/HelperFunctions.hpp b/deprecated/src/HelperFunctions.hpp deleted file mode 100644 index e6e3ce7..0000000 --- a/deprecated/src/HelperFunctions.hpp +++ /dev/null @@ -1,75 +0,0 @@ -#pragma once - -#include -#include -#include -#include -#include -#include -#include -#include - -// Alias of std::unique_ptr -template -using MemoryPtr = std::unique_ptr; - -// Alias of std::variant -template -using Option = std::variant; - -template -constexpr bool optionIs(const Option& value) { - return std::holds_alternative(value); -} - -template -constexpr T& getOption(Option& value) { - return std::get(value); -} - -template -constexpr const T& getOption(const Option& value) { - return std::get(value); -} - -template -constexpr T* tryGetOption(Option* value) { - return std::get_if(value); -} - -template -constexpr const T* tryGetOption(const Option* value) { - return std::get_if(value); -} - -template -MemoryPtr makeMemoryPtr(Args&&... args) { - return std::make_unique(std::forward(args)...); -} - -template -MemoryPtr makeSharedPtr(Args&&... args) { - return std::make_shared(std::forward(args)...); -} - -template -MemoryPtr as(MemoryPtr ptr) { - static_assert(std::is_base_of_v, "[Neoluma/HelperFunctions] as(ptr): T must derive from U"); - - if constexpr (std::is_polymorphic_v) { - if (T* casted = dynamic_cast(ptr.get())) { - ptr.release(); - return MemoryPtr(casted); - } - return nullptr; - } else { - return MemoryPtr(static_cast(ptr.release())); - } -} - -// Other -// Reads the file -std::string readFile(const std::string& filePath); - -// turns \\ into / cuz screw how windows is made -std::string normalizePath(const std::string& path); diff --git a/deprecated/src/Libraries/Asker/Asker.cpp b/deprecated/src/Libraries/Asker/Asker.cpp deleted file mode 100644 index ee69809..0000000 --- a/deprecated/src/Libraries/Asker/Asker.cpp +++ /dev/null @@ -1,80 +0,0 @@ -#include "Asker.hpp" - -#include - -#ifdef _WIN32 -#include - -Key getKey() { - int c = _getch(); - if (c == 13) return ENTER; - if (c == 8) return BACKSPACE; - if (c == 224 || c == 0) { - c = _getch(); - if (c == 72) return UP; - if (c == 80) return DOWN; - } - return NONE; -} - -void enableRaw() {} // do nothing on windows -void disableRaw() {} - -#else -#include -#include -void enableRaw() { - tcgetattr(STDIN_FILENO, &term); - struct termios raw = term; - raw.c_lflag &= ~(ICANON | ECHO); - tcsetattr(STDIN_FILENO, TCSANOW, &raw); -} - -void disableRaw() { - tcsetattr(STDIN_FILENO, TCSAFLUSH, &term); -} - -Key getKey() { - int c = getchar(); - if (c == '\n') return ENTER; - if (c == 127) return BACKSPACE; - if (c == 27) { - char sequence[2]; - if (read(STDIN_FILENO, sequence, 2) == 2 && sequence[0] == '[') { - if (sequence[1] == 'A') return UP; - if (sequence[1] == 'B') return DOWN; - } - } - return NONE; -} -#endif - -void clearBlock(int lines) { - for (int i = 0; i < lines; i++) { - std::cout << "\033[1A"; // up - std::cout << "\033[2K"; // clear whole line - std::cout << "\r"; - } -} - -namespace asker { - std::string input(const std::string& question, bool required) { - std::cout << Color::TextHex("#75b5ff") << ">> " << question << ' ' << Color::TextHex("#ff28e6"); - std::string response; - while (std::getline(std::cin, response)) { - if (required && response.length() == 0) {} - else break; - } - std::cout << Color::Reset; - return response; - } - - bool confirm(const std::string& question) { - bool result = true; - std::string response; - response = input(question + Color::TextHex("#e84b85") + " (y/n) " + Color::TextHex("#ff28e6")); - if (response[0] != 'y' && response[0] != 'Y' && response[0] != '\0' ) result = false; - std::cout << Color::Reset; - return result; - } -} \ No newline at end of file diff --git a/deprecated/src/Libraries/Asker/Asker.hpp b/deprecated/src/Libraries/Asker/Asker.hpp deleted file mode 100644 index ac4e164..0000000 --- a/deprecated/src/Libraries/Asker/Asker.hpp +++ /dev/null @@ -1,65 +0,0 @@ -#pragma once -/* -* Asker is an internal Neoluma library for handling CLI input -*/ -#include -#include -#include "../Color/Color.hpp" -enum Key { NONE, UP, DOWN, ENTER, BACKSPACE }; - -#ifdef _WIN32 -#include -Key getKey(); -void enableRaw(); // do nothing on windows -void disableRaw(); -#else -#include -#include -static struct termios term; -void enableRaw(); -void disableRaw(); -Key getKey(); -#endif - -void clearBlock(int lines); - -namespace asker { - constexpr const char* Clear = "\033[0m\033[2J\033[H"; - - std::string input(const std::string& question, bool required=false); - - bool confirm(const std::string& question); - - template - std::string selectList(const std::string& question, const std::string (&options)[n]) { - enableRaw(); - - int pos = 0; - Key key = NONE; - int lines = n + 2; - - while (true) { - clearBlock(lines); - - std::cout << Color::TextHex("#75b5ff") << ">> " << question << '\n'; - - for (int i = 0; i < n; i++) { - if (i == pos) { - std::cout << Color::TextHex("#00ff48ffff") << "> " << Color::TextHex("#ff28e6") << options[i] << '\n'; - } - else { - std::cout << Color::TextHex("#ff28e6") << " " << options[i] << '\n'; - } - } - - key = getKey(); - if (key == UP && pos > 0) pos--; - else if (key == DOWN && pos < n - 1) pos++; - else if (key == ENTER) break; - } - - disableRaw(); - std::cout << Color::Reset << "\n"; - return options[pos]; - } -}; \ No newline at end of file diff --git a/deprecated/src/Libraries/Color/Color.cpp b/deprecated/src/Libraries/Color/Color.cpp deleted file mode 100644 index 8e60b55..0000000 --- a/deprecated/src/Libraries/Color/Color.cpp +++ /dev/null @@ -1,35 +0,0 @@ -#include "Color.hpp" -#include -#ifdef _WIN32 - #define Neoluma_sscanf sscanf_s -#else - #define Neoluma_sscanf sscanf -#endif - -namespace Color { - std::string TextRGB(uint8_t r, uint8_t g, uint8_t b) { - return std::format("\033[38;2;{};{};{}m", r, g, b); - } - - std::string BackgroundRGB(uint8_t r, uint8_t g, uint8_t b) { - return std::format("\033[48;2;{};{};{}m", r, g, b); - } - - std::string TextHex(const std::string& hex) { - unsigned int r, g, b; - if (hex[0] == '#') { - Neoluma_sscanf(hex.c_str(), "#%02x%02x%02x", &r, &g, &b); - return TextRGB(r, g, b); - } - return ""; - } - - std::string BackgroundHex(const std::string& hex) { - unsigned int r, g, b; - if (hex[0] == '#') { - Neoluma_sscanf(hex.c_str(), "#%02x%02x%02x", &r, &g, &b); - return BackgroundRGB(r, g, b); - } - return ""; - } -} \ No newline at end of file diff --git a/deprecated/src/Libraries/Color/Color.hpp b/deprecated/src/Libraries/Color/Color.hpp deleted file mode 100644 index da9a19c..0000000 --- a/deprecated/src/Libraries/Color/Color.hpp +++ /dev/null @@ -1,31 +0,0 @@ -#pragma once - -#include - -namespace Color { - std::string TextRGB(uint8_t r, uint8_t g, uint8_t b); - - std::string BackgroundRGB(uint8_t r, uint8_t g, uint8_t b); - - std::string TextHex(const std::string& hex); - - std::string BackgroundHex(const std::string& hex); - - namespace Effect { - constexpr std::string BoldOn = "\033[1m"; - constexpr std::string DimOn = "\033[2m"; - constexpr std::string UnderlineOn = "\033[4m"; - constexpr std::string BlinkOn = "\033[5m"; - constexpr std::string ReverseOn = "\033[7m"; - constexpr std::string HideOn = "\033[8m"; - - constexpr std::string BoldOff = "\033[21m"; - constexpr std::string DimOff = "\033[22m"; - constexpr std::string UnderlineOff = "\033[24m"; - constexpr std::string BlinkOff = "\033[25m"; - constexpr std::string ReverseOff = "\033[27m"; - constexpr std::string HideOff = "\033[28m"; - } - - constexpr std::string Reset = "\033[0m"; -} diff --git a/deprecated/src/Libraries/Utils/Types/Array.hpp b/deprecated/src/Libraries/Utils/Types/Array.hpp deleted file mode 100644 index 3b116f1..0000000 --- a/deprecated/src/Libraries/Utils/Types/Array.hpp +++ /dev/null @@ -1,31 +0,0 @@ -#pragma once - -#include -#include -#include -#include - -template -class Array { - std::vector data; -public: - Array() = default; - Array(std::initializer_list values) : data(values) {} - - void add(const T& value) { data.push_back(value); } - void add(T&& value) { data.push_back(std::move(value)); } - std::size_t len() const { return data.size(); } - void clear() { data.clear(); } - T& first() { return data[0]; } - T& last() { return data[data.size() - 1]; } - void reverse() { std::reverse(begin(), end()); } - bool empty() const { return data.empty(); } - T& operator[](std::size_t index) { return data[index]; } - const T& operator[](std::size_t index) const { return data[index]; } - - // evil ass rape functions - auto begin() const { return data.begin(); } - auto end() const { return data.end(); } - auto begin() { return data.begin(); } - auto end() { return data.end(); } -}; diff --git a/deprecated/src/Libraries/Utils/Types/Hashmap.hpp b/deprecated/src/Libraries/Utils/Types/Hashmap.hpp deleted file mode 100644 index 83a7c7e..0000000 --- a/deprecated/src/Libraries/Utils/Types/Hashmap.hpp +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once - -#include - -template -class HashMap { - std::unordered_map map; -public: - HashMap() = default; - - void set(K key, V value) { map[key] = value; } - V get(K key) const { return map.at(key); } - const V& get(const K& key) const { return map.at(key); } - V& operator[](K key) { return map[key]; } - - bool contains(K key) const { return map.find(key) != map.end(); } - bool empty() const { return map.empty(); } - void remove(const K& key) { map.erase(key); } - void clear() { map.clear(); } - size_t len() const { return map.size(); } -}; diff --git a/deprecated/src/Libraries/Utils/Types/String.cpp b/deprecated/src/Libraries/Utils/Types/String.cpp deleted file mode 100644 index 843c61a..0000000 --- a/deprecated/src/Libraries/Utils/Types/String.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include "String.hpp" - -String::String() = default; -String::String(const char* value) : str(value) {} -String::String(const std::string& value) : str(value) {} -String::String(std::string_view value) : str(value) {} - -String::operator const std::string&() const { return str; } -String::operator std::string&() { return str; } - -String& String::operator=(const std::string& value) { str = value; return *this; } -String& String::operator=(std::string&& value) { str = std::move(value); return *this; } -String& String::operator=(const char* value) { str = value; return *this; } -String& String::operator+=(const std::string& value) { str += value; return *this; } -String& String::operator+=(const char* value) { str += value; return *this; } -String& String::operator+=(char value) { str += value; return *this; } -bool String::operator==(const std::string& value) const { return str == value; } -bool String::operator!=(const std::string& value) const { return str != value; } -char& String::operator[](std::size_t index) { return str[index]; } -const char& String::operator[](std::size_t index) const { return str[index]; } - -std::size_t String::len() const { return str.length(); } -bool String::empty() const { return str.empty(); } -void String::clear() { str.clear(); } - -void String::trim() { str.erase(0, str.find_first_not_of(' ')); } - -Array String::split(char delimiter) const { - Array result; - String current; - for (const char c : str) { - if (c == delimiter) { - current.trim(); - result.add(current); - current.clear(); - } else current += c; - } - current.trim(); - result.add(current); - return result; -} diff --git a/deprecated/src/Libraries/Utils/Types/String.hpp b/deprecated/src/Libraries/Utils/Types/String.hpp deleted file mode 100644 index b3bbd0d..0000000 --- a/deprecated/src/Libraries/Utils/Types/String.hpp +++ /dev/null @@ -1,109 +0,0 @@ -#pragma once - -#include -#include -#include -#include -#include -#include -#include - -#include "Array.hpp" - -class String { - std::string str; - - template - String anyToStr(T&& v) { - std::ostringstream oss; - oss << std::forward(v); - return String(oss.str()); - } - - String formatStrVec(const std::string& value, const Array& args) { - String out; - size_t argCount = 0; - for (size_t i = 0; i < value.size(); i++) { - char c = value[i]; - if (c == '{') { - if (i + 1 >= value.size()) throw std::runtime_error("[Neoluma/String] Invalid '{'"); - char next = value[i + 1]; - if (next == '{') { out += '{'; i++; } - else { - size_t j = i + 1; - - // {} case - if (value[j] == '}') { - if (argCount >= args.len()) throw std::runtime_error("[Neoluma/String] Not enough format arguments"); - out += args[argCount++]; - i = j; - } - // {number} case - else if (isDigit(value[j])) { - size_t index = 0; - - while (j < value.size() && isDigit(value[j])) { - index = index * 10 + (value[j] - '0'); - j++; - } - - if (j >= value.size() || value[j] != '}') throw std::runtime_error("[Neoluma/String] Invalid positional format"); - if (index >= args.len()) throw std::runtime_error("[Neoluma/String] Positional argument out of range"); - - out += args[index]; - i = j; - } - else throw std::runtime_error("[Neoluma/String] Invalid '{'"); - } - } - else if (c == '}') { - if (i + 1 < value.size() && value[i + 1] == '}') { out += '}'; i++; } - else throw std::runtime_error("[Neoluma/String] Invalid '}'"); - } - else out += c; - } - if (argCount < args.len()) throw std::runtime_error("[Neoluma/String] Too many format arguments"); - return out; - } - - bool isDigit(char c) { return c >= '0' && c <= '9'; } -public: - String(); - String(const char* value); - String(const std::string& value); - String(std::string_view value); - // TODO for later: fix this, i absolutely hate how this looks - template - String(const std::string& value, Args&&... args) { - Array collectedArgs = { anyToStr(args)... }; - formatStrVec(value, collectedArgs); - } - String(const std::string& value, const Array& args) { formatStrVec(value, args); } - - String& operator=(const std::string& value); - String& operator=(std::string&& value); - String& operator=(const char* value); - String& operator+=(const std::string& value); - String& operator+=(const char* value); - String& operator+=(char value); - bool operator==(const std::string& value) const; - bool operator!=(const std::string& value) const; - char& operator[](std::size_t index); - const char& operator[](std::size_t index) const; - operator const std::string&() const; - operator std::string&(); - - std::size_t len() const; - bool empty() const; - void clear(); - - void trim(); - Array split(char delimiter) const; -}; - -namespace std { - template<> - struct hash { - size_t operator()(const String& value) const noexcept { return hash()(value); } - }; -} \ No newline at end of file diff --git a/deprecated/src/Libraries/Utils/Utils.hpp b/deprecated/src/Libraries/Utils/Utils.hpp deleted file mode 100644 index c128a04..0000000 --- a/deprecated/src/Libraries/Utils/Utils.hpp +++ /dev/null @@ -1,5 +0,0 @@ -#pragma once - -#include "Types/Array.hpp" -#include "Types/String.hpp" -#include "Types/Hashmap.hpp" \ No newline at end of file diff --git a/run.ps1 b/run.ps1 new file mode 100644 index 0000000..a21e258 --- /dev/null +++ b/run.ps1 @@ -0,0 +1 @@ +dotnet build && .\src\Neoluma.Compiler\bin\Debug\net10.0\neoluma.exe check --project "TestProject/TestProject.nlp" \ No newline at end of file diff --git a/src/Neoluma.Compiler/CLI/ArgumentParser.cs b/src/Neoluma.Compiler/CLI/ArgumentParser.cs new file mode 100644 index 0000000..2fcf40f --- /dev/null +++ b/src/Neoluma.Compiler/CLI/ArgumentParser.cs @@ -0,0 +1,34 @@ +namespace Neoluma.CLI; + +/// CLIArgs is a struct that allows me to parse CLI arguments +public struct CLIArgs { + public string command; // parses commands like new, build, run, check and help + public Dictionary options; // parses --arguments with_values.nlp + public List positional; // anything that is not an --argument + + /// Argument parsing + public static CLIArgs parseArgs(string[] args) { + CLIArgs arguments = new CLIArgs(); + if (args.Length > 0) arguments.command = args[0]; + + arguments.options = new(); arguments.positional = new(); + + for (int i = 1; i < args.Length; i++) { + string token = args[i]; + + if (token.StartsWith("--")) { + string key = token.Substring(2); + string value = ""; + + if (i + 1 < args.Length && !args[i + 1].StartsWith("--")) { + value = args[i + 1]; + i++; + } + + arguments.options[key] = value; + } + else arguments.positional.Add(token); + } + return arguments; + } +}; \ No newline at end of file diff --git a/src/Neoluma.Compiler/CLI/CLI.cs b/src/Neoluma.Compiler/CLI/CLI.cs new file mode 100644 index 0000000..3f70297 --- /dev/null +++ b/src/Neoluma.Compiler/CLI/CLI.cs @@ -0,0 +1,57 @@ +using Neoluma.Core.Extras; +using Neoluma.Libraries.Utils; + +namespace Neoluma.CLI; + +public static class CLI { + /// Compiles Neoluma program into target output + public static void build(string nlpFile) {} + /// Runs the code interpreted way. Useful for testing. + public static void run(string nlpFile) {} + /// Checks code on errors. Doesn't generate any binaries + public static void check(string nlpFile, bool jsonOutput = false) {} + /// Creates a project + public static void createProject(ProjectConfig config) {} + /// Creates a project (Without ProjectConfig) + public static void createProject() {} + + /// Help function that just tells details about compiler and it's CLI. + public static void printHelp() {} +} + +class Licenses { + private static string Apache = FileEmbed.readEmbeddedFile("LicenseTemplates.Apache"); + private static string BoostV1 = FileEmbed.readEmbeddedFile("LicenseTemplates.BoostV1"); + private static string BSDv2Simplified = FileEmbed.readEmbeddedFile("LicenseTemplates.BSDv2Simplified"); + private static string BSDv3NewRevised = FileEmbed.readEmbeddedFile("LicenseTemplates.BSDv3NewRevised"); + private static string CC0v1 = FileEmbed.readEmbeddedFile("LicenseTemplates.CC0v1"); + private static string EclipseV2 = FileEmbed.readEmbeddedFile("LicenseTemplates.EclipseV2"); + private static string GNUAGPLv3 = FileEmbed.readEmbeddedFile("LicenseTemplates.GNUAGPLv3"); + private static string GNUGPLv2 = FileEmbed.readEmbeddedFile("LicenseTemplates.GNUGPLv2"); + private static string GNUGPLv3 = FileEmbed.readEmbeddedFile("LicenseTemplates.GNUGPLv3"); + private static string GNULGPLv2_1 = FileEmbed.readEmbeddedFile("LicenseTemplates.GNULGPLv2_1"); + private static string MIT = FileEmbed.readEmbeddedFile("LicenseTemplates.MIT"); + private static string MozillaV2 = FileEmbed.readEmbeddedFile("LicenseTemplates.MozillaV2"); + private static string Unlicense = FileEmbed.readEmbeddedFile("LicenseTemplates.Unlicense"); + + /// Available identifiers: mit, apache, gpl2, gpl3, bsd2, bsd3, boost, cc0, eclipse, agpl, lgpl, mozilla, unlicense. Otherwise returns specific message + public static string getLicenseText(ProjectConfig config, string license) { + switch (config.license) { + case "mit": return String.Format(MIT, DateTime.Today.Year, ProjectConfig.listAuthors(config.author)); + case "apache": return Apache; + case "gpl2": return GNUGPLv2; + case "gpl3": return GNUGPLv3; + case "bsd2": return String.Format(BSDv2Simplified, DateTime.Today.Year, ProjectConfig.listAuthors(config.author)); + case "bsd3": return String.Format(BSDv3NewRevised, DateTime.Today.Year, ProjectConfig.listAuthors(config.author)); + case "boost": return BoostV1; + case "cc0": return CC0v1; + case "eclipse": return EclipseV2; + case "agpl": return GNUAGPLv3; + case "lgpl": return GNULGPLv2_1; + case "mozilla": return MozillaV2; + case "unlicense": return Unlicense; + default: return "We haven't found licenses for your case. Please delete this text and insert your license here, or delete the license file completely."; + } + } +} + diff --git a/deprecated/src/CLI/LicenseTemplates/Apache.txt b/src/Neoluma.Compiler/CLI/LicenseTemplates/Apache.txt similarity index 100% rename from deprecated/src/CLI/LicenseTemplates/Apache.txt rename to src/Neoluma.Compiler/CLI/LicenseTemplates/Apache.txt diff --git a/deprecated/src/CLI/LicenseTemplates/BSDv2Simplified.txt b/src/Neoluma.Compiler/CLI/LicenseTemplates/BSDv2Simplified.txt similarity index 100% rename from deprecated/src/CLI/LicenseTemplates/BSDv2Simplified.txt rename to src/Neoluma.Compiler/CLI/LicenseTemplates/BSDv2Simplified.txt diff --git a/deprecated/src/CLI/LicenseTemplates/BSDv3NewRevised.txt b/src/Neoluma.Compiler/CLI/LicenseTemplates/BSDv3NewRevised.txt similarity index 100% rename from deprecated/src/CLI/LicenseTemplates/BSDv3NewRevised.txt rename to src/Neoluma.Compiler/CLI/LicenseTemplates/BSDv3NewRevised.txt diff --git a/deprecated/src/CLI/LicenseTemplates/BoostV1.txt b/src/Neoluma.Compiler/CLI/LicenseTemplates/BoostV1.txt similarity index 100% rename from deprecated/src/CLI/LicenseTemplates/BoostV1.txt rename to src/Neoluma.Compiler/CLI/LicenseTemplates/BoostV1.txt diff --git a/deprecated/src/CLI/LicenseTemplates/CC0v1.txt b/src/Neoluma.Compiler/CLI/LicenseTemplates/CC0v1.txt similarity index 100% rename from deprecated/src/CLI/LicenseTemplates/CC0v1.txt rename to src/Neoluma.Compiler/CLI/LicenseTemplates/CC0v1.txt diff --git a/deprecated/src/CLI/LicenseTemplates/EclipseV2.txt b/src/Neoluma.Compiler/CLI/LicenseTemplates/EclipseV2.txt similarity index 100% rename from deprecated/src/CLI/LicenseTemplates/EclipseV2.txt rename to src/Neoluma.Compiler/CLI/LicenseTemplates/EclipseV2.txt diff --git a/deprecated/src/CLI/LicenseTemplates/GNUAGPLv3.txt b/src/Neoluma.Compiler/CLI/LicenseTemplates/GNUAGPLv3.txt similarity index 100% rename from deprecated/src/CLI/LicenseTemplates/GNUAGPLv3.txt rename to src/Neoluma.Compiler/CLI/LicenseTemplates/GNUAGPLv3.txt diff --git a/deprecated/src/CLI/LicenseTemplates/GNUGPLv2.txt b/src/Neoluma.Compiler/CLI/LicenseTemplates/GNUGPLv2.txt similarity index 100% rename from deprecated/src/CLI/LicenseTemplates/GNUGPLv2.txt rename to src/Neoluma.Compiler/CLI/LicenseTemplates/GNUGPLv2.txt diff --git a/deprecated/src/CLI/LicenseTemplates/GNUGPLv3.txt b/src/Neoluma.Compiler/CLI/LicenseTemplates/GNUGPLv3.txt similarity index 100% rename from deprecated/src/CLI/LicenseTemplates/GNUGPLv3.txt rename to src/Neoluma.Compiler/CLI/LicenseTemplates/GNUGPLv3.txt diff --git a/deprecated/src/CLI/LicenseTemplates/GNULGPLv2_1.txt b/src/Neoluma.Compiler/CLI/LicenseTemplates/GNULGPLv2_1.txt similarity index 100% rename from deprecated/src/CLI/LicenseTemplates/GNULGPLv2_1.txt rename to src/Neoluma.Compiler/CLI/LicenseTemplates/GNULGPLv2_1.txt diff --git a/deprecated/src/CLI/LicenseTemplates/MIT.txt b/src/Neoluma.Compiler/CLI/LicenseTemplates/MIT.txt similarity index 100% rename from deprecated/src/CLI/LicenseTemplates/MIT.txt rename to src/Neoluma.Compiler/CLI/LicenseTemplates/MIT.txt diff --git a/deprecated/src/CLI/LicenseTemplates/MozillaV2.txt b/src/Neoluma.Compiler/CLI/LicenseTemplates/MozillaV2.txt similarity index 100% rename from deprecated/src/CLI/LicenseTemplates/MozillaV2.txt rename to src/Neoluma.Compiler/CLI/LicenseTemplates/MozillaV2.txt diff --git a/deprecated/src/CLI/LicenseTemplates/Unlicense.txt b/src/Neoluma.Compiler/CLI/LicenseTemplates/Unlicense.txt similarity index 100% rename from deprecated/src/CLI/LicenseTemplates/Unlicense.txt rename to src/Neoluma.Compiler/CLI/LicenseTemplates/Unlicense.txt diff --git a/src/Neoluma.Compiler/Core/Compiler.cs b/src/Neoluma.Compiler/Core/Compiler.cs new file mode 100644 index 0000000..d17b94a --- /dev/null +++ b/src/Neoluma.Compiler/Core/Compiler.cs @@ -0,0 +1,25 @@ +namespace Neoluma.Core; + +/// Compiler settings for the project tell the compiler what to set up before building +public class CompilerSettings { + ///Verbose is an option that allows extra keywords, syntactic sugar. Not recommended for people who loves keeping shape of a language. Recommended for people who don't give a heck and love copypasting answers from StackOverflow. + ///
true - enables this option + ///
false - disables this option + public bool verbose = false; + + ///Baremetal is an option that toggles the ability to develop software for bare metal hardware. It disables platform-based ABI (including std) and compiles into binary. + ///
true - enables this option + ///
false - disables this option + public bool baremetal = false; + + public class Memory { + public enum MemoryOptions { None, Rusty, ARC, Default }; + + ///level is an option of Memory class that goes through types of Memory options and, depending on chosen option, will manage the memory in the application the preferred way. + ///
Default - enables default Garbage Collector (Java, C#, others) + ///
ARC - enables Automatic Reference Counter (Python, JS, others) + ///
Rusty - enables Borrow Checker (Rust) + ///
None - No memory management tools (C, C++, maybe others) + public MemoryOptions level = MemoryOptions.Default; + }; +} \ No newline at end of file diff --git a/src/Neoluma.Compiler/Core/Extras/ProjectManager.cs b/src/Neoluma.Compiler/Core/Extras/ProjectManager.cs new file mode 100644 index 0000000..031b1fa --- /dev/null +++ b/src/Neoluma.Compiler/Core/Extras/ProjectManager.cs @@ -0,0 +1,60 @@ +namespace Neoluma.Core.Extras; + +public sealed class PlatformTarget { + private enum Platform { Windows, Linux, MacOS, iOS, Android, Other }; + private Platform platform; + private string arch; // x86_64, arm64, wasm32 + + public string toString() { + string s = arch + "-"; + + switch (platform) { + case Platform.Windows: s += "windows"; break; + case Platform.Linux: s += "linux"; break; + case Platform.MacOS: s += "macos"; break; + case Platform.iOS: s += "ios"; break; + case Platform.Android: s += "android"; break; + default: s += "unknown"; break; + } + + return s; + } +}; + +/// ProjectConfig is a class that allows me to determine project structure. +public class ProjectConfig { + public string name = "Untitled Project"; + public string version = "1.0.0"; + public List author = new(){ "Untitled Author" }; + public required List targets; + public string license = "mit"; + public string output = "exe"; + public string sourceFolder = "src/"; + public string buildFolder = "build/"; + public Dictionary? dependencies; + public Dictionary? tasks; + public Dictionary? tests; + public Dictionary? languagePacks; + + public CompilerSettings? settings; + public required List filesList; // List of files inside the project to feed to compiler. + public required string sourcePath; // Absolute path to locate the project + + + // Lists authors by comma. If author is only mentioned once, just author name is inputted + public static string listAuthors(List authors) { + string authorList = ""; + bool first = true; + + foreach (string author in authors) { + string name = author.Trim(); + if (name.Length == 0) continue; + + if (!first) authorList += ", "; + authorList += name; + first = false; + } + + return authorList; + } +}; \ No newline at end of file diff --git a/deprecated/src/IntrinsicModules/std/LICENSE b/src/Neoluma.Compiler/IntrinsicModules/std/LICENSE similarity index 100% rename from deprecated/src/IntrinsicModules/std/LICENSE rename to src/Neoluma.Compiler/IntrinsicModules/std/LICENSE diff --git a/deprecated/src/IntrinsicModules/std/src/fs.nm b/src/Neoluma.Compiler/IntrinsicModules/std/src/fs.nm similarity index 100% rename from deprecated/src/IntrinsicModules/std/src/fs.nm rename to src/Neoluma.Compiler/IntrinsicModules/std/src/fs.nm diff --git a/deprecated/src/IntrinsicModules/std/src/io.nm b/src/Neoluma.Compiler/IntrinsicModules/std/src/io.nm similarity index 100% rename from deprecated/src/IntrinsicModules/std/src/io.nm rename to src/Neoluma.Compiler/IntrinsicModules/std/src/io.nm diff --git a/deprecated/src/IntrinsicModules/std/src/iter.nm b/src/Neoluma.Compiler/IntrinsicModules/std/src/iter.nm similarity index 100% rename from deprecated/src/IntrinsicModules/std/src/iter.nm rename to src/Neoluma.Compiler/IntrinsicModules/std/src/iter.nm diff --git a/deprecated/src/IntrinsicModules/std/src/math.nm b/src/Neoluma.Compiler/IntrinsicModules/std/src/math.nm similarity index 100% rename from deprecated/src/IntrinsicModules/std/src/math.nm rename to src/Neoluma.Compiler/IntrinsicModules/std/src/math.nm diff --git a/deprecated/src/IntrinsicModules/std/src/random.nm b/src/Neoluma.Compiler/IntrinsicModules/std/src/random.nm similarity index 100% rename from deprecated/src/IntrinsicModules/std/src/random.nm rename to src/Neoluma.Compiler/IntrinsicModules/std/src/random.nm diff --git a/deprecated/src/IntrinsicModules/std/src/time.nm b/src/Neoluma.Compiler/IntrinsicModules/std/src/time.nm similarity index 100% rename from deprecated/src/IntrinsicModules/std/src/time.nm rename to src/Neoluma.Compiler/IntrinsicModules/std/src/time.nm diff --git a/deprecated/src/IntrinsicModules/std/std.nlp b/src/Neoluma.Compiler/IntrinsicModules/std/std.nlp similarity index 100% rename from deprecated/src/IntrinsicModules/std/std.nlp rename to src/Neoluma.Compiler/IntrinsicModules/std/std.nlp diff --git a/src/Neoluma.Compiler/Libraries/Asker.cs b/src/Neoluma.Compiler/Libraries/Asker.cs new file mode 100644 index 0000000..8f72273 --- /dev/null +++ b/src/Neoluma.Compiler/Libraries/Asker.cs @@ -0,0 +1,56 @@ +/* + * Asker is an internal Neoluma library for handling CLI input + */ + +namespace Neoluma.Libraries; + +public static class Asker { + private static void clearBlock(int lines) { + for (int i = 0; i < lines; i++) Console.Write("\u001b[1A\u001b[2K\r"); + } + + public static string input(string question, bool required = false) { + Console.Write($"{Color.TextHex("#75b5ff")}>> {question} {Color.TextHex("#ff28e6")}"); + while (true) { + string? response = Console.ReadLine(); + if (!required) { Console.Write(Color.Reset); + return response ?? ""; + } + if (!string.IsNullOrEmpty(response)) { Console.Write(Color.Reset); + return response; + } + } + } + + public static bool confirm(string question) { + bool result = true; + string response = input($"{question} {Color.TextHex("#e84b85")} (y/n) {Color.TextHex("#ff28e6")}"); + if (response != "y" && response != "Y") result = false; + Console.Write(Color.Reset); + return result; + } + + public static string selectList(string question, List options) { + int pos = 0; + int lines = options.Count + 2; + + while (true) { + clearBlock(lines); + + Console.WriteLine($"{Color.TextHex("#75b5ff")}>> {question}"); + + for (int i = 0; i < options.Count; i++) { + if (i == pos) Console.WriteLine($"{Color.TextHex("#00ff48")}> {Color.TextHex("#ff28e6")}{options[i]}"); + else Console.WriteLine($"{Color.TextHex("#ff28e6")} {options[i]}"); + } + + ConsoleKey key = Console.ReadKey(true).Key; + if ((key == ConsoleKey.UpArrow || key == ConsoleKey.NumPad8 || key == ConsoleKey.W) && pos > 0) pos--; + else if ((key == ConsoleKey.DownArrow || key == ConsoleKey.NumPad2 || key == ConsoleKey.S) && pos < options.Count - 1) pos++; + else if (key == ConsoleKey.Enter) break; + } + + Console.WriteLine(Color.Reset); + return options[pos]; + } +} \ No newline at end of file diff --git a/src/Neoluma.Compiler/Libraries/Color.cs b/src/Neoluma.Compiler/Libraries/Color.cs new file mode 100644 index 0000000..a5db5fb --- /dev/null +++ b/src/Neoluma.Compiler/Libraries/Color.cs @@ -0,0 +1,47 @@ +/* + * Color is an internal Neoluma library used for handling terminal colors + */ +namespace Neoluma.Libraries; + +public static class Color { + public static string TextRGB(int r, int g, int b) => $"\u001b[38;2;{r};{g};{b}m"; + public static string BackgroundRGB(int r, int g, int b) => $"\u001b[48;2;{r};{g};{b}m"; + + public static string TextHex(string hex) { + if (hex.StartsWith("#")) { + int r = Convert.ToInt32(hex.Substring(1, 2), 16); + int g = Convert.ToInt32(hex.Substring(3, 2), 16); + int b = Convert.ToInt32(hex.Substring(5, 2), 16); + return TextRGB(r, g, b); + } + return ""; + } + + public static string BackgroundHex(string hex) { + if (hex.StartsWith("#")) { + int r = Convert.ToInt32(hex.Substring(1, 2), 16); + int g = Convert.ToInt32(hex.Substring(3, 2), 16); + int b = Convert.ToInt32(hex.Substring(5, 2), 16); + return BackgroundRGB(r, g, b); + } + return ""; + } + + public static class Effect { + public static string BoldOn = "\u001b[1m"; + public static string DimOn = "\u001b[2m"; + public static string UnderlineOn = "\u001b[4m"; + public static string BlinkOn = "\u001b[5m"; + public static string ReverseOn = "\u001b[7m"; + public static string HideOn = "\u001b[8m"; + + public static string BoldOff = "\u001b[21m"; + public static string DimOff = "\u001b[22m"; + public static string UnderlineOff = "\u001b[24m"; + public static string BlinkOff = "\u001b[25m"; + public static string ReverseOff = "\u001b[27m"; + public static string HideOff = "\u001b[28m"; + } + + public static string Reset = "\u001b[0m"; +} diff --git a/src/Neoluma.Compiler/Libraries/JSON.cs b/src/Neoluma.Compiler/Libraries/JSON.cs new file mode 100644 index 0000000..4ab4d51 --- /dev/null +++ b/src/Neoluma.Compiler/Libraries/JSON.cs @@ -0,0 +1,376 @@ +/* + * Json is an internal Neoluma library that allows to read or write JSON data (with comments) + +Quick usage + +1) Parse JSON / JSONC +-------------------- +JSON.Value root = JSON.parse(text); +// or +JSON.Value root = JSON.parseFile("config.jsonc"); + +Throws JSON.ParseError on invalid input (never loops or hangs). + +2) Read values (safe pattern) +----------------------------- +if (root.isObject()) { + string name = root["name"].isString() + ? root["name"].asString() + : "default"; + + int w = (root["window"].isObject() && root["window"]["w"].isInt()) + ? (int)root["window"]["w"].asInt() + : 800; +} + +3) Modify / create values +------------------------- +root["enabled"] = true; +root["count"] = Console.ToInt64(42); +root["list"] = JSON.Array{ 1, 2, 3 }; + +JSON.Object obj; +obj.add("a", 1); +obj.add("b", "text"); +root["sub"] = obj; + +4) Comments +----------- +root.commentsBefore.add("Root comment"); +root["enabled"].commentsBefore.add("Toggle feature"); +root["enabled"].commentsAfter = "do not touch"; + +5) Write back +------------- +string out = JSON.stringify(root, { + pretty = true, + emit_comments = true +}); + +// or +JSON.writeFile("out.jsonc", root); + +Notes: +- Supports // and /.* *./ comments (without dots) +- Supports trailing commas +- Supports single-quoted strings +- Duplicate keys: last one wins +- Always throws on invalid JSON (no infinite loops) +*/ +namespace Neoluma.Libraries; + +public static class JSON { + // ====== Error ====== + class ParseError : Exception { + public int line { get; } + public int col { get; } + + public ParseError(string message, int line, int col) + : base($"{message} at line {line}, col {col}") { this.line = line; this.col = col; } + } + + // a pair of key and value + public class Property { public string Key; public Value Value; } + + // Custom JSON types + public class Array : List {} + public class Object : List {} + + // ====== JSON Value ====== + public class Value { + // Comment strings attached to this node + List commentsBefore = new(); + List commentsAfter = new(); + + // int (long) | string | bool | double | Array | Object + private object? storage; + + // Constructors + public Value() { storage = null; } + public Value(long i) { storage = i; } + public Value(string s) { storage = s; } + public Value(bool b) { storage = b; } + public Value(double d) { storage = d; } + public Value(Array array) { storage = array; } + public Value(Object obj) { storage = obj; } + + // Type checks + bool isNull() { return storage == null; } + bool isInt() { return storage is long; } + bool isBool() { return storage is bool; } + bool isDouble() { return storage is double; } + bool isString() { return storage is string; } + bool isArray() { return storage is Array; } + bool isObject() { return storage is Object; } + } + + // Convenience indexing + //public Value this[string key] { get; set; } // creates if missing + //public Value this[int index] { get; set; } // returns null Value if missing + + // ====== Parsing Options ====== + public class ParseOptions { + public bool allowComments = true; + public bool allowTrailingCommas = true; // [1,2,] { "a":1, } + public bool allowBom = true; // UTF-8 BOM + public bool allowSingleQuotes = true; + public bool duplicateKeysLastWins = true; + } + + // ====== Stringifying Options ====== + public class StringifyOptions { + public bool pretty = true; + public int indent = 2; + public bool emitComments = true; + public bool escapeNonASCII = false; // if true, escape real Unicode as \uXXXX / surrogate pairs + public bool sortKeys = false; // optional stable output + } + + // ====== Main API ====== + public static Value parse(string text, ParseOptions? options = null) {} + public static Value parseFile(string filePath, ParseOptions? options = null) {} + public static string stringify(Value value, StringifyOptions? options = null) {} + public static void writeFile(string filePath, Value value, StringifyOptions? options = null) {} + + // ====== Lexer (needed for parser) ====== + enum TokenType {Integer, String, Boolean, Double, Identifier, Null, Comment, Delimiter, Newline, Unknown, EndOfFile} + + struct Token { + public readonly TokenType type; + public readonly string token; + public readonly int line; + public readonly int col; + + public Token(TokenType type, string token, int line, int col) { + this.type = type; + this.token = token; + this.line = line; + this.col = col; + } + } + + class Lexer { + private string src; + private int line = 1; + private int col = 1; + private int pos; + + // Helper + char curChar() { return peek(); } + char move() { + char c = src[pos++]; + if (c=='\n') { line++; col = 1; } + else col++; + return c; + } + char peek(int offset = 0) { + int index = pos + offset; + return index < src.Length ? src[index] : '\0'; + } + bool isAtEnd() { return pos >= src.Length; } + // meant for watching strings from ahead + bool match(string text) { + if (pos + text.Length > src.Length) return false; + return src.Substring(pos, text.Length) == text; + } + + // Main function + public List tokenize(string source) { + src = source; + List tokens = new(); + + char[] delimiters = ['{', '}', '[', ']', ':', ',']; + + while (!isAtEnd()) { + char c = curChar(); + + if (c == '\n') { + int sl = line; + int sc = col; + move(); + tokens.Add(new Token(TokenType.Newline, "\\n", sl, sc)); + } + else if (char.IsWhiteSpace(c) && c == ' ') move(); + else if (char.IsDigit(c) || c == '.' || c == '+' || c == '-' + || match("Infinity") || match("NaN")) lexNumber(tokens); + else if (c == '"' || c == '\'') lexString(tokens); + else if (delimiters.Contains(c)) { + int sl = line; int sc = col; + tokens.Add(new Token(TokenType.Delimiter, move().ToString(), sl, sc)); + } + else if (c == '/') lexComment(tokens); + else if (char.IsLetter(c) || c == '_' || c == '$') lexIdentifier(tokens); + else tokens.Add(new Token(TokenType.Unknown, move().ToString(), line, col)); + } + + tokens.Add(new Token(TokenType.EndOfFile, "", line, col)); + return tokens; + } + + void lexNumber(List tokens) { + int sl = line; int sc = col; + string number = ""; + bool isFloat = false; + + // Optional sign + if (!isAtEnd() && (curChar() == '+' || curChar() == '-')) number += move(); + + // Infinity | -Infinity + if (match("Infinity")) { + number += move(); + for (int i = 0; i < 7; i++) number += move(); + tokens.Add(new Token(TokenType.Double, number, sl, sc)); + return; + } + + // NaN + if (match("NaN")) { + number += move(); + for (int i = 0; i < 2; i++) number += move(); + tokens.Add(new Token(TokenType.Double, number, sl, sc)); + return; + } + + // Hexadecimal numbers + if (pos + 1 < src.Length && curChar() == '0' && src[pos + 1] == 'x') { + number += move(); number += move(); // 0x + if (!char.IsAsciiHexDigit(curChar())) throw new ParseError("Haven't found a hexadecimal digit after 'x'", sl, sc); + while (!isAtEnd() && char.IsAsciiHexDigit(curChar())) number += move(); + tokens.Add(new Token(TokenType.Integer, number, sl, sc)); + return; + } + + // Digits + while (!isAtEnd() && char.IsDigit(curChar())) number += move(); + + // Floating point numbers + if (!isAtEnd() && curChar() == '.') { + isFloat = true; + + bool digitBeforeDot = false; + if (number.Length != 0 && char.IsBetween(number.Last(), '0', '9')) digitBeforeDot = true; + number += move(); // '.' + + if (!digitBeforeDot && (isAtEnd() || !char.IsDigit(curChar()))) + throw new ParseError("A number value has only a dot", sl, sc); + while (!isAtEnd() && char.IsDigit(curChar())) number += move(); + } + + // Exponents + if (!isAtEnd() && (curChar() == 'e' || curChar() == 'E')) { + isFloat = true; + number += move(); + + if (!isAtEnd() && (curChar() == '+' || curChar() == '-')) number += move(); + if (isAtEnd() || !char.IsDigit(curChar())) + throw new ParseError("Number's exponent has no degree", sl, sc); + + while (!isAtEnd() && char.IsDigit(curChar())) number += move(); + } + + // If number is nothing but a sign + if (number == "+" || number == "-") throw new ParseError("Number doesn't have any digit but a positive or a negative sign", sl, sc); + + tokens.Add(new Token(isFloat ? TokenType.Double : TokenType.Integer, number, sl, sc)); + } + + void lexString(List tokens) { + int sl = line; int sc = col; + string str = ""; + char openingQuote = curChar(); + move(); + + while (!isAtEnd()) { + if (curChar() == '\\') { + str += move(); + if (!isAtEnd()) str += move(); + continue; + } + if (curChar() == openingQuote) { + move(); + tokens.Add(new Token(TokenType.String, str, sl, sc)); + return; + } + if (curChar() == '\n') throw new ParseError("No backslash character before newline", sl, sc); + str += move(); + } + + throw new ParseError("String doesn't have any closing quote", sl, sc); + } + + void lexComment(List tokens) { + int sl = line; int sc = col; + string comment = ""; + move(); + + // Single-line comment + if (!isAtEnd() && curChar() == '/') { + move(); + while (!isAtEnd() && curChar() != '\n') comment += move(); + + tokens.Add(new Token(TokenType.Comment, comment, sl, sc)); + return; + } + + // Multi-line comment + if (!isAtEnd() && curChar() == '*') { + move(); + while (!isAtEnd()) { + if (curChar() == '*' && peek(1) == '/') { + move(); move(); + tokens.Add(new Token(TokenType.Comment, comment, sl, sc)); + return; + } + + comment += move(); + } + throw new ParseError("Unterminated comment", sl, sc); + } + + throw new ParseError("Expected comment after '/'", sl, sc); + } + + void lexIdentifier(List tokens) { + int sl = line; int sc = col; + string value = ""; + + while (!isAtEnd() && (char.IsLetterOrDigit(curChar()) || curChar() == '_' || curChar() == '$')) + value += move(); + + if (value == "true" || value == "false") tokens.Add(new Token(TokenType.Boolean, value, sl, sc)); + else if (value == "null") tokens.Add(new Token(TokenType.Null, value, sl, sc)); + else tokens.Add(new Token(TokenType.Identifier, value, sl, sc)); + } + } +} + // ====== Parser ====== + // class JSONParser { + // private Object root; + // private ParseOptions parseOptions; + // private string source; + // private int pos = 0; + // + // // Main function + // void parseRoot(string text, ParseOptions? options) { + // root = new(); + // parseOptions = options ?? new(); + // source = text; + // + // if (source.StartsWith("[")) parseArray(); + // else if (source.StartsWith("{")) parseObject(); + // } + // + // // Parse JSON types + // void parseInt() {} + // void parseBool() {} + // void parseDouble() {} + // void parseString() {} + // void parseArray() { + // pos++; + // while (pos < source.Length || source[pos] == ']') { + // + // } + // if (source[pos] != ']') throw ParseError("") + // } + // void parseObject() {} + // } \ No newline at end of file diff --git a/src/Neoluma.Compiler/Libraries/Utils/FileEmbed.cs b/src/Neoluma.Compiler/Libraries/Utils/FileEmbed.cs new file mode 100644 index 0000000..dadd909 --- /dev/null +++ b/src/Neoluma.Compiler/Libraries/Utils/FileEmbed.cs @@ -0,0 +1,15 @@ +using System.Text; + +namespace Neoluma.Libraries.Utils; + +public class FileEmbed { + public static string readEmbeddedFile(string name) { + var assembly = typeof(Program).Assembly; + + using Stream stream = assembly.GetManifestResourceStream(name) + ?? throw new InvalidOperationException($"Embedded resource not found: {name}"); + + using var reader = new StreamReader(stream, Encoding.UTF8); + return reader.ReadToEnd(); + } +} \ No newline at end of file diff --git a/deprecated/src/Localization/CLI/ar_SA.jsonc b/src/Neoluma.Compiler/Localization/CLI/ar_SA.jsonc similarity index 100% rename from deprecated/src/Localization/CLI/ar_SA.jsonc rename to src/Neoluma.Compiler/Localization/CLI/ar_SA.jsonc diff --git a/deprecated/src/Localization/CLI/de_DE.jsonc b/src/Neoluma.Compiler/Localization/CLI/de_DE.jsonc similarity index 100% rename from deprecated/src/Localization/CLI/de_DE.jsonc rename to src/Neoluma.Compiler/Localization/CLI/de_DE.jsonc diff --git a/deprecated/src/Localization/CLI/en_US.jsonc b/src/Neoluma.Compiler/Localization/CLI/en_US.jsonc similarity index 100% rename from deprecated/src/Localization/CLI/en_US.jsonc rename to src/Neoluma.Compiler/Localization/CLI/en_US.jsonc diff --git a/deprecated/src/Localization/CLI/it_IT.jsonc b/src/Neoluma.Compiler/Localization/CLI/it_IT.jsonc similarity index 100% rename from deprecated/src/Localization/CLI/it_IT.jsonc rename to src/Neoluma.Compiler/Localization/CLI/it_IT.jsonc diff --git a/deprecated/src/Localization/CLI/ru_RU.jsonc b/src/Neoluma.Compiler/Localization/CLI/ru_RU.jsonc similarity index 100% rename from deprecated/src/Localization/CLI/ru_RU.jsonc rename to src/Neoluma.Compiler/Localization/CLI/ru_RU.jsonc diff --git a/deprecated/src/Localization/ErrorManager/en_US.jsonc b/src/Neoluma.Compiler/Localization/ErrorManager/en_US.jsonc similarity index 100% rename from deprecated/src/Localization/ErrorManager/en_US.jsonc rename to src/Neoluma.Compiler/Localization/ErrorManager/en_US.jsonc diff --git a/deprecated/src/Localization/ErrorManager/ru_RU.jsonc b/src/Neoluma.Compiler/Localization/ErrorManager/ru_RU.jsonc similarity index 100% rename from deprecated/src/Localization/ErrorManager/ru_RU.jsonc rename to src/Neoluma.Compiler/Localization/ErrorManager/ru_RU.jsonc diff --git a/deprecated/src/Localization/Libraries/ar_SA.jsonc b/src/Neoluma.Compiler/Localization/Libraries/ar_SA.jsonc similarity index 100% rename from deprecated/src/Localization/Libraries/ar_SA.jsonc rename to src/Neoluma.Compiler/Localization/Libraries/ar_SA.jsonc diff --git a/deprecated/src/Localization/Libraries/de_DE.jsonc b/src/Neoluma.Compiler/Localization/Libraries/de_DE.jsonc similarity index 100% rename from deprecated/src/Localization/Libraries/de_DE.jsonc rename to src/Neoluma.Compiler/Localization/Libraries/de_DE.jsonc diff --git a/deprecated/src/Localization/Libraries/en_US.jsonc b/src/Neoluma.Compiler/Localization/Libraries/en_US.jsonc similarity index 100% rename from deprecated/src/Localization/Libraries/en_US.jsonc rename to src/Neoluma.Compiler/Localization/Libraries/en_US.jsonc diff --git a/deprecated/src/Localization/Libraries/ru_RU.jsonc b/src/Neoluma.Compiler/Localization/Libraries/ru_RU.jsonc similarity index 100% rename from deprecated/src/Localization/Libraries/ru_RU.jsonc rename to src/Neoluma.Compiler/Localization/Libraries/ru_RU.jsonc diff --git a/src/Neoluma.Compiler/Neoluma.Compiler.csproj b/src/Neoluma.Compiler/Neoluma.Compiler.csproj new file mode 100644 index 0000000..4e48ef3 --- /dev/null +++ b/src/Neoluma.Compiler/Neoluma.Compiler.csproj @@ -0,0 +1,40 @@ + + + Exe + net10.0 + + Neoluma + neoluma + + enable + enable + latest + + + + true + true + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Neoluma.Compiler/Program.cs b/src/Neoluma.Compiler/Program.cs new file mode 100644 index 0000000..263d818 --- /dev/null +++ b/src/Neoluma.Compiler/Program.cs @@ -0,0 +1,20 @@ +using Neoluma.CLI; +using Neoluma.Libraries; + +class Program { + public static void Main(string[] args) { + CLIArgs arguments = CLIArgs.parseArgs(args); + + switch (arguments.command) { + case "new": break; + case "build": break; + case "run": break; + case "check": break; + case "version": break; + default: CLI.printHelp(); break; + } + + Console.WriteLine($"{Color.TextHex("#34FF25")} Hello! {Color.Reset}"); + } +} +