Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- iKeywordOffset = IsKeyword()
- if iKeywordOffset Then ' Is the token a keyword?
- iTokenType = TK_KEYWORD
- #if (debugMode)
- color 10: print "Keyword found": color 7
- #endif
- ElseIf IsBIOSFunct() Then ' is the token a BIOS function?
- iTokenType = TK_BIOS_FUNCTION
- If iInstructionType = IT_BIOS_CALL Then
- #if (debugMode)
- color 10: print "BIOS function found": color 7
- #endif
- End If
- ElseIf VarHashLookup(0) Then ' is the token a declared variable?
- iTokenType = TK_VARIABLE
- #if (debugMode)
- color 10: print "variable found": color 7
- #endif
- ElseIf LabelHashLookup(0) Then ' is the token a defined label?
- iTokenType = TK_LABEL
- #if (debugMode)
- color 10: print "label found": color 7
- #endif
- End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement