Function parseDirective