+
    JV-j,  ã                   óÎ  € ^ RI Ht ^ RIt^ RIHt  ! R R4      t ! R R4      tRtR	t]	R
8X  d¢   ]P                  P                  ]P                  P                  ]4      4      t]P                  P                  ]R4      t]P                  P                  ]R4      t]! ]4      t]! ]R4      ;_uu_ 4       t]P+                  ]4       RRR4       R# R#   + '       g   i     R# ; i)é    )ÚTemplateN)ÚIOc                   óB   a € ] tR t^t o RR ltV 3R lR ltR tRtV tR# )ÚASTCodeGeneratorc                ó„   € Wn         V P                  V4       UUu. uF  w  r#\        W#4      NK  	  uppV n        R# u uppi )z9Initialize the code generator from a configuration
file.
N)Úcfg_filenameÚparse_cfgfileÚNodeCfgÚnode_cfg)Úselfr   ÚnameÚcontentss   &&  Úc/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/pycparser/_ast_gen.pyÚ__init__ÚASTCodeGenerator.__init__   sC   € ð )Ôð %)×$6Ñ$6°|Ô$Dô
á$DÑ �ô �DÖ#Ù$Dò
ˆŽùó 
s   ›<c                ó4   <€ V ^8„  d   QhRS[ S[,          RR/# )é   ÚfileÚreturnN)r   Ústr)ÚformatÚ__classdict__s   "€r   Ú__annotate__ÚASTCodeGenerator.__annotate__    s   ø€ ÷ ñ ™R¡�Wð ¨ñ ó    c                óô   € \        \        4      P                  V P                  R7      pV\        ,          pV P
                   F   pW#P                  4       R,           ,          pK"  	  VP                  V4       R# )z2Generates the code into file, an open file buffer.)r   z

N)r   Ú_PROLOGUE_COMMENTÚ
substituter   Ú_PROLOGUE_CODEr   Úgenerate_sourceÚwrite)r   r   Úsrcr   s   &&  r   ÚgenerateÚASTCodeGenerator.generate    s\   € äÔ(Ó)×4Ñ4À$×BSÑBSÐ4ÓTˆàŒ~ÕˆØŸœˆHØ×+Ñ+Ó-°Õ6Õ6ŠCñ &ð 	�
‰
�3Žr   c           
   #  ó8  "  € \        VR4      ;_uu_ 4       pV FÙ  pVP                  4       pV'       d   VP                  R4      '       d   K4  VP                  R4      pVP                  R4      pVP                  R4      pV^8  g   WT8:  g   We8:  d   \	        RV RV R24      hVR	V pW5^,           V pV'       d/   VP                  R
4       U	u. uF  q™P                  4       NK  	  up	M. p
Wz3x € KÛ  	  R	R	R	4       R	# u up	i   + '       g   i     R	# ; i5i)zPParse the configuration file and yield pairs of
(name, contents) for each node.
ÚrÚ#Ú:Ú[Ú]zInvalid line in ú:
Ú
NÚ,)ÚopenÚstripÚ
startswithÚfindÚRuntimeErrorÚsplit)r   ÚfilenameÚfÚlineÚcolon_iÚ
lbracket_iÚ
rbracket_ir   ÚvalÚvÚvallists   &&         r   r	   ÚASTCodeGenerator.parse_cfgfile*   sï   é € ô �(˜C× Ô  AÛ�Ø—z‘z“|�ß˜tŸ™¨s×3Ò3ÙØŸ)™) C›.�Ø!ŸY™Y s›^�
Ø!ŸY™Y s›^�
Ø˜Q”; *Ô"7¸:Ô;SÜ&Ð)9¸(¸À3ÀtÀfÈBÐ'OÓPÐPà˜H˜W�~�Ø¨�>¨JÐ7�ßAD¨c¯i©i¸¬nÓ=©n¨Ÿ7™7ž9©nÒ=È"�Ø�mÔ#ñ ÷ !Ñ ùò >÷ !× Ð üs5   ‚D—4DÁBDÃD
Ã)DÃ7
DÄDÄD	Ä	D)r   r   N)ú
_c_ast.cfg)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   r#   r	   Ú__static_attributes__Ú__classdictcell__©r   s   @r   r   r      s   ø‡ € ô
÷ð ÷$ð $r   r   c                   óH   a € ] tR t^?t o RtR tR tR tR tR t	R t
RtV tR	# )
r
   z�Node configuration.

