jack-compiler/tokenizer/tokenizer-tables.h

20 lines
498 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
2020-12-22 14:00:49 -05:00
const char* keywordsraw[] = {
2020-11-30 16:44:22 -05:00
"class", "constructor", "function", "method", "field", "static",
"var", "int", "char", "boolean", "void", "true", "false", "null",
"this", "let", "do", "if", "else", "while", "return"
};
2020-12-22 14:00:49 -05:00
mkstrlist(keywords, keywordsraw);
2020-11-30 16:44:22 -05:00
2020-12-22 14:00:49 -05:00
const char* symbolsraw[] = {
2020-11-30 16:44:22 -05:00
"{", "}", "(", ")", "[", "]", ".", ",", ";", "+", "-", "*", "/",
"&", "|", "<", ">", "=", "~"
};
2020-12-22 14:00:49 -05:00
mkstrlist(symbols, symbolsraw);
2020-11-30 16:44:22 -05:00
#endif