ó ö«‰]c@smdZdZddlZddlmZdefd„ƒYZidd6dd 6dd 6dd 6Zd „ZdS( s0 This package contains Docutils parser modules. treStructuredTextiÿÿÿÿN(t ComponenttParsercBs/eZdZdZd„Zd„Zd„ZRS(tparsertparserscCstdƒ‚dS(s>Override to parse `inputstring` into document tree `document`.s"subclass must override this methodN(tNotImplementedError(tselft inputstringtdocument((s;/tmp/pip-build-Q8jF4w/docutils/docutils/parsers/__init__.pytparsescCs)||_||_|jj|jƒdS(s6Initial parse setup. Call at start of `self.parse()`.N(RRtreportertattach_observertnote_parse_message(RRR((s;/tmp/pip-build-Q8jF4w/docutils/docutils/parsers/__init__.pyt setup_parses  cCs|jjj|jjƒdS(s7Finalize parse details. Call at end of `self.parse()`.N(RR tdetach_observerR (R((s;/tmp/pip-build-Q8jF4w/docutils/docutils/parsers/__init__.pyt finish_parses (t__name__t __module__tcomponent_typetconfig_sectionR R R(((s;/tmp/pip-build-Q8jF4w/docutils/docutils/parsers/__init__.pyRs   trsttrestructuredtexttresttrestxtrtxtcCs€|jƒ}|tkr%t|}ny"t|tƒtƒddƒ}Wn/tk rxt|tƒtƒddƒ}nX|jS(s6Return the Parser class from the `parser_name` module.tlevelii(tlowert_parser_aliasest __import__tglobalstlocalst ImportErrorR(t parser_nametmodule((s;/tmp/pip-build-Q8jF4w/docutils/docutils/parsers/__init__.pytget_parser_class*s   " "(t__doc__t __docformat__tsystdocutilsRRRR"(((s;/tmp/pip-build-Q8jF4w/docutils/docutils/parsers/__init__.pyts