From fb43a77ec68d9ed51476ba9a50735a4664e76b4c Mon Sep 17 00:00:00 2001 From: falsycat Date: Sun, 3 Jan 2021 00:00:00 +0000 Subject: [PATCH] Tidies the directory structure. --- CMakeLists.txt | 4 +++- TODO.TXT | 4 ++++ biner.l | 2 +- biner.y | 2 +- tree.c | 2 +- tree.h | 2 +- c/zone.h => zone.h | 0 7 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 TODO.TXT rename c/zone.h => zone.h (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index e7a45cb..5300119 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,14 +24,16 @@ add_executable(biner) target_sources(biner PRIVATE main.c + transpile.h transpile_c.c + tree.h tree.c + zone.h ${BISON_biner-parser_OUTPUTS} ${FLEX_biner-scanner_OUTPUTS} PUBLIC c/pack.h c/unpack.h - c/zone.h ) target_include_directories(biner PRIVATE . ${CMAKE_CURRENT_BINARY_DIR}) diff --git a/TODO.TXT b/TODO.TXT new file mode 100644 index 0000000..ed861b3 --- /dev/null +++ b/TODO.TXT @@ -0,0 +1,4 @@ + resolve all TODO in source codes + remove f16/f32/f64 types + partial code generation for C (divide decls and functions) + release v1.0.1 diff --git a/biner.l b/biner.l index 90b5d45..bd7cea9 100644 --- a/biner.l +++ b/biner.l @@ -6,7 +6,7 @@ #include #include "./tree.h" -#include "./c/zone.h" +#include "./zone.h" #include "generated/biner.y.h" diff --git a/biner.y b/biner.y index f91e12d..4be1f55 100644 --- a/biner.y +++ b/biner.y @@ -8,7 +8,7 @@ #include #include "./tree.h" -#include "./c/zone.h" +#include "./zone.h" #define ctx (biner_tree_parse_context_) diff --git a/tree.c b/tree.c index 5a6e8b6..67ebc57 100644 --- a/tree.c +++ b/tree.c @@ -8,7 +8,7 @@ #include #include -#include "./c/zone.h" +#include "./zone.h" #include "generated/biner.y.h" diff --git a/tree.h b/tree.h index fef0c6a..3714cc0 100644 --- a/tree.h +++ b/tree.h @@ -8,7 +8,7 @@ #include #include -#include "./c/zone.h" +#include "./zone.h" typedef struct biner_tree_expr_t biner_tree_expr_t; typedef struct biner_tree_struct_member_t biner_tree_struct_member_t; diff --git a/c/zone.h b/zone.h similarity index 100% rename from c/zone.h rename to zone.h