Added parsing utilities for directives and enclosures