copler files removed
This commit is contained in:
parent
354fd69681
commit
cd81de9216
@ -1,12 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "../../../kerep/src/base/base.h"
|
||||
|
||||
typedef struct AssemblyStruct {
|
||||
|
||||
} Assembly;
|
||||
|
||||
typedef struct AssemblyParamsStruct
|
||||
{
|
||||
/* data */
|
||||
} AssemblyParams;
|
||||
@ -1,3 +0,0 @@
|
||||
#include "context.h"
|
||||
|
||||
Autoarr_define(Context);
|
||||
@ -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
|
||||
};
|
||||
@ -1,4 +0,0 @@
|
||||
#pragma once
|
||||
#include "comands.h"
|
||||
|
||||
Autoarr_define(Command);
|
||||
@ -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)
|
||||
@ -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);
|
||||
@ -1,9 +0,0 @@
|
||||
#include "copler.h"
|
||||
#include "../lexer/lexer.h"
|
||||
|
||||
int main(){
|
||||
init_keywordsSearchTree();
|
||||
|
||||
STNode_free(keywordsSearchTree);
|
||||
return 0;
|
||||
}
|
||||
@ -1,5 +0,0 @@
|
||||
#include "cobek_compiler.h"
|
||||
|
||||
Context parse(Autoarr(Token)* tokens){
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user