index: removed unnecessary `parser` variable
parser: moved some shared logic to _getInstructionName
tokenizer: fixed bug in attribute values without tags
tests: added, extended test cases