Files
mikpe.pdp10-tools/as/token.h
Mikael Pettersson 7c189dd488 Initial import
2013-07-03 16:29:42 +00:00

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 */