summaryrefslogtreecommitdiff
path: root/tokenizer.c
diff options
context:
space:
mode:
Diffstat (limited to 'tokenizer.c')
-rw-r--r--tokenizer.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/tokenizer.c b/tokenizer.c
index e31c2eb..15f7452 100644
--- a/tokenizer.c
+++ b/tokenizer.c
@@ -3,24 +3,9 @@
This file is part of toc. toc is distributed under version 3 of the GNU General Public License, without any warranty whatsoever.
You should have received a copy of the GNU General Public License along with toc. If not, see <https://www.gnu.org/licenses/>.
*/
-static const char *const keywords[KW_COUNT] =
- {";", ":", ",", "(", ")", "{", "}", "[", "]", "==",
- "+=", "-=", "*=", "/=", "%=",
- "!=", "<=", "<", ">=", ">",
- "+", "-", "*", "!", "&", "/", "%", "..", ".",
- "=",
- "if", "elif", "else", "while", "for", "return", "fn", "as",
- "new", "del", "struct",
- "int", "i8", "i16", "i32", "i64",
- "u8", "u16", "u32", "u64", "float", "f32", "f64", "Type",
- "Namespace",
- "char", "bool", "true", "false", "nms"};
static inline const char *kw_to_str(Keyword k) { return keywords[k]; }
-static const char *directives[DIRECT_COUNT] =
- {"C", "sizeof", "alignof", "export", "foreign", "builtin", "include"};
-
/* Returns KW_COUNT if it's not a keyword */
/* OPTIM: don't use strncmp so much */
static Keyword tokenize_kw(char **s) {