mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Remove unused tokens.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user