3
\f[                   @   s   d Z ddlmZ ddlmZmZ ddlmZmZ ddl	m
Z
 edddd	d
dddddddgZeddddddgZejejejejejejdZG dd deZdS )z
    jinja2.parser
    ~~~~~~~~~~~~~

    Implements the template parser.

    :copyright: (c) 2017 by the Jinja Team.
    :license: BSD, see LICENSE for more details.
    )nodes)TemplateSyntaxErrorTemplateAssertionError)describe_tokendescribe_token_expr)imapforifblockZextendsprintmacroincludefromimportsetwith
autoescapeeqneltlteqgtgteq)addsubmuldivfloordivmodc               @   s  e Zd ZdZdiddZdefddZdd Zdjd	d
ZdkddZ	dlddZ
dmddZdd ZdnddZdd Zdd Zdd Zdd Zdd Zd d! Zd"d# Zd$d% Zd&d' Zd(d) Zd*d+ Zd,d- Zd.d/ Zd0d1 Zd2d3 Zd4d5 Zdod7d8Zdpd9d:Zd;d< Z d=d> Z!d?d@ Z"dAdB Z#dCdD Z$dEdF Z%dGdH Z&dIdJ Z'dKdL Z(dqdMdNZ)dOdP Z*drdQdRZ+dSdT Z,dUdV Z-dWdX Z.dYdZ Z/d[d\ Z0d]d^ Z1d_d` Z2dsdadbZ3dcdd Z4dtdedfZ5dgdh Z6dS )uParserzThis is the central parsing class Jinja2 uses.  It's passed to
    extensions and can be used to parse expressions or statements.
    Nc             C   st   || _ |j||||| _|| _|| _d| _i | _x,|j D ] }x|jD ]}|j	| j|< qFW q:W d| _
g | _g | _d S )NFr   )environment	_tokenizestreamnamefilenameclosed
extensionsiter_extensionstagsparse_last_identifier
_tag_stack_end_token_stack)selfr    sourcer#   r$   state	extensiontag r2   ?C:\prj\env\wsgidav_build_3.6\lib\site-packages\jinja2\parser.py__init__%   s    zParser.__init__c             C   s(   |dkr| j jj}|||| j| jdS )zConvenience method that raises `exc` with the message, passed
        line number or last line number as well as the current name and
        filename.
        N)r"   currentlinenor#   r$   )r-   msgr6   excr2   r2   r3   fail4   s    
zParser.failc             C   s   g }x|D ]}|j tt| q
W |r@djdd |d D }nd }|d krTdg}n
d| g}|r|d k	r||kr|jd|  n|jd|  | jr|jd	| jd   | jd
j|| d S )Nz or c             s   s   | ]}d t | V  qdS )z'%s'N)r   ).0exprr2   r2   r3   	<genexpr>C   s   z&Parser._fail_ut_eof.<locals>.<genexpr>   zUnexpected end of template.zEncountered unknown tag '%s'.z_You probably made a nesting mistake. Jinja is expecting this tag, but currently looking for %s.z-Jinja was looking for the following tags: %s.z4The innermost block that needs to be closed is '%s'. r?   )extendr   r   joinappendr+   r9   )r-   r#   Zend_token_stackr6   expectedexprsZcurrently_lookingmessager2   r2   r3   _fail_ut_eof=   s*    


zParser._fail_ut_eofc             C   s   | j || j|S )zCalled if the parser encounters an unknown tag.  Tries to fail
        with a human readable error message that could help to identify
        the problem.
        )rF   r,   )r-   r#   r6   r2   r2   r3   fail_unknown_tag\   s    zParser.fail_unknown_tagc             C   s*   t | j}|dk	r|j| | jd||S )z9Like fail_unknown_tag but for end of template situations.N)listr,   rB   rF   )r-   
end_tokensr6   stackr2   r2   r3   fail_eofc   s    

