Parse, visit, and analyze primitive tags and label tags.