From a9970bb4522f8dd1f9f92ae6bd3f448c41a5edd4 Mon Sep 17 00:00:00 2001 From: Yashas Date: Tue, 25 Dec 2018 20:59:51 +0530 Subject: [PATCH] remove the unused `tDBLCOLON` token --- source/compiler/sc.h | 3 +-- source/compiler/sc2.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/source/compiler/sc.h b/source/compiler/sc.h index 7218596..ce583d5 100644 --- a/source/compiler/sc.h +++ b/source/compiler/sc.h @@ -345,9 +345,8 @@ enum { tDEC, /* -- */ tELLIPS, /* ... */ tDBLDOT, /* .. */ - tDBLCOLON, /* :: */ - tMIDDLE = tDBLCOLON, /* value of last multi-character operator */ + tMIDDLE = tDBLDOT, /* value of last multi-character operator */ /* reserved words (statements) */ tASSERT, diff --git a/source/compiler/sc2.c b/source/compiler/sc2.c index 6f627c2..0d134ea 100644 --- a/source/compiler/sc2.c +++ b/source/compiler/sc2.c @@ -2136,7 +2136,7 @@ SC_FUNC void lexinit(void) char *sc_tokens[] = { "*=", "/=", "%=", "+=", "-=", "<<=", ">>>=", ">>=", "&=", "^=", "|=", "||", "&&", "==", "!=", "<=", ">=", "<<", ">>>", ">>", "++", "--", - "...", "..", "::", + "...", "..", "assert", "*begin", "break", "case", "char", "const", "continue", "default", "defined", "do", "else", "emit", "__emit", "*end", "enum", "exit", "for", "forward", "goto", "if", "native", "new", "operator", "public", "return",