slr/slr.h
2024-05-16 19:03:04 +01:00

20 lines
326 B
C

#ifndef SLR_H_
#define SLR_H_
typedef enum {
INT,
KEYWORD,
SEPARATOR,
END_OF_TOKENS,
} TokenType;
typedef struct {
TokenType type;
char *value;
} Token;
void print_token(Token token);
Token *generate_number(char *current, int *current_index);
Token *generate_keyword(char *current, int *current_index);
#endif