
    ZOg[                        S r SSKJrJrJrJr  SSKJrJrJ	r	J
r
  \R                  \\R                  \\R                  \\R                  \0r\R                   4S\S\S\4S jjr\R                   \
R&                  S4S	\S\S
\
S\S\4
S jjrg)zThe main parsing routine.    )epydocgooglenumpydocrest)	DocstringDocstringStyle
ParseErrorRenderingStyletextstylereturnc                 :   U[         R                  :w  a  [        U   R                  U 5      $ / n[        R	                  5        H$  n UR                  UR                  U 5      5        M&     U(       d  We[        US SS9S   $ ! [         a  nUn SnAMR  SnAff = f)zParse the docstring into its components.

:param text: docstring text to parse
:param style: docstring style
:returns: parsed docstring representation
Nc                 ,    [        U R                  5      $ )N)lenmeta)ds    \/Users/admin/workspace/ai/Jarvis/env/lib/python3.13/site-packages/docstring_parser/parser.py<lambda>parse.<locals>.<lambda>'   s    c!&&k    T)keyreverser   )r   AUTO
_STYLE_MAPparsevaluesappendr	   sorted)r   r   retsmoduleexexcs         r   r   r      s     ###% &&t,,D##%	KKT*+ & 	$14@CC  	C	s    B
BBBz    	docstringrendering_styleindentc                 t    [         U[        R                  :X  a  U R                  OU   nUR	                  XUS9$ )zRender a parsed docstring into docstring text.

:param docstring: parsed docstring representation
:param style: docstring style to render
:param indent: the characters used as indentation in the docstring string
:returns: docstring text
)r$   r%   )r   r   r   r   compose)r#   r   r$   r%   r    s        r   r'   r'   *   sA      N$7$77	UF >>6   r   N)__doc__docstring_parserr   r   r   r   docstring_parser.commonr   r   r	   r
   RESTGOOGLENUMPYDOCEPYDOCr   r   strr   COMPACTr'    r   r   <module>r2      s     ; ;  6X6	
 .<-@-@ D DN DY D2 +//&4&<&<	 $ 	
 	r   