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:
+1
-1
@@ -54,7 +54,7 @@ unsigned char* ParseTokens(List* tokens) {
|
||||
case Directive:
|
||||
HandleAssemblerDirective();
|
||||
break;
|
||||
case Opcode:
|
||||
case Nmomic:
|
||||
HandleOperation();
|
||||
break;
|
||||
case Address:
|
||||
|
||||
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user