Changed the TokenClass from opcode to nomic, a less smoothbrain name IMO and also frees up Opcode for a better use later on.

This commit is contained in:
2022-08-30 22:06:50 -05:00
parent 3c7056c5e6
commit dac01ffd0c
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ Token* CreateToken(char* lexeme, void* value, int lineNumber, TokenType type) {
TokenClass GetTokenClass(TokenType type) {
if (type >= R1 && type <= R8) return Reg;
if (type >= COPY && type <= OUT) return Opcode;
if (type >= COPY && type <= OUT) return Nmomic;
if (type >= DB && type <= ORG) return Directive;
switch(type) {