From 03c19ddeaaa83010ded131e4e81da885ba7495e4 Mon Sep 17 00:00:00 2001 From: Krzosa Karol Date: Fri, 26 Aug 2022 21:54:02 +0200 Subject: [PATCH] Rename files --- build.bat | 2 +- ast.cpp => core_ast.cpp | 0 ...language.cpp => core_codegen_c_language.cpp | 0 compiler.cpp => core_compiler.cpp | 0 compiler.h => core_compiler.h | 0 lexing.cpp => core_lexing.cpp | 0 main.cpp => core_main.cpp | 18 +++++++++--------- parsing.cpp => core_parsing.cpp | 0 typechecking.cpp => core_typechecking.cpp | 0 typechecking.h => core_typechecking.h | 0 types.h => core_types.h | 0 11 files changed, 10 insertions(+), 10 deletions(-) rename ast.cpp => core_ast.cpp (100%) rename codegen_c_language.cpp => core_codegen_c_language.cpp (100%) rename compiler.cpp => core_compiler.cpp (100%) rename compiler.h => core_compiler.h (100%) rename lexing.cpp => core_lexing.cpp (100%) rename main.cpp => core_main.cpp (96%) rename parsing.cpp => core_parsing.cpp (100%) rename typechecking.cpp => core_typechecking.cpp (100%) rename typechecking.h => core_typechecking.h (100%) rename types.h => core_types.h (100%) diff --git a/build.bat b/build.bat index eca77c3..09b7810 100644 --- a/build.bat +++ b/build.bat @@ -4,5 +4,5 @@ pushd %~dp0 rem cl main.cpp -I.. user32.lib -clang main.cpp -O0 -Wall -Wno-unused-function -fno-exceptions -fdiagnostics-absolute-paths -g -o main.exe -Wl,user32.lib +clang core_main.cpp -O0 -Wall -Wno-unused-function -fno-exceptions -fdiagnostics-absolute-paths -g -o main.exe -Wl,user32.lib popd diff --git a/ast.cpp b/core_ast.cpp similarity index 100% rename from ast.cpp rename to core_ast.cpp diff --git a/codegen_c_language.cpp b/core_codegen_c_language.cpp similarity index 100% rename from codegen_c_language.cpp rename to core_codegen_c_language.cpp diff --git a/compiler.cpp b/core_compiler.cpp similarity index 100% rename from compiler.cpp rename to core_compiler.cpp diff --git a/compiler.h b/core_compiler.h similarity index 100% rename from compiler.h rename to core_compiler.h diff --git a/lexing.cpp b/core_lexing.cpp similarity index 100% rename from lexing.cpp rename to core_lexing.cpp diff --git a/main.cpp b/core_main.cpp similarity index 96% rename from main.cpp rename to core_main.cpp index f8a3140..ecd3f6b 100644 --- a/main.cpp +++ b/core_main.cpp @@ -104,15 +104,15 @@ For modules it's a bit different cause they should be distributed as valid. #include "base_unicode.cpp" #include "os_windows.cpp" #include "c3_big_int.cpp" -#include "compiler.h" -#include "lexing.cpp" -#include "types.h" -#include "ast.cpp" -#include "parsing.cpp" -#include "typechecking.h" -#include "typechecking.cpp" -#include "compiler.cpp" -#include "codegen_c_language.cpp" +#include "core_compiler.h" +#include "core_lexing.cpp" +#include "core_types.h" +#include "core_ast.cpp" +#include "core_parsing.cpp" +#include "core_typechecking.h" +#include "core_typechecking.cpp" +#include "core_compiler.cpp" +#include "core_codegen_c_language.cpp" int main(int argument_count, char **arguments){ diff --git a/parsing.cpp b/core_parsing.cpp similarity index 100% rename from parsing.cpp rename to core_parsing.cpp diff --git a/typechecking.cpp b/core_typechecking.cpp similarity index 100% rename from typechecking.cpp rename to core_typechecking.cpp diff --git a/typechecking.h b/core_typechecking.h similarity index 100% rename from typechecking.h rename to core_typechecking.h diff --git a/types.h b/core_types.h similarity index 100% rename from types.h rename to core_types.h