jack-compiler/tokenizer-tables.h

19 lines
512 B
C
Raw Normal View History

2020-12-21 16:11:23 -05:00
#ifndef TOKENIZER_TABLES_H
#define TOKENIZER_TABLES_H
#include "util.h"
2020-11-30 16:44:22 -05:00
const char* keywords[] = {
"class", "constructor", "function", "method", "field", "static",
"var", "int", "char", "boolean", "void", "true", "false", "null",
"this", "let", "do", "if", "else", "while", "return"
};
2020-12-21 16:11:23 -05:00
const int keywordssize = strcount(keyword);
2020-11-30 16:44:22 -05:00
const char* symbols[] = {
"{", "}", "(", ")", "[", "]", ".", ",", ";", "+", "-", "*", "/",
"&", "|", "<", ">", "=", "~"
};
2020-12-21 16:11:23 -05:00
const int symbolssize = strcount(symbols);
2020-11-30 16:44:22 -05:00
#endif