Compiling and running first program!

This commit is contained in:
Krzosa Karol
2022-06-03 23:15:16 +02:00
parent 5e798bd179
commit a324a5abf0
16 changed files with 800 additions and 73 deletions

View File

@@ -1,5 +1,4 @@
#include <stdint.h>
typedef int8_t S8;
typedef int16_t S16;
@@ -14,21 +13,21 @@ typedef S16 B16;
typedef S32 B32;
typedef S64 B64;
typedef U64 SizeU;
typedef S64 SizeI;
typedef S64 SizeS;
typedef float F32;
typedef double F64;
struct String{
typedef struct String{
U8 *str;
S64 len;
};
}String;
#define LIT(x) (String){.str=(U8 *)x, .len=sizeof(x)-1}
struct Lex_Stream{
U8 *stream;
U8 *end;
};
static Void main(){
int main(){
String string_to_lex = LIT("Identifier 2425525 Not_Number");
for(S64 i = 0;(i<string_to_lex.len);(i+=1)){
(string_to_lex.str[0]=64);