mirror of
https://github.com/Ed94/gencpp.git
synced 2025-06-16 19:51:47 -07:00
progress on parser and lexer revamp
This commit is contained in:
@ -126,14 +126,14 @@ bool lex__eat(Context* ctx, ParseContext* parser, TokType type)
|
||||
internal
|
||||
void parser_init(Context* ctx)
|
||||
{
|
||||
ctx->Lexer_Tokens = array_init_reserve(Token, ctx->Allocator_DyanmicContainers, ctx->InitSize_LexerTokens );
|
||||
// ctx->Lexer_Tokens = array_init_reserve(Token, ctx->Allocator_DyanmicContainers, ctx->InitSize_LexerTokens );
|
||||
}
|
||||
|
||||
internal
|
||||
void parser_deinit(Context* ctx)
|
||||
{
|
||||
Array(Token) null_array = { nullptr };
|
||||
ctx->Lexer_Tokens = null_array;
|
||||
// Array(Token) null_array = { nullptr };
|
||||
// ctx->Lexer_Tokens = null_array;
|
||||
}
|
||||
|
||||
#pragma region Helper Macros
|
||||
|
Reference in New Issue
Block a user