20 lines
341 B
C
20 lines
341 B
C
#ifndef __TOKENS_H__
|
|
#define __TOKENS_H__
|
|
|
|
#include "enums.h"
|
|
|
|
#include <stdbool.h>
|
|
|
|
struct Tokens {
|
|
struct Tokens *next;
|
|
enum TokenType type;
|
|
char *val;
|
|
};
|
|
|
|
void tokens_push(enum TokenType token_type, const char *val);
|
|
void tokens_pop();
|
|
bool tokens_expect(enum TokenType token_type);
|
|
const struct Tokens *tokens_top();
|
|
|
|
#endif
|