zParser.fail_eofc             C   s,   | j jjdkrdS |dk	r(| j jj|S dS )zAre we at the end of a tuple?variable_end	block_endrparenTNF)rL   rM   rN   )r"   r5   typetest_any)r-   extra_end_rulesr2   r2   r3   is_tuple_endj   s
    zParser.is_tuple_endc             C   s6   |  j d7  _ tjtj}tjj|d| j  |d |S )zDReturn a new free identifier as :class:`~jinja2.nodes.InternalName`.r=   zfi%d)r6   )r*   object__new__r   InternalNameNoder4   )r-   r6   rvr2   r2   r3   free_identifierr   s    zParser.free_identifierc          
   C   s   | j j}|jdkr | jd|j | jj|j d}z|jtkrTt	| d| j jj  S |jdkrf| j
 S |jdkrx| j S | jj|j}|dk	r|| S | jj  d}| j|j|j W d|r| jj  X dS )	zParse a single statement.r#   ztag name expectedTZparse_callfilterNF)r"   r5   rO   r9   r6   r+   rB   value_statement_keywordsgetattrparse_call_blockparse_filter_blockr&   getpoprG   )r-   tokenZpop_tagextr2   r2   r3   parse_statementy   s(    




zParser.parse_statementFc             C   sL   | j jd | j jd | j|}| j jjdkr:| j| |rHt| j  |S )aR  Parse multiple statements into a list until one of the end tokens
        is reached.  This is used to parse the body of statements as it also
        parses template data if appropriate.  The parser checks first if the
        current token is a colon and skips it if there is one.  Then it checks
        for the block end and parses until if one of the `end_tokens` is
        reached.  Per default the active token in the stream at the end of
        the call is the matched end token.  If this is not wanted `drop_needle`
        can be set to `True` and the end token is removed.
        colonrM   eof)r"   skip_ifexpectsubparser5   rO   rK   next)r-   rI   drop_needleresultr2   r2   r3   parse_statements   s    


zParser.parse_statementsc             C   sf   t | jj}| jdd}| jjdr<| j }tj|||dS | jd}| j	ddd}tj
||||dS )	zParse an assign statement.T)with_namespaceassign)r6   Nname:endset)rk   )rp   )rj   r"   r6   parse_assign_targetrg   parse_tupler   Assignparse_filterrm   AssignBlock)r-   r6   targetr;   Zfilter_nodebodyr2   r2   r3   	parse_set   s    
zParser.parse_setc          	   C   s   | j jdj}| jdd}| j jd | jddd}d}| j jdrL| j }| j jd}| jd}t| j j	dkrxg }n| jddd}t
j|||||||dS )zParse a for loop.zname:forname:in)rQ   Fname:recursive)with_condexprrQ   Nzname:ifname:endfor	name:elseZendforT)rk   )r6   )ry   )rz   )r|   r}   )r|   )r"   rh   r6   rq   rr   rg   parse_expressionrm   rj   r[   r   For)r-   r6   rv   itertest	recursiverw   else_r2   r2   r3   	parse_for   s    
zParser.parse_forc             C   s   t j| jjdjd }}x|| jdd|_| jd
|_g |_	g |_
t| j}|jdrxt j| jjjd}|j	j| qn|jdr| jddd	|_
P qW |S )zParse an if construct.zname:if)r6   F)r{   	name:elif	name:else
name:endifT)rk   )r   r   r   )r   )r   Ifr"   rh   r6   rr   r   rm   rw   elif_r   rj   r5   rB   )r-   noderl   rb   r2   r2   r3   parse_if   s"    



zParser.parse_ifc             C   s   t jt| jjd}g }g }xb| jjjdkr~| jjj}|rF| jjd | j }|j	d |j
| | jjd |j
| j  qW ||_||_| jd	dd|_|S )
N)r6   rM   commaparamro   name:endwithT)rk   )r   )r   Withrj   r"   r6   r5   rO   rh   rq   set_ctxrB   r~   targetsvaluesrm   rw   )r-   r   r   r   r6   rv   r2   r2   r3   
parse_with   s"    



zParser.parse_withc             C   sD   t jt| jjd}t jd| j g|_| jddd|_	t j
|gS )N)r6   r   name:endautoescapeT)rk   )r   )r   ScopedEvalContextModifierrj   r"   r6   Keywordr~   optionsrm   rw   Scope)r-   r   r2   r2   r3   parse_autoescape   s
    
