o !5p`e ã@s\dZdZddlZddlmZddlmZmZGdd„deƒZddddd d d d œZ d d „Z dS) z0 This package contains Docutils parser modules. ÚreStructuredTextéN)Ú import_module)Ú ComponentÚfrontendc @s”eZdZddddgdddejdœfd d gd d ifd dgdddejdœfddgd d ifddgdddejdœfffZdZdZdd„Z dd„Z dd„Z dS) ÚParserzGeneric Parser OptionsNzjDisable directives that insert the contents of an external file; replaced with a "warning" system message.z--no-file-insertionÚ store_falseéÚfile_insertion_enabled)ÚactionÚdefaultÚdestÚ validatorzIEnable directives that insert the contents of an external file. (default)z--file-insertion-enabledr Ú store_truezFDisable the "raw" directive; replaced with a "warning" system message.z--no-rawÚ raw_enabledz%Enable the "raw" directive. (default)z --raw-enabledz>Maximal number of characters in an input line. Default 10 000.z--line-length-limitzÚinté')ÚmetavarÚtyper r ÚparserÚparserscCstdƒ‚)z>Override to parse `inputstring` into document tree `document`.z"subclass must override this method)ÚNotImplementedError©ÚselfÚ inputstringÚdocument©rú;/usr/lib/python3/dist-packages/docutils/parsers/__init__.pyÚparse/sz Parser.parsecCsH||_|j dd¡|j dd¡|j dd¡||_|j |j¡dS)z6Initial parse setup. Call at start of `self.parse()`.r FrÚline_length_limitrN)rÚsettingsÚ setdefaultrÚreporterÚattach_observerÚnote_parse_messagerrrrÚ setup_parse3s zParser.setup_parsecCs|jj |jj¡dS)z7Finalize parse details. Call at end of `self.parse()`.N)rr!Údetach_observerr#)rrrrÚ finish_parse=sÿzParser.finish_parse) Ú__name__Ú __module__Ú __qualname__rÚvalidate_booleanÚvalidate_nonnegative_intÚ settings_specÚcomponent_typeÚconfig_sectionrr$r&rrrrrsJþýýÿýþÿþîý rÚrstÚrecommonmark_wrapper)ÚrestructuredtextÚrestÚrestxÚrtxtÚ recommonmarkÚ commonmarkÚmarkdowncCsL| ¡}|tvr t|}z td|ƒ}W|jSty%t|ƒ}Y|jSw)z6Return the Parser class from the `parser_name` module.zdocutils.parsers.)ÚlowerÚ_parser_aliasesrÚ ImportErrorr)Ú parser_nameÚmodulerrrÚget_parser_classLs þ þr=) Ú__doc__Ú __docformat__ÚsysÚ importlibrÚdocutilsrrrr9r=rrrrÚs 3ù