mirror of
https://github.com/mikpe/pdp10-tools.git
synced 2026-01-26 20:22:40 +00:00
23 lines
374 B
C
23 lines
374 B
C
/*
|
|
* token.h
|
|
*/
|
|
#ifndef TOKEN_H
|
|
#define TOKEN_H
|
|
|
|
#include "pdp10-stdint.h"
|
|
|
|
enum token {
|
|
#define TOKEN(T,P,F) T,
|
|
#include "token.def"
|
|
#undef TOKEN
|
|
};
|
|
|
|
union token_attribute {
|
|
const char *text; /* symbol, string */
|
|
pdp10_uint36_t uint; /* uinteger */
|
|
};
|
|
|
|
void token_print(FILE *fp, enum token token, const union token_attribute *token_attr);
|
|
|
|
#endif /* TOKEN_H */
|