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

#include "symbol.h"

struct token;

symbol token_sym(struct token *t); // UB for NULL
int token_val(struct token *t);    // UB for NULL

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

#endif