Printf is working !!

This commit is contained in:
Krzosa Karol
2022-06-07 11:27:09 +02:00
parent a59283903b
commit 759825172c
4 changed files with 16 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
#include <stdint.h>
#include <stdio.h>
typedef int8_t S8;
typedef int16_t S16;
typedef int32_t S32;
@@ -29,7 +30,7 @@ int main(){
entry();
}
void printf();
typedef struct Token{
U8 *str;
S64 len;
@@ -42,7 +43,7 @@ void entry(){
String string_to_lex = LIT("Identifier 2425525 Not_Number");
Token token_array[32];
U32 token_count;
printf(LIT("test"), 32);
printf("printf", 32);
Token t;
for(S64 i = 0;(i<string_to_lex.len);(i+=1)){
if(is_numeric((string_to_lex.str[i]))){