def METHOD_NAME(self, token, obj):
    if self.is_key(token):
        obj.last_item.new_item(SimpleAttr(token))
        return self.state_8, obj
    elif token == '$':
        return self.METHOD_NAME, obj
    elif token == '}':
        return self.state_4, obj
    elif token.startswith('#'):
        return self.state_3c, obj