diff --git a/src/copler/Assembly.h b/src/copler/Assembly.h deleted file mode 100644 index caa8f50..0000000 --- a/src/copler/Assembly.h +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once - -#include "../../../kerep/src/base/base.h" - -typedef struct AssemblyStruct { - -} Assembly; - -typedef struct AssemblyParamsStruct -{ - /* data */ -} AssemblyParams; diff --git a/src/copler/Context.c b/src/copler/Context.c deleted file mode 100644 index 2cf17e9..0000000 --- a/src/copler/Context.c +++ /dev/null @@ -1,3 +0,0 @@ -#include "context.h" - -Autoarr_define(Context); diff --git a/src/copler/Context.h b/src/copler/Context.h deleted file mode 100644 index 92429ea..0000000 --- a/src/copler/Context.h +++ /dev/null @@ -1,15 +0,0 @@ -#pragma once -#include "../../../kerep/src/Autoarr/Autoarr.h" -#include "commands.h" - -typedef struct ContextStruct Context; - -Autoarr_declare(Context) - -struct ContextStruct{ - Context* parent; - Autoarr(Context) children; - Autoarr(Command) commandChain; - Autoarr(Constant) constantStack; - bool isPartial; // if true, not-defined members won't throw NotDefinedError before linkage -}; diff --git a/src/copler/commands.c b/src/copler/commands.c deleted file mode 100644 index 4f70635..0000000 --- a/src/copler/commands.c +++ /dev/null @@ -1,4 +0,0 @@ -#pragma once -#include "comands.h" - -Autoarr_define(Command); diff --git a/src/copler/commands.h b/src/copler/commands.h deleted file mode 100644 index 93dd5ed..0000000 --- a/src/copler/commands.h +++ /dev/null @@ -1,22 +0,0 @@ -#pragma once -#include "../../../kerep/src/String/string.h" -#include "../../../kerep/src/Autoarr/Autoarr.h" - -typedef enum CommandId{ - CommandVoid -} __attribute__((__packed__)) CommandId; - -typedef struct CommandStruct Command; -struct CommandStruct{ - Command* next; - Command* prev; - CommandId id; -}; - -Autoarr_declare(Command) - -typedef struct ConstantStruct { - -} Constant; - -Autoarr_declare(Constant) \ No newline at end of file diff --git a/src/copler/copler.h b/src/copler/copler.h deleted file mode 100644 index eefac6e..0000000 --- a/src/copler/copler.h +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once - -#include "../../../kerep/src/String/StringBuilder.h" -#include "../lexer/lexer.h" -#include "Assembly.h" -#include "Context.h" - -Context* parse(Autoarr(Token)* tokens); - -string genBytecode(Context* toplvl_context); - -Assembly genAssembly(Autoarr(string)* compiled_contexts, AssemblyParams params); diff --git a/src/copler/main.c b/src/copler/main.c deleted file mode 100644 index f2d9a40..0000000 --- a/src/copler/main.c +++ /dev/null @@ -1,9 +0,0 @@ -#include "copler.h" -#include "../lexer/lexer.h" - -int main(){ - init_keywordsSearchTree(); - - STNode_free(keywordsSearchTree); - return 0; -} \ No newline at end of file diff --git a/src/copler/parser.c b/src/copler/parser.c deleted file mode 100644 index 79e993b..0000000 --- a/src/copler/parser.c +++ /dev/null @@ -1,5 +0,0 @@ -#include "cobek_compiler.h" - -Context parse(Autoarr(Token)* tokens){ - -}