Advertisement
Ham62

Untitled

Sep 28th, 2017
477
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     iKeywordOffset = IsKeyword()
  2.     if iKeywordOffset Then          ' Is the token a keyword?
  3.         iTokenType = TK_KEYWORD
  4.         #if (debugMode)
  5.             color 10: print "Keyword found": color 7
  6.         #endif
  7.     ElseIf IsBIOSFunct() Then       ' is the token a BIOS function?
  8.         iTokenType = TK_BIOS_FUNCTION
  9.         If iInstructionType = IT_BIOS_CALL Then
  10.             #if (debugMode)
  11.                 color 10: print "BIOS function found": color 7
  12.             #endif
  13.         End If
  14.     ElseIf VarHashLookup(0) Then    ' is the token a declared variable?
  15.         iTokenType = TK_VARIABLE
  16.         #if (debugMode)
  17.             color 10: print "variable found": color 7
  18.         #endif
  19.     ElseIf LabelHashLookup(0) Then  ' is the token a defined label?
  20.         iTokenType = TK_LABEL
  21.         #if (debugMode)
  22.             color 10: print "label found": color 7
  23.         #endif
  24.     End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement