+
    ¿ÌjE  ã                   ó˜   € R t ^ RIt^ RIt^ RIt^ RIHtHt ^ RIHtH	t	  ! R R4      t
 ! R R4      t ! R R	4      tR
 tR]	3R R lltR# )zn
Module of utilities for transforming a lark.Tree into a custom Abstract Syntax Tree (AST defined in classes)
N)ÚOptionalÚCallable)ÚTransformerÚv_argsc                   ó   € ] tR t^tRtRtR# )ÚAstzGAbstract class

Subclasses will be collected by `create_transformer()`
© N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r   ó    Úh/home/l0st/web/w4ttz.lol/public_html/toolz/MsgDoxxer/venv/lib/python3.14/site-packages/lark/ast_utils.pyr   r      ó   † ñó 	r   r   c                   ó   € ] tR t^tRtRtR# )ÚAsListzrAbstract class

Subclasses will be instantiated with the parse results as a single list, instead of as arguments.
r   Nr	   r   r   r   r   r      s   † õr   r   c                   ó   € ] tR t^tRtRtR# )ÚWithMetazuAbstract class

Subclasses will be instantiated with the Meta instance of the tree. (see ``v_args`` for more detail)
r   Nr	   r   r   r   r   r      r   r   r   c                 óN   € \         P                  ! R RV 4      P                  4       # )z(?<!^)(?=[A-Z])Ú_)ÚreÚsubÚlower)Únames   &r   Úcamel_to_snaker      s   € Ü�6Š6Ð$ c¨4Ó0×6Ñ6Ó8Ð8r   c                ór   € V ^8„  d   QhR\         P                  R\        \        ,          R\        R\        /# )é   Ú
ast_moduleÚtransformerÚdecorator_factoryÚreturn)ÚtypesÚ
ModuleTyper   r   r   )Úformats   "r   Ú__annotate__r'   "   s6   € ÷ ñ ¤5×#3Ñ#3ð Ü$,¬[Õ$9ðä*2ðä>Iñr   c                óº  € T;'       g    \        4       p\        P                  ! V 4       F¬  w  rEVP                  R4      '       d   K  \        P                  ! V4      '       g   K<  \        V\        4      '       g   KT  V! \        V\        4      '       * \        V\        4      R7      pV! V4      P                  V4      p\        V\        V4      V4       K®  	  V# )aÖ  Collects `Ast` subclasses from the given module, and creates a Lark transformer that builds the AST.

For each class, we create a corresponding rule in the transformer, with a matching name.
CamelCase names will be converted into snake_case. Example: "CodeBlock" -> "code_block".

Classes starting with an underscore (`_`) will be skipped.

Parameters:
    ast_module: A Python module containing all the subclasses of ``ast_utils.Ast``
    transformer (Optional[Transformer]): An initial transformer. Its attributes may be overwritten.
    decorator_factory (Callable): An optional callable accepting two booleans, inline, and meta,
        and returning a decorator for the methods of ``transformer``. (default: ``v_args``).
r   )ÚinlineÚmeta)r   ÚinspectÚ
getmembersÚ
startswithÚisclassÚ
issubclassr   r   r   Ú__get__Úsetattrr   )r    r!   r"   Útr   ÚobjÚwrappers   &&&    r   Úcreate_transformerr5   "   s    € ð  	×$Ð$”{“}€Aä×'Ò'¨
Ö3‰	ˆØ�‰˜s×#Ô#¬¯ª¸×(<Ô(<Ü˜#œs×#Ô#Ù+´zÀ#ÄvÓ7NÔ3NÔU_Ð`cÔemÓUnÔo�Ù˜c“l×*Ñ*¨1Ó-�Ü˜œ>¨$Ó/°Ö5ñ 4ð €Hr   )r   r+   r   r$   Útypingr   r   Úlarkr   r   r   r   r   r   r5   r   r   r   Ú<module>r8      sM   ðñ÷ Û ß %ç $÷	ñ 	÷ñ ÷	ñ 	ò9ð ;?Ø39÷ñ r   