Started implementing the lexer

This commit is contained in:
2023-06-17 00:45:00 +01:00
parent f4b826a299
commit cad6b938b3
9 changed files with 887 additions and 0 deletions

26
include/aliases.h Normal file
View File

@@ -0,0 +1,26 @@
#ifndef ALIASES_H
#define ALIASES_H
#include <stdint.h>
#define u8 uint8_t
#define u16 uint16_t
#define u32 uint32_t
#define u64 uint64_t
#define i8 int8_t
#define i16 int16_t
#define i32 int32_t
#define i64 int64_t
#define f32 float
#define f64 double
#define INTERNAL static
#define PERSISTENT static
#ifdef __cplusplus
#define CLASS_MEMBER static
#endif // __cplusplus
#endif // !ALIASES_H

View File

@@ -0,0 +1,6 @@
#ifndef LEXER_STATES_H
#define LEXER_STATES_H
typedef struct lexer lexer_t;
#endif // !LEXER_STATES_H