SterlingLang/include/SterlingCompiler.h

30 lines
433 B
C

#ifndef STERLING_COMPILER_H
# define STERLING_COMPILER_H
typedef enum {
TOK_NONE,
TOK_STRING,
TOK_TOKEN,
TOK_PREPROCESSOR,
} TKN_CTX;
typedef struct Token_s {
int size;
char *data;
TKN_CTX ctx;
} Token_t;
typedef struct {
int size;
Token_t *token;
} TokenList;
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#endif