Remove unused tokens.

This commit is contained in:
Christoffer Lerno
2022-08-30 16:25:40 +02:00
parent 7a07b8ff13
commit 757ca3716e
3 changed files with 0 additions and 13 deletions

View File

@@ -435,10 +435,6 @@ typedef enum
TOKEN_CONST_IDENT, // Any purely uppercase ident,
TOKEN_TYPE_IDENT, // Any ident on the format FooBar or __FooBar
// Asm
TOKEN_ASM_STRING,
TOKEN_ASM_CONSTRAINT,
// We want to parse $foo separately.
// Otherwise we allow things like "# foo" which would be pretty bad.
TOKEN_CT_IDENT, // $foobar

View File

@@ -845,9 +845,6 @@ Ast *parse_stmt(ParseContext *c)
{
switch (c->tok)
{
case TOKEN_ASM_STRING:
case TOKEN_ASM_CONSTRAINT:
UNREACHABLE
case TOKEN_LBRACE:
return parse_compound_stmt(c);
case TYPELIKE_TOKENS:

View File

@@ -164,12 +164,6 @@ const char *token_type_to_string(TokenType type)
case TOKEN_AT_CONST_IDENT:
return "MACRO_CONST_IDENT";
// Asm
case TOKEN_ASM_STRING:
return "ASM_STRING";
case TOKEN_ASM_CONSTRAINT:
return "ASM_CONSTRAINT";
// Values
case TOKEN_STRING:
return "STRING";