Skip to content

Commit

Permalink
update: replace stl with C impl
Browse files Browse the repository at this point in the history
  • Loading branch information
park671 committed Nov 26, 2024
1 parent 051c773 commit 9841216
Show file tree
Hide file tree
Showing 8 changed files with 366 additions and 97 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ include_directories(
"compiler"
"generator"
"wrapper"
"utils"
)

file(GLOB_RECURSE UTILS_SRC
"utils/*.cc"
"utils/*.c"
"utils/*.cpp"
)

file(GLOB_RECURSE LOGGER_SRC
Expand Down Expand Up @@ -66,6 +73,7 @@ add_executable(pcc
${COMPILER_SRC}
${GENERATOR_SRC}
${WRAPPER_SRC}
${UTILS_SRC}
generator/arm64/register_arm64.h
generator/assembler.cpp
generator/assembler.h
Expand Down
3 changes: 0 additions & 3 deletions compiler/lexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
#include <string.h>
#include "lexer.h"
#include "logger.h"
#include <stack>
#include "mspace.h"

using namespace std;

static const char *LEXER_TAG = "lexer";
static const char *VAR_TAG = "var";

Expand Down
Loading

0 comments on commit 9841216

Please sign in to comment.