Misc update

This commit is contained in:
Krzosa Karol
2024-04-14 13:19:57 +02:00
parent a1324df7e4
commit acf91b6594
4 changed files with 13 additions and 21 deletions

View File

@@ -85,7 +85,7 @@ You only need to compile the build tool once. Afterwards just call `./bld.exe`.
- **My priority is to improve the C user API, harden the compiler, accommodate things that I didn't foresee and stuff like that.** - **My priority is to improve the C user API, harden the compiler, accommodate things that I didn't foresee and stuff like that.**
- I want to implement a bytecode backend (in the future) so that the language can be used like Lua. - I want to implement a bytecode backend (in the future) so that the language can be used like Lua.
- New features are of second priority unless they are small and important but additionally I'm considering the addition of overloaded procedures because it would greatly aid in writing macros. - New features are of second priority unless they important. I'm considering the addition of overloaded procedures because it would greatly aid in writing macros.
# Language overview # Language overview

View File

@@ -1404,9 +1404,12 @@ LC_FUNCTION const char *LC_DeclKindToString(LC_DeclKind decl_kind);
LC_FUNCTION const char *LC_TokenKindToString(LC_TokenKind token_kind); LC_FUNCTION const char *LC_TokenKindToString(LC_TokenKind token_kind);
LC_FUNCTION const char *LC_TokenKindToOperator(LC_TokenKind token_kind); LC_FUNCTION const char *LC_TokenKindToOperator(LC_TokenKind token_kind);
// /*
// bigint functions The bigint code was written by Christoffer Lerno, he is the programmer
// behind C3. He allowed me to use this code without any restrictions. Great guy!
You can check out C3 compiler: https://github.com/c3lang/c3c
He also writes very helpful blogs about compilers: https://c3.handmade.network/blog
*/
LC_FUNCTION LC_BigInt LC_Bigint_u64(uint64_t val); LC_FUNCTION LC_BigInt LC_Bigint_u64(uint64_t val);
LC_FUNCTION uint64_t *LC_Bigint_ptr(LC_BigInt *big_int); LC_FUNCTION uint64_t *LC_Bigint_ptr(LC_BigInt *big_int);
LC_FUNCTION size_t LC_Bigint_bits_needed(LC_BigInt *big_int); LC_FUNCTION size_t LC_Bigint_bits_needed(LC_BigInt *big_int);
@@ -3420,13 +3423,6 @@ LC_FUNCTION void LC_InternTokens(LC_Lex *x) {
#undef LC_IF #undef LC_IF
/*
The bigint code was written by Christoffer Lerno, he is the programmer
behind C3. He allowed me to use this code without any restrictions. Great guy!
You can check out C3 compiler: https://github.com/c3lang/c3c
He also writes very helpful blogs about compilers: https://c3.handmade.network/blog
*/
#ifndef malloc_arena #ifndef malloc_arena
#define malloc_arena(size) LC_PushSize(L->arena, size) #define malloc_arena(size) LC_PushSize(L->arena, size)
#endif #endif

View File

@@ -1,10 +1,3 @@
/*
The bigint code was written by Christoffer Lerno, he is the programmer
behind C3. He allowed me to use this code without any restrictions. Great guy!
You can check out C3 compiler: https://github.com/c3lang/c3c
He also writes very helpful blogs about compilers: https://c3.handmade.network/blog
*/
#ifndef malloc_arena #ifndef malloc_arena
#define malloc_arena(size) LC_PushSize(L->arena, size) #define malloc_arena(size) LC_PushSize(L->arena, size)
#endif #endif

View File

@@ -1360,9 +1360,12 @@ LC_FUNCTION const char *LC_DeclKindToString(LC_DeclKind decl_kind);
LC_FUNCTION const char *LC_TokenKindToString(LC_TokenKind token_kind); LC_FUNCTION const char *LC_TokenKindToString(LC_TokenKind token_kind);
LC_FUNCTION const char *LC_TokenKindToOperator(LC_TokenKind token_kind); LC_FUNCTION const char *LC_TokenKindToOperator(LC_TokenKind token_kind);
// /*
// bigint functions The bigint code was written by Christoffer Lerno, he is the programmer
// behind C3. He allowed me to use this code without any restrictions. Great guy!
You can check out C3 compiler: https://github.com/c3lang/c3c
He also writes very helpful blogs about compilers: https://c3.handmade.network/blog
*/
LC_FUNCTION LC_BigInt LC_Bigint_u64(uint64_t val); LC_FUNCTION LC_BigInt LC_Bigint_u64(uint64_t val);
LC_FUNCTION uint64_t *LC_Bigint_ptr(LC_BigInt *big_int); LC_FUNCTION uint64_t *LC_Bigint_ptr(LC_BigInt *big_int);
LC_FUNCTION size_t LC_Bigint_bits_needed(LC_BigInt *big_int); LC_FUNCTION size_t LC_Bigint_bits_needed(LC_BigInt *big_int);