35 lines
693 B
C
35 lines
693 B
C
|
|
#include <stdint.h>
|
|
typedef int8_t S8;
|
|
typedef int16_t S16;
|
|
typedef int32_t S32;
|
|
typedef int64_t S64;
|
|
typedef uint8_t U8;
|
|
typedef uint16_t U16;
|
|
typedef uint32_t U32;
|
|
typedef uint64_t U64;
|
|
typedef S8 B8;
|
|
typedef S16 B16;
|
|
typedef S32 B32;
|
|
typedef S64 B64;
|
|
typedef U64 SizeU;
|
|
typedef S64 SizeS;
|
|
typedef float F32;
|
|
typedef double F64;
|
|
|
|
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;
|
|
};
|
|
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);
|
|
}
|
|
} |