From 937d393aa5daa870bf83606591fe4c20f0340c19 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Sun, 25 Apr 2021 16:02:28 +0200 Subject: [PATCH] Remove StandardComponents.hpp. --- CMakeLists.txt | 2 +- src/headers/parsing/StandardComponents.hpp | 15 --------------- src/parser/MainParse.cpp | 1 - 3 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 src/headers/parsing/StandardComponents.hpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 226bb20..4d10c1f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,7 +79,7 @@ set(CPACK_PACKAGE_INSTALL_DIRECTORY "Yerbacon ${CMAKE_PROJECT_VERSION_MAJOR}.${C set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-${CMAKE_PROJECT_VERSION}-${TIME}") include_directories(${CMAKE_CURRENT_LIST_DIR}) -add_executable(${EXENAME} src/main.cpp ${CMAKE_CURRENT_BINARY_DIR}/processed/${PROJECT_NAME}.rc src/parser/MainParse.cpp src/transpiler/MainTranspile.cpp src/etc/filefuncs.cpp src/etc/lexer.cpp src/headers/lex.hpp src/headers/misc.hpp src/headers/parsing/ParseComponents.hpp src/headers/parsing/StandardComponents.hpp) +add_executable(${EXENAME} src/main.cpp ${CMAKE_CURRENT_BINARY_DIR}/processed/${PROJECT_NAME}.rc src/parser/MainParse.cpp src/transpiler/MainTranspile.cpp src/etc/filefuncs.cpp src/etc/lexer.cpp src/headers/lex.hpp src/headers/misc.hpp src/headers/parsing/ParseComponents.hpp) target_compile_definitions(ybcon PRIVATE YBCON_VERSION="${CODENAME} ${PROJECT_VERSION}") # lpkg = linux package, wpkg = windows package diff --git a/src/headers/parsing/StandardComponents.hpp b/src/headers/parsing/StandardComponents.hpp deleted file mode 100644 index 30e18c0..0000000 --- a/src/headers/parsing/StandardComponents.hpp +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef YERBACON_STANDARDCOMPONENTS_HPP -#define YERBACON_STANDARDCOMPONENTS_HPP -#include "ParseComponents.hpp" - -namespace StdComponents { - namespace types { - struct String: public ParseComponent { - string content; - explicit String(const string& str) { content = str; } - String() = default; - }; - } -} - -#endif //YERBACON_STANDARDCOMPONENTS_HPP diff --git a/src/parser/MainParse.cpp b/src/parser/MainParse.cpp index 9dc8f05..01da860 100644 --- a/src/parser/MainParse.cpp +++ b/src/parser/MainParse.cpp @@ -1,6 +1,5 @@ #include "../headers/lex.hpp" #include "../headers/parsing/ParseComponents.hpp" -#include "../headers/parsing/StandardComponents.hpp" using namespace std;