zParser.parse_autoescapec             C   sp   t jt| jjd}| jjdj|_| jjd|_	| jj
jdkrJ| jd | jd
dd|_| jjd	|j  |S )N)r6   r#   zname:scopedr   zpBlock names in Jinja have to be valid Python identifiers and may not contain hyphens, use an underscore instead.name:endblockT)rk   zname:)r   )r   Blockrj   r"   r6   rh   r[   r#   rg   scopedr5   rO   r9   rm   rw   )r-   r   r2   r2   r3   parse_block   s    
zParser.parse_blockc             C   s"   t jt| jjd}| j |_|S )N)r6   )r   Extendsrj   r"   r6   r~   template)r-   r   r2   r2   r3   parse_extends  s    
zParser.parse_extendsc             C   sH   | j jjddr>| j j jdr>t| j jdk|_| j j  n||_|S )Nz	name:withzname:withoutzname:contextr   )	r"   r5   rP   lookr   rj   r[   with_contextskip)r-   r   defaultr2   r2   r3   parse_import_context  s    zParser.parse_import_contextc             C   sb   t jt| jjd}| j |_| jjjdrP| jj	 jdrPd|_
| jjd nd|_
| j|dS )N)r6   zname:ignorezname:missingT   F)r   Includerj   r"   r6   r~   r   r5   r   r   ignore_missingr   r   )r-   r   r2   r2   r3   parse_include  s    
zParser.parse_includec             C   sF   t jt| jjd}| j |_| jjd | jddj	|_
| j|dS )N)r6   zname:asT)	name_onlyF)r   Importrj   r"   r6   r~   r   rh   rq   r#   rv   r   )r-   r   r2   r2   r3   parse_import)  s
    
zParser.parse_importc                s  t jtjjd j  _jjd g  _ fdd}x jrRjjd jj	j
dkr| rhP jdd}|jjd	rjd
|jtd jjdrjdd} jj|j|jf n jj|j | sjj	j
dkrP q@jjd q@W t dsd _ S )N)r6   zname:importc                  sB   j jjdkr>j j jdr>tj jdk _j j  dS dS )Nr   withoutzname:contextTF)r   r   )r"   r5   r[   r   r   rj   r   r   r2   )r   r-   r2   r3   parse_context6  s    
z(Parser.parse_from.<locals>.parse_contextr   r#   T)r   _z4names starting with an underline can not be imported)r8   zname:asr   F)r   
FromImportrj   r"   r6   r~   r   rh   namesr5   rO   rq   r#   
startswithr9   r   rg   rB   hasattrr   )r-   r   rv   aliasr2   )r   r-   r3   
parse_from0  s4    
zParser.parse_fromc             C   s   g  |_ }g  |_}| jjd xl| jjjdkr|r@| jjd | jdd}|jd | jjdrr|j	| j
  n|r| jd |j	| q"W | jjd d S )	NlparenrN   r   T)r   r   ro   z-non-default argument follows default argument)argsdefaultsr"   rh   r5   rO   rq   r   rg   rB   r~   r9   )r-   r   r   r   argr2   r2   r3   parse_signatureV  s    



zParser.parse_signaturec             C   st   t jt| jjd}| jjjdkr.| j| ng |_g |_	| j
 |_t|jt js`| jd|j | jddd|_|S )N)r6   r   zexpected callname:endcallT)rk   )r   )r   	CallBlockrj   r"   r6   r5   rO   r   r   r   r~   rY   
isinstanceCallr9   rm   rw   )r-   r   r2   r2   r3   r^   f  s    
zParser.parse_call_blockc             C   s8   t jt| jjd}| jd dd|_| jddd|_|S )N)r6   T)start_inlinename:endfilter)rk   )r   )	r   FilterBlockrj   r"   r6   rt   rZ   rm   rw   )r-   r   r2   r2   r3   r_   t  s
    
zParser.parse_filter_blockc             C   sB   t jt| jjd}| jddj|_| j| | jddd|_	|S )N)r6   T)r   name:endmacro)rk   )r   )
r   Macrorj   r"   r6   rq   r#   r   rm   rw   )r-   r   r2   r2   r3   parse_macro{  s    

zParser.parse_macroc             C   sT   t jt| jjd}g |_ x4| jjjdkrN|j r<| jjd |j j| j	  qW |S )N)r6   rM   r   )
r   Outputrj   r"   r6   r5   rO   rh   rB   r~   )r-   r   r2   r2   r3   parse_print  s    zParser.parse_printTc             C   s   |rN| j j jdkrN| j jd}t| j  | j jd}tj|j|j|jd}nL|rt| j jd}tj	|jd|jd}n&|r| j
d|d}n| j }|jd |j s| jd|jjj  |j |S )a  Parse an assignment target.  As Jinja2 allows assignments to
        tuples, this function can parse all allowed assignment targets.  Per
        default assignments to tuples are parsed, that can be disable however
        by setting `with_tuple` to `False`.  If only assignments to names are
        wanted `name_only` can be set to `True`.  The `extra_end_rules`
        parameter is forwarded to the tuple parsing function.  If
        `with_namespace` is enabled, a namespace assignment may be parsed.
        dotr#   )r6   storeT)
simplifiedrQ   zcan't assign to %r)r"   r   rO   rh   rj   r   NSRefr[   r6   Namerr   parse_primaryr   
can_assignr9   	__class____name__lower)r-   Z
with_tupler   rQ   rn   rb   attrrv   r2   r2   r3   rq     s"    



zParser.parse_assign_targetc             C   s   |r| j  S | j S )zParse an expression.  Per default all expressions are parsed, if
        the optional `with_condexpr` parameter is set to `False` conditional
        expressions are not parsed.
        )parse_condexprparse_or)r-   r{   r2   r2   r3   r~     s    zParser.parse_expressionc             C   sf   | j jj}| j }xN| j jdr`| j }| j jdr>| j }nd }tj||||d}| j jj}qW |S )Nzname:ifz	name:else)r6   )r"   r5   r6   r   rg   r   r   CondExpr)r-   r6   expr1expr2Zexpr3r2   r2   r3   r     s    

