From 3de813212a256dcb290ec2ac64d9416b17165fbc Mon Sep 17 00:00:00 2001 From: Krzosa Karol Date: Sun, 1 Jan 2023 17:50:22 +0100 Subject: [PATCH] Add todos --- core_compiler.h | 3 ++- core_compiler_interface.hpp | 10 +++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/core_compiler.h b/core_compiler.h index 7ef4473..269e388 100644 --- a/core_compiler.h +++ b/core_compiler.h @@ -1,12 +1,13 @@ /* + @! Dont fully rely on files!!! + @! Language.core shouldnt be a file! @! Separate out the codegen stage cause that can change @! Look into String_Builders in Core_Ctx @! Look into stage allocator and perhaps use it more often to reduce scenarios with 2 allocators, and simplify stuff @! Cleanup big int allocator - @! Replace iterator interface @! Errors and logs should be placed on the compiler context @! Clean way to free all memory and reset the compiler diff --git a/core_compiler_interface.hpp b/core_compiler_interface.hpp index cdfd1ed..551ecdc 100644 --- a/core_compiler_interface.hpp +++ b/core_compiler_interface.hpp @@ -630,4 +630,12 @@ struct Ast_Decl: Ast{ }; }; /*END*/ -}; \ No newline at end of file +}; + +/* + Array lex_file(Allocator *allocator, char *filename); + Array lex_string(Allocator *allocator, char *string, size_t size); + + + + */ \ No newline at end of file