/* * Copyright (c) 2026, Mirocom Laboratories * Provided under the BSD-3 clause * * Abstract: * This file defines the list of valid tokens. * Author: * Ian M. Moffett */ #ifndef FRONTEND_TOKEN_H #define FRONTEND_TOKEN_H 1 /* * Represents valid token types */ typedef enum { TT_NONE, /* [none] */ TT_NAME, /* [name] */ TT_NEWLINE, /* [newline] */ TT_CC, /* '.cc' */ TT_LD, /* '.ld' */ TT_COLON, /* ':' */ TT_TILDE, /* '~' */ TT_COLONDUB, /* '::' */ } tt_t; /* * Represents a lexical token * * @type: Token type */ struct token { tt_t type; union { char c; char *s; }; }; #endif /* !FRONTEND_TOKEN_H */