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