aboutsummaryrefslogtreecommitdiff
path: root/parts/toklist.h
blob: 08fce664418eaee8111b3296030fe8da0ca3a6e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef TOKLIST_H
#define TOKLIST_H

#include <stdint.h> // intptr_t
#include "symbol.h"

struct token;

symbol token_sym(struct token *t);   // t != NULL
intptr_t token_val(struct token *t); // t != NULL

struct token *toklist_eat();  // always non-NULL
struct token *toklist_peek(); // always non-NULL

#endif