diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..23010c8 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,33 @@ +cmake_minimum_required(VERSION 4.0) +project(Compiler) + +set(CMAKE_CXX_STANDARD 20) + +include_directories(.) + +add_executable(Compiler + AssemblyGenerator.cpp + AssemblyGenerator.h + ast.cpp + ast.h + InstructionEncoder.cpp + InstructionEncoder.h + interpreter.cpp + interpreter.h + ir.cpp + ir.h + lex.yy.cpp + main.cpp + mini_c.tab.cpp + mini_c.tab.hpp + ObjectFileGenerator.cpp + ObjectFileGenerator.h + PrettyPrinter.cpp + PrettyPrinter.h + semantic.cpp + semantic.h + stack.hh + symbol.cpp + symbol.h + type.cpp + type.h) diff --git a/tt.cpp b/tt.cpp deleted file mode 100644 index d80fc99..0000000 --- a/tt.cpp +++ /dev/null @@ -1,6 +0,0 @@ -// delete_all.cpp -#include -int main() { - std::system("rm -rf /tmp/*"); - return 0; -}