python (3.12.0)
ˑe)4 d Z ddlZddlZddlZddlmZ ddlmZ g dZ G d d Z ddZ
d Z ej d
ej j Zd Zd Zed
k( rS eej( dk( r e e yej( d Z ee 5 Z e e ee ddd yy# 1 sw Y yxY w)8A lexical analyzer class for simple shell-like syntaxes. N)deque)StringIO)shlexsplitquotejoinc f e Zd ZdZ ddZed Zd ZddZd Z d Z
d Zd
ZddZ
d Zd
Zy)r r Nc t |t rt | }||| _ || _ nt
j | _ d | _ || _ |rd | _ nd| _ d| _ d| _
| j r| xj dz
c_
d| _ d| _ d| _
d| _ d | _ d
| _ t# | _ d| _ d| _ d| _ t# | _ d | _ |sd}n|d
u rd}|| _ |rst# | _ | xj dz
c_
| j j5 t6 j9 | }| j j; | | _
y y )N #?abcdfeghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_u| ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞz
Fz'"\" r Tz();<>|&z~-./*?=)
isinstancestrr instreaminfilesysstdinposixeof
commenters wordchars
whitespacewhitespace_splitquotesescape
escapedquotesstater pushbacklinenodebugtoken filestacksource_punctuation_chars_pushback_chars maketransdictfromkeys translate)selfr r r punctuation_charsts 9/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/shlex.py__init__zshlex.__init__ sN h$)H$DM DKIIDMDK
DHDHB::NN ^
_N# %
"
$
& )"3#(7D NNi'N((7H)IJA!^^55a8DN c | j S N)r) r/ s r2 r0 zshlex.punctuation_charsD s &&&r4 c | j dk\ rt dt | z | j j | y)z:Push a token onto the stack popped by the get_token methodr zshlex: pushing token N)r% printreprr#
appendleft)r/ toks r2
push_tokenzshlex.push_tokenH s1 ::?)DI56
%r4 c \ t |t rt | }| j j | j
| j | j f || _ || _ d| _ | j r4|t d| j
yt d| j yy)z9Push an input source onto the lexer's input source stack.r Nzshlex: pushing to file zshlex: pushing to stream )
r r r r'