If the stack is not empty, the element is appended to the last opened element (the first in the LIFO stack).
The parser tests the last bit of the token, if it is 1, it invokes a method which gets the attributes for this element.