kerep update
This commit is contained in:
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
Submodule cbuild updated: 47808ee989...15a9661c46
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
CBUILD_VERSION=3
|
||||
CBUILD_VERSION=4
|
||||
CONFIG_VERSION=5
|
||||
|
||||
PROJECT=cobek
|
||||
|
||||
2
kerep
2
kerep
Submodule kerep updated: 37dc5c6177...40d1828f2c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user