name: node name
contents: a list of contents - attributes and child nodes
See comment at the top of the configuration file for details.
c                óº  € Wn         . V n        . V n        . V n        . V n        V F²  pVP                  R 4      pV P                  P                  V4       VP                  R4      '       d   V P                  P                  V4       Kc  VP                  R 4      '       d   V P                  P                  V4       K—  V P                  P                  V4       K´  	  R# )Ú*z**N)r   Úall_entriesÚattrÚchildÚ	seq_childÚrstripÚappendÚendswith)r   r   r   ÚentryÚclean_entrys   &&&  r   r   ÚNodeCfg.__init__G   s¤   € ØŒ	ØˆÔØˆŒ	ØˆŒ
ØˆŒãˆEØŸ,™, sÓ+ˆKØ×Ñ×#Ñ# KÔ0à�~‰~˜d×#Ò#Ø—‘×%Ñ% kÖ2Ø—‘ ×$Ò$Ø—
‘
×!Ñ! +Ö.à—	‘	× Ñ  Ö'ó r   c                óÚ   € V P                  4       pVR V P                  4       ,           ,          pVR V P                  4       ,           ,          pVR V P                  4       ,           ,          pV# )r,   )Ú	_gen_initÚ_gen_childrenÚ	_gen_iterÚ_gen_attr_names©r   r"   s   & r   r    ÚNodeCfg.generate_sourceY   sY   € Ø�n‰nÓˆØˆt�d×(Ñ(Ó*Õ*Õ*ˆØˆt�d—n‘nÓ&Õ&Õ&ˆØˆt�d×*Ñ*Ó,Õ,Õ,ˆØˆ
r   c                óv  € R V P                    R2pV P                  '       dN   RP                  V P                  4      pRP                  R V P                   4       4      pVR,          pRV R2pMRpRpVR	V R
2,          pVRV R2,          pV P                  R.,            F  pVRV RV R2,          pK  	  V# )zclass z(Node):
ú, c              3   ó.   "  € T F  pR V R 2x € K  	  R# 5i)Ú'N© )Ú.0Úes   & r   Ú	<genexpr>Ú$NodeCfg._gen_init.<locals>.<genexpr>e   s   é € ÐAÑ0@¨1  !  A�hÓ0@ùs   ‚z, 'coord', '__weakref__'z(self, z, coord=None)z'coord', '__weakref__'z(self, coord=None)z    __slots__ = (z)
z    def __init__r+   Úcoordz        self.z = r,   )r   rI   Újoin)r   r"   ÚargsÚslotsÚarglistr   s   &     r   rT   ÚNodeCfg._gen_init`   sÓ   € Ø�t—y‘y�k Ð+ˆà××ÐØ—9‘9˜T×-Ñ-Ó.ˆDØ—I‘IÑA°×0@Ò0@ÓAÓAˆEØÐ/Õ/ˆEØ ˜v ]Ð3‰Gà,ˆEØ*ˆGàÐ" 5 '¨Ð-Õ-ˆØÐ! ' ¨#Ð.Õ.ˆà×$Ñ$¨ y×0Ð0ˆDØ�] 4 &¨¨D¨6°Ð4Õ4ŠCñ 1ð ˆ
r   c                ó"  € R pV P                   '       dr   VR,          pV P                   F   pVRV R2,          pVRV RV R2,          pK"  	  V P                   F  pVRV R2,          pVR	V R
2,          pK  	  VR,          pV# VR,          pV# )z    def children(self):
z        nodelist = []
ú        if self.ú is not None:
z            nodelist.append(("z", self.z))
z'        for i, child in enumerate(self.ú	 or []):
z            nodelist.append((f"z[{i}]", child))
z        return tuple(nodelist)
z        return ()
©rI   rK   rL   ©r   r"   rK   rL   s   &   r   rU   ÚNodeCfg._gen_childrent   s¹   € Ø)ˆà××ÐØÐ,Õ,ˆCàŸœ�ØÐ)¨%¨°Ð@Õ@�ØÐ7¸°w¸hÀuÀgÈTÐRÕR’ñ $ð "Ÿ^œ^�	ØÐ@ÀÀÈ:ÐVÕV�ØÐ8¸¸ÐCVÐWÕW’ñ ,ð Ð5Õ5ˆCð ˆ
ð Ð(Õ(ˆCàˆ
r   c                óJ  € R pV P                   '       d†   V P                   F  pVRV R2,          pVRV R2,          pK  	  V P                   F  pVRV R2,          pVR,          pK  	  V P                  '       g   V P                  '       g
   VR,          pV# VR,          pV# )	z    def __iter__(self):
rj   rk   z            yield self.r,   z        for child in (self.rl   z            yield child
z        return
        yield
rm   rn   s   &   r   rV   ÚNodeCfg._gen_iterˆ   s¯   € Ø)ˆà××ÐØŸœ�ØÐ)¨%¨°Ð@Õ@�ØÐ0°°°rÐ:Õ:’ñ $ð "Ÿ^œ^�	ØÐ4°Y°K¸zÐJÕJ�ØÐ2Õ2’ñ ,ð —J—J�J $§.§. .àÐ=Õ=�ð
 ˆ
ð Ð9Õ9ˆCàˆ
r   c                óf   € R RP                  R V P                   4       4      ,           R,           pV# )z    attr_names = (Ú c              3   ó,   "  € T F
  q: R 2x € K  	  R# 5i)r[   Nr^   )r_   Únms   & r   ra   Ú*NodeCfg._gen_attr_names.<locals>.<genexpr>ž   s   é € Ð,MÁ9¸R©v°R­[Ã9ùs   ‚Ú))rd   rJ   rX   s   & r   rW   ÚNodeCfg._gen_attr_names�   s*   € Ø" R§W¡WÑ,MÀ4Ç9Â9Ó,MÓ%MÕMÐPSÕSˆØˆ
r   )rI   rJ   rK   r   rL   N)r?   r@   rA   rB   Ú__doc__r   r    rT   rU   rV   rW   rC   rD   rE   s   @r   r
   r
   ?   s-   ø‡ € ñò(ò$òò(ò(÷*ð r   r
   a¯  #-----------------------------------------------------------------
# ** ATTENTION **
# This code was automatically generated from _c_ast.cfg
#
# Do not modify it directly. Modify the configuration file and
# run the generator again.
# ** ** *** ** **
#
# pycparser: c_ast.py
#
# AST Node classes.
#
# Eli Bendersky [https://eli.thegreenplace.net/]
# License: BSD
#-----------------------------------------------------------------

ae  
import sys
from typing import Any, ClassVar, IO, Optional

def _repr(obj):
    """
    Get the representation of an object, with dedicated pprint-like format for lists.
    """
    if isinstance(obj, list):
        return '[' + (',\n '.join((_repr(e).replace('\n', '\n ') for e in obj))) + '\n]'
    else:
        return repr(obj)

class Node:
    __slots__ = ()
    """ Abstract base class for AST nodes.
    """
    attr_names: ClassVar[tuple[str, ...]] = ()
    coord: Optional[Any]
    def __repr__(self):
        """ Generates a python representation of the current node
        """
        result = self.__class__.__name__ + '('

        indent = ''
        separator = ''
        for name in self.__slots__[:-2]:
            result += separator
            result += indent
            result += name + '=' + (_repr(getattr(self, name)).replace('\n', '\n  ' + (' ' * (len(name) + len(self.__class__.__name__)))))

            separator = ','
            indent = '\n ' + (' ' * len(self.__class__.__name__))

        result += indent + ')'

        return result

    def children(self):
        """ A sequence of all children that are Nodes
        """
        pass

    def show(
        self,
        buf: IO[str] = sys.stdout,
        offset: int = 0,
        attrnames: bool = False,
        showemptyattrs: bool = True,
        nodenames: bool = False,
        showcoord: bool = False,
        _my_node_name: Optional[str] = None,
    ):
        """ Pretty print the Node and all its attributes and
            children (recursively) to a buffer.

            buf:
                Open IO buffer into which the Node is printed.

            offset:
                Initial offset (amount of leading spaces)

            attrnames:
                True if you want to see the attribute names in
                name=value pairs. False to only see the values.

            showemptyattrs:
                False if you want to suppress printing empty attributes.

            nodenames:
                True if you want to see the actual node names
                within their parents.

            showcoord:
                Do you want the coordinates of each Node to be
                displayed.
        """
        lead = ' ' * offset
        if nodenames and _my_node_name is not None:
            buf.write(lead + self.__class__.__name__+ ' <' + _my_node_name + '>: ')
        else:
            buf.write(lead + self.__class__.__name__+ ': ')

        if self.attr_names:
            def is_empty(v):
                v is None or (hasattr(v, '__len__') and len(v) == 0)
            nvlist = [(n, getattr(self,n)) for n in self.attr_names \
                        if showemptyattrs or not is_empty(getattr(self,n))]
            if attrnames:
                attrstr = ', '.join(f'{name}={value}' for name, value in nvlist)
            else:
                attrstr = ', '.join(f'{value}' for _, value in nvlist)
            buf.write(attrstr)

        if showcoord:
            buf.write(f' (at {self.coord})')
        buf.write('\n')

        for (child_name, child) in self.children():
            child.show(
                buf,
                offset=offset + 2,
                attrnames=attrnames,
                showemptyattrs=showemptyattrs,
                nodenames=nodenames,
                showcoord=showcoord,
                _my_node_name=child_name)


class NodeVisitor:
    """ A base NodeVisitor class for visiting c_ast nodes.
        Subclass it and define your own visit_XXX methods, where
        XXX is the class name you want to visit with these
        methods.

        For example:

        class ConstantVisitor(NodeVisitor):
            def __init__(self):
                self.values = []

            def visit_Constant(self, node):
                self.values.append(node.value)

        Creates a list of values of all the constant nodes
        encountered below the given node. To use it:

        cv = ConstantVisitor()
        cv.visit(node)

        Notes:

        *   generic_visit() will be called for AST nodes for which
            no visit_XXX method was defined.
        *   The children of nodes for which a visit_XXX was
            defined will not be visited - if you need this, call
            generic_visit() on the node.
            You can use:
                NodeVisitor.generic_visit(self, node)
        *   Modeled after Python's own AST visiting facilities
            (the ast module of Python 3.0)
    """

    _method_cache = None

    def visit(self, node: Node):
        """ Visit a node.
        """

        if self._method_cache is None:
            self._method_cache = {}

        visitor = self._method_cache.get(node.__class__.__name__, None)
        if visitor is None:
            method = 'visit_' + node.__class__.__name__
            visitor = getattr(self, method, self.generic_visit)
            self._method_cache[node.__class__.__name__] = visitor

        return visitor(node)

    def generic_visit(self, node: Node):
        """ Called if no explicit visitor function exists for a
            node. Implements preorder visiting of the node.
        """
        for _, c in node.children():
            self.visit(c)

Ú__main__r>   zc_ast.pyÚw)Ústringr   ÚosÚtypingr   r   r
   r   r   r?   ÚpathÚdirnameÚabspathÚ__file__Úbase_dirrd   Úcfg_pathÚout_pathÚast_genr.   Úoutr#   r^   r   r   Ú<module>rˆ      sÊ   ðõ  Û 	Ý ÷'$ñ '$÷T`ñ `ðFÐ ð"g€ðT ˆzÔØ�w‰w�‰˜rŸw™wŸ™¨xÓ8Ó9€HØ�w‰w�|‰|˜H lÓ3€HØ�w‰w�|‰|˜H jÓ1€HÙ˜xÓ(€GÙ	ˆh˜×	Ô	 Ø×Ñ˜Ô÷ 
Ñ	ñ ÷
 
×	Ð	ús   Â5CÃC$	