zParser.parse_condexprc             C   sJ   | j jj}| j }x2| j jdrD| j }tj|||d}| j jj}qW |S )Nzname:or)r6   )r"   r5   r6   	parse_andrg   r   Or)r-   r6   leftrightr2   r2   r3   r     s    
zParser.parse_orc             C   sJ   | j jj}| j }x2| j jdrD| j }tj|||d}| j jj}qW |S )Nzname:and)r6   )r"   r5   r6   	parse_notrg   r   And)r-   r6   r   r   r2   r2   r3   r     s    
zParser.parse_andc             C   s4   | j jjdr,t| j j}tj| j |dS | j S )Nzname:not)r6   )	r"   r5   r   rj   r6   r   Notr   parse_compare)r-   r6   r2   r2   r3   r     s    zParser.parse_notc             C   s   | j jj}| j }g }x| j jj}|tkrLt| j  |jtj	|| j  nh| j j
drp|jtj	d| j  nD| j jjdr| j j jdr| j jd |jtj	d| j  nP | j jj}qW |s|S tj|||dS )Nzname:ininzname:notr   notin)r6   )r"   r5   r6   parse_math1rO   _compare_operatorsrj   rB   r   Operandrg   r   r   r   Compare)r-   r6   r;   ops
token_typer2   r2   r3   r     s&    


zParser.parse_comparec             C   sb   | j jj}| j }xJ| j jjdkr\t| j jj }t| j  | j }||||d}| j jj}qW |S )Nr   r   )r6   )r   r   )r"   r5   r6   parse_concatrO   _math_nodesrj   )r-   r6   r   clsr   r2   r2   r3   r     s    

zParser.parse_math1c             C   sb   | j jj}| j g}x*| j jjdkr>t| j  |j| j  qW t|dkrT|d S tj	||dS )Ntilder=   r   )r6   )
r"   r5   r6   parse_math2rO   rj   rB   lenr   Concat)r-   r6   r   r2   r2   r3   r     s    


zParser.parse_concatc             C   sb   | j jj}| j }xJ| j jjdkr\t| j jj }t| j  | j }||||d}| j jj}qW |S )Nr   r   r   r   )r6   )r   r   r   r   )r"   r5   r6   	parse_powrO   r   rj   )r-   r6   r   r   r   r2   r2   r3   r     s    

zParser.parse_math2c             C   sV   | j jj}| j }x>| j jjdkrPt| j  | j }tj|||d}| j jj}qW |S )Npow)r6   )r"   r5   r6   parse_unaryrO   rj   r   Pow)r-   r6   r   r   r2   r2   r3   r     s    

zParser.parse_powc             C   s   | j jj}| j jj}|dkr<t| j  tj| jd|d}n0|dkrdt| j  tj| jd|d}n| j	 }| j
|}|r| j|}|S )Nr   F)r6   r   )r"   r5   rO   r6   rj   r   Negr   Posr   parse_postfixparse_filter_expr)r-   Zwith_filterr   r6   r   r2   r2   r3   r     s    





zParser.parse_unaryc             C   sx  | j j}|jdkrr|jdkr4tj|jdk|jd}n0|jdkrPtjd |jd}ntj|jd	|jd}t| j  n|jd
krt| j  |jg}|j}x,| j jjd
kr|j	| j jj t| j  qW tjdj
||d}n|jdkrt| j  tj|j|jd}nr|jdkr2t| j  | jdd}| j jd nB|jdkrH| j }n,|jdkr^| j }n| jdt| |j |S )Nr#   truefalseTrueFalse)r6   noneNoneloadstring integerfloatr   T)explicit_parenthesesrN   lbracketlbracezunexpected '%s')r   r   r   r   )r   r   )r   r   )r   r   )r"   r5   rO   r[   r   Constr6   r   rj   rB   rA   rr   rh   
parse_list
parse_dictr9   r   )r-   rb   r   bufr6   r2   r2   r3   r   (  s<    








zParser.parse_primaryc       	         s    j jj}|r j}n|r" j}n fdd}g }d}xL|rH j jd  j|rTP |j|   j jjdkrtd}nP  j jj}q8W |s|r|d S |s j	dt
 j j  tj|d|d	S )
a  Works like `parse_expression` but if multiple expressions are
        delimited by a comma a :class:`~jinja2.nodes.Tuple` node is created.
        This method could also return a regular expression instead of a tuple
        if no commas where found.

        The default parsing mode is a full tuple.  If `simplified` is `True`
        only names and literals are parsed.  The `no_condexpr` parameter is
        forwarded to :meth:`parse_expression`.

        Because tuples do not require delimiters and may end in a bogus comma
        an extra hint is needed that marks the end of a tuple.  For example
        for loops support tuples between `for` and `in`.  In that case the
        `extra_end_rules` is set to ``['name:in']``.

        `explicit_parentheses` is true if the parsing was triggered by an
        expression in parentheses.  This is used to figure out if an empty
        tuple is a valid expression or not.
        c                  s    j ddS )NF)r{   )r~   r2   )r-   r2   r3   <lambda>d  s    z$Parser.parse_tuple.<locals>.<lambda>Fr   Tr   z Expected an expression, got '%s'r   )r6   )r"   r5   r6   r   r~   rh   rR   rB   rO   r9   r   r   Tuple)	r-   r   r{   rQ   r  r6   r)   r   is_tupler2   )r-   r3   rr   J  s2    

zParser.parse_tuplec             C   sn   | j jd}g }x@| j jjdkrP|r0| j jd | j jjdkr@P |j| j  qW | j jd tj||jdS )Nr  rbracketr   )r6   )	r"   rh   r5   rO   rB   r~   r   Listr6   )r-   rb   itemsr2   r2   r3   r    s    zParser.parse_listc             C   s   | j jd}g }xf| j jjdkrv|r0| j jd | j jjdkr@P | j }| j jd | j }|jtj|||jd qW | j jd tj	||jdS )Nr  rbracer   re   )r6   )
r"   rh   r5   rO   r~   rB   r   Pairr6   Dict)r-   rb   r  keyr[   r2   r2   r3   r    s    zParser.parse_dictc             C   sF   x@| j jj}|dks|dkr(| j|}q|dkr<| j|}qP qW |S )Nr   r  r   )r"   r5   rO   parse_subscript
parse_call)r-   r   r   r2   r2   r3   r     s    
zParser.parse_postfixc             C   s`   xZ| j jj}|dkr | j|}q|dkrB| j jjdkrB| j|}q|dkrV| j|}qP qW |S )Npiper#   isr   )r"   r5   rO   rt   r[   
parse_testr  )r-   r   r   r2   r2   r3   r     s    
zParser.parse_filter_exprc             C   s   t | j}|jdkr| jj}t | j |jdkrFtj||jd|jdS |jdkr^| jd|j tj	|j|jd}tj
||d|jdS |jdkrg }x0| jjjdkr|r| jjd	 |j| j  qW | jjd t|d
kr|d }ntj|d|jd}tj
||d|jdS | jd| j d S )Nr   r#   r   )r6   r   zexpected name or numberr  r  r   r=   r   zexpected subscript expression)rj   r"   rO   r5   r   Getattrr[   r6   r9   r  Getitemrh   rB   parse_subscribedr   r	  )r-   r   rb   Z
attr_tokenr   r   r2   r2   r3   r    s.    






zParser.parse_subscriptc             C   s   | j jj}| j jjdkr*t| j  d g}n*| j }| j jjdkrD|S t| j  |g}| j jjdkrn|jd  n(| j jjdkr|j| j  n
|jd  | j jjdkrt| j  | j jjdkr|j| j  q|jd  n
|jd  tj|d|iS )Nre   r  r   r6   )r  r   )r  r   )	r"   r5   r6   rO   rj   r~   rB   r   Slice)r-   r6   r   r   r2   r2   r3   r    s*    





zParser.parse_subscribedc       
         s   j jdg }g }d  }}d} fdd}x  j jjdkrP|rb j jd  j jjdkrbP  j jjdkr||d ko|d k t j   j }n j jjdkr||d k t j   j }n||d ko|d k  j jjd	ko j j jd
kr2 j jj} j jd  j }	|j	t
j||	|	jd n||  |j	 j  d}q2W  j jd |d krt||||fS t
j|||||jdS )Nr   Fc                s   | s j dj d S )Nz+invalid syntax for function call expression)r9   r6   )r;   )r-   rb   r2   r3   ensure  s    z!Parser.parse_call.<locals>.ensurerN   r   r   r   r#   ro   r   )r6   T)r"   rh   r5   rO   rj   r~   r   r[   r   rB   r   r   r6   r   )
r-   r   r   kwargsdyn_args
dyn_kwargsZrequire_commar  r  r[   r2   )r-   rb   r3   r    sF    






zParser.parse_callc       	   	   C   s   x| j jjdks|r|s"t| j  | j jd}|j}x2| j jjdkrft| j  |d| j jdj 7 }q6W | j jjdkr| jd \}}}}ng }g }d  }}tj|||||||j	d}d}qW |S )Nr  r#   r   .r   )r6   F)
r"   r5   rO   rj   rh   r[   r  r   Filterr6   )	r-   r   r   rb   r#   r   r  r  r  r2   r2   r3   rt      s"    

zParser.parse_filterc       	   	   C   s  t | j}| jjjdr(t | j d}nd}| jjdj}x2| jjjdkrlt | j |d| jjdj 7 }q<W d  }}g }| jjjdkr| jd \}}}}nJ| jjjdkr| jjjddd r| jjjdr| j	d | j
 g}ng }tj|||||||jd}|rtj||jd}|S )Nzname:notTFr#   r   r  r   r   r   r   r  r  z	name:elsezname:orzname:andzname:isz'You cannot chain multiple tests with is)r6   )r#   r   r   r   r   r  r  )rj   r"   r5   r   rh   r[   rO   r  rP   r9   r   r   Testr6   r   )	r-   r   rb   Znegatedr#   r  r  r  r   r2   r2   r3   r  4  s6    


 
zParser.parse_testc                sD  g  g j }|d k	r"| jj |  fdd}zx| jr| jj}|jdkrv|jrj|tj|j|jd t	| j q4|jdkrt	| j || j
dd | jjd q4|jd	kr|  t	| j |d k	r| jjj| rވ S | j }t|tr j| n
 j | | jjd
 q4tdq4W |  W d |d k	r>| jj  X  S )Nc                 s8   r4d j }  jtjd d  | d d d = d S )Nr   )r6   )r6   rB   r   r   )r6   )rw   data_bufferr2   r3   
flush_data[  s    
z#Parser.subparse.<locals>.flush_datadata)r6   variable_beginT)r{   rL   block_beginrM   zinternal parsing error)rB   r,   r"   r5   rO   r[   r   TemplateDatar6   rj   rr   rh   rP   rd   r   rH   r@   AssertionErrorra   )r-   rI   add_datar#  rb   rW   r2   )rw   r"  r3   ri   S  sD    









zParser.subparsec             C   s"   t j| j dd}|j| j |S )z0Parse the whole template into a `Template` node.r=   )r6   )r   Templateri   set_environmentr    )r-   rl   r2   r2   r3   r)     s    zParser.parse)NNN)N)NN)N)N)F)TFNF)T)T)FTNF)F)N)7r   
__module____qualname____doc__r4   r   r9   rF   rG   rK   rR   rX   rd   rm   rx   r   r   r   r   r   r   r   r   r   r   r   r^   r_   r   r   rq   r~   r   r   r   r   r   r   r   r   r   r   r   rr   r  r  r   r   r  r  r  rt   r  ri   r)   r2   r2   r2   r3   r       sl    
	




		&	 

			


" 
6/

0r   N)r.  jinja2r   jinja2.exceptionsr   r   jinja2.lexerr   r   jinja2._compatr   	frozensetr\   r   AddSubMulDivFloorDivModr   rS   r   r2   r2   r2   r3   <module>
   s   
