kerep update
This commit is contained in:
parent
83822bb1ed
commit
69449891e1
5
.vscode/tasks.json
vendored
5
.vscode/tasks.json
vendored
@ -30,12 +30,13 @@
|
||||
},
|
||||
|
||||
{
|
||||
"label": "build_dbg",
|
||||
"label": "build_cb2c_dbg",
|
||||
"detail": "build project with debug symbols",
|
||||
"type": "cppbuild",
|
||||
"command": "make",
|
||||
"args": [
|
||||
"build_dbg"
|
||||
"rebuild_kerep",
|
||||
"build_exec_dbg"
|
||||
],
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}"
|
||||
|
||||
2
cbuild
2
cbuild
@ -1 +1 @@
|
||||
Subproject commit 47808ee989c85b6d011851dbec24c39580b55cbb
|
||||
Subproject commit 15a9661c467facf65b2155eab3fad1ecf5f0c945
|
||||
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
CBUILD_VERSION=3
|
||||
CBUILD_VERSION=4
|
||||
CONFIG_VERSION=5
|
||||
|
||||
PROJECT=cobek
|
||||
|
||||
2
kerep
2
kerep
@ -1 +1 @@
|
||||
Subproject commit 37dc5c6177ec55f30ad0db0612272a0e69c75205
|
||||
Subproject commit 40d1828f2cfa68e03cccaa2b3658eba07c146b02
|
||||
@ -1,6 +1,9 @@
|
||||
#include "cb2c.h"
|
||||
#include "../../kerep/src/kprint/kprint.h"
|
||||
|
||||
int main(){
|
||||
if(!setlocale(LC_ALL, "C.UTF8"))
|
||||
kprintf("\e[93msetlocale failed\n");
|
||||
// kerep type system
|
||||
ktDescriptors_beginInit();
|
||||
ktDescriptors_initKerepTypes();
|
||||
@ -8,7 +11,7 @@ int main(){
|
||||
ktDescriptors_endInit();
|
||||
// keywords search tree
|
||||
init_keywordsSearchTree();
|
||||
printf("keywordsSearchTree: %p\n", keywordsSearchTree);
|
||||
kprint(kp_s|kp_fgGray, "keywordsSearchTree: ", kp_h|kp_pre, keywordsSearchTree, kp_c, '\n');
|
||||
STNode_free(keywordsSearchTree);
|
||||
return 0;
|
||||
}
|
||||
@ -5,11 +5,11 @@
|
||||
|
||||
typedef struct ContextStruct Context;
|
||||
|
||||
typedef enum ContextType{
|
||||
PACK_ENUM(ContextType,
|
||||
CT_Namespace,
|
||||
CT_Function,
|
||||
CT_Class
|
||||
} __attribute__((__packed__)) ContextType;
|
||||
)
|
||||
|
||||
struct ContextStruct {
|
||||
char* name;
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
#include "../../kerep/src/Autoarr/Autoarr.h"
|
||||
#include "../../kerep/src/SearchTree/SearchTree.h"
|
||||
|
||||
typedef enum TokenId{
|
||||
PACK_ENUM(TokenId,
|
||||
// base types
|
||||
tok_void_t,
|
||||
tok_int8_t,
|
||||
@ -97,7 +97,7 @@ typedef enum TokenId{
|
||||
tok_character,
|
||||
tok_string,
|
||||
tok_comment
|
||||
} __attribute__((__packed__)) TokenId;
|
||||
)
|
||||
|
||||
typedef struct Token{
|
||||
char* value;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user