Implements parsing register tag.