_e[c @sdZdZddlZddlZddlZddlZddlZddlZyejej fZ Wne k re e fZ nXejdZdefdYZdefdYZdefd YZd efd YZd fd YZdZdZdZdZdZdZdefdYZeeeede ej!eeeed Z"eedZ#dZ$e$Z%dS(s3.10iNs^[a-zA-Z0-9_]+$tLexErrorcBseZdZRS(cCs|f|_||_dS(N(targsttext(tselftmessagets((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyt__init__:s (t__name__t __module__R(((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyR9stLexTokencBseZdZdZRS(cCs d|j|j|j|jfS(NsLexToken(%s,%r,%d,%d)(ttypetvaluetlinenotlexpos(R((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyt__str__AscCs t|S(N(tstr(R((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyt__repr__Ds(RRRR(((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyR @s t PlyLoggercBs8eZdZdZdZdZeZeZRS(cCs ||_dS(N(tf(RR((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyRLscOs|jj||ddS(Ns (Rtwrite(RtmsgRtkwargs((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pytcriticalOscOs |jjd||ddS(Ns WARNING: s (RR(RRRR((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pytwarningRscOs |jjd||ddS(NsERROR: s (RR(RRRR((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyterrorUs(RRRRRRtinfotdebug(((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyRKs     t NullLoggercBseZdZdZRS(cCs|S(N((Rtname((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyt__getattribute__^scOs|S(N((RRR((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyt__call__as(RRRR(((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyR]s tLexercBseZdZddZddZdZdZdZdZ dZ d Z d Z d Z d Zd ZeZRS(cCsd|_d|_i|_i|_i|_d|_g|_d|_i|_ i|_ i|_ d|_ d|_ d|_d|_d|_d|_d|_d|_d|_d|_d|_t|_dS(NtINITIALiti(tNonetlexret lexretextt lexstateretlexstateretexttlexstaterenamestlexstatet lexstatestackt lexstateinfotlexstateignoretlexstateerrorft lexstateeofft lexreflagstlexdataR tlexlent lexerrorftlexeofft lextokenst lexignoret lexliteralst lexmoduleR tFalset lexoptimize(R((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyRts.                      c Cs3tj|}|r/i}x|jjD]\}}g}xw|D]o\}}g} xZ|D]R} | su| d r| j| q]n| jt|| dj| dfq]WqDW|j|| f|||((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pytinputs    cCs||jkrtdn|j||_|j||_|jj|d|_|jj|d|_ |j j|d|_ ||_ dS(NsUndefined stateR!(R%RR#R&R$R+tgetR4R,R"R1R-R2R((Rtstate((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyRzscCs$|jj|j|j|dS(N(R)R;R(Rz(RR((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyt push_statescCs|j|jjdS(N(RzR)tpop(R((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyt pop_statescCs|jS(N(R((R((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyt current_state!scCs|j|7_dS(N(R (Rtn((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pytskip'sc Csi|j}|j}|j}|j}x||kr|||krS|d7}q'nx|jD]K\}}|j||}|sq]nt}|j|_|j |_ ||_|j } || \} |_ | s|j r|j |_|S|j }Pn|j }||_ ||_||_| |} | sQ|j}|j}Pn|js| j |jkrtd| jj| jj| j| j f||qn| SW|||jkrt}|||_|j |_ |j|_ ||_|d|_|S|jrt}|j||_|j |_ d|_ ||_ ||_||_|j|} ||jkrtd||||n|j}| sq'n| S||_td|||f||q'W|jr:t}d|_ d|_|j |_ ||_||_ ||_|j|} | S|d|_|jdkretdndS( Nis4%s:%d: Rule '%s' returned an unknown token type '%s'Rs&Scanning error. Illegal character '%s's"Illegal character '%s' at index %dteofR!s"No input string given with input()(R R0R4R/R#tmatchR tgroupR R t lastindexR tendtlexertlexmatchR8RqRt__code__t co_filenametco_firstlinenoRR5R1R2R"t RuntimeError( RR R0R4R/R#t lexindexfunctmttoktiRctnewtok((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyttoken1s                   #               %         cCs|S(N((R((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyt__iter__scCs%|j}|dkr!tn|S(N(RR"t StopIteration(Rtt((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pytnexts   N(RRRR"RGRhRRRzRRRRRRRt__next__(((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyRss   % (    n  cCst|d|jS(Ntregex(R<t__doc__(Rc((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyt _get_regexscCsGtj|}|jj}|j|jkrC|j|jn|S(N(Rjt _getframet f_globalsR9tf_localstupdate(tlevelsRtldict((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pytget_caller_module_dicts cCsag}xTt||D]C\}}|rL|drL|j||dfq|j|qW|S(Nii(RWR;(tfunclisttnamelisttresultRR((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyRXs cCsZg}xM|D]E}|rE|drE|j||d|dfq |j|q W|S(Nii(R;(RR|RR((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyRws  "cCs|s gSdj|}ytj||}dgt|jjd}|}x|jjD]\}} |j|d} t | t j t j fkr| ||f|| <||| ((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyRms" cCsu|jjdd|_|jrqt|jttfsU|jjdt |_qqx|jD] }t|t st |dkr|jjdt |t |_q_n|\}}t|t s|jjdt |t |_q_n|dkp|dks,|jjd|t |_q_n||j kr]|jjd |t |_q_n||j |scSst|dS(Ni(R(R((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyRstreverse(RRtfuncsymtstrsymRterrorfteoffRRRRRRthasattrRRRRR;RJRRRtsort( RRttsymbolsRRRttoknametlinetfile((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyRsb,                    !      ! cCsx|jD]}x|j|D]\}}|jj}|jj}tj|}|jj||j |}t |t j rd}nd}|jj } | |kr|jjd|||jt|_qn| |kr |jjd|||jt|_qnt|s@|jjd|||jt|_qny`tjd|t|f|j} | jdr|jjd|||jt|_nWqtjk r} |jjd |||j| d t|kr|jjd |||jnt|_qXqWxJ|j|D];\} } |j | }|d krk|jjd | t|_q$n||jkr|jddkr|jjd| |t|_q$nyQtjd| | f|j} | jdr|jjd| t|_nWq$tjk r^} |jjd| | d | krR|jjd| nt|_q$Xq$W|j| r|j| r|jjd|t|_n|jj|d}|r |}|jj}|jj}tj|}|jj|t |t j rd}nd}|jj } | |krW|jjd|||jt|_n| |kr|jjd|||jt|_qq q Wx|jD]}|j|qWdS(Niis'%s:%d: Rule '%s' has too many argumentss%%s:%d: Rule '%s' requires an arguments2%s:%d: No regular expression defined for rule '%s's (?P<%s>%s)R!s<%s:%d: Regular expression for rule '%s' matches empty strings3%s:%d: Invalid regular expression for rule '%s'. %st#s6%s:%d. Make sure '#' in rule '%s' is escaped with '\#'Rs'Rule '%s' must be defined as a functionRis-Rule '%s' defined for an unspecified token %ss5Regular expression for rule '%s' matches empty strings,Invalid regular expression for rule '%s'. %ss/Make sure '#' in rule '%s' is escaped with '\#'sNo rules defined for state '%s'(RRRRRtinspectt getmoduleRktaddRRJRKRt co_argcountRRRRRRuRvRRRRRRRR"tvalidate_module(RRtfnameRRRtmoduleRtreqargstnargsR>teRtrtefunc((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyRs           %   $          c Csytj|\}}Wntk r-dSXtjd}tjd}i}|d7}x|D]}|j|}|s|j|}n|r|jd} |j| } | s||| dn|j?| _@|j?j dd| _Ax| j2D]\}!} | dkr|!|j;kr| j>d|!n|!|j8kr| j:r| j>d|!qq| dkr|!|j;krR|j;j dd|j;|!d||%fqXn| S(NRYRR t__file__Rit __package__RHRRsCan't build lexerslex: tokens = %rslex: literals = %rslex: states = %ris (?P<%s>%s)s(lex: Adding rule %s -> '%s' (state '%s')s#lex: ==== MASTER REGEXS FOLLOW ====s"lex: state '%s' : regex[%d] = '%s'R!sNo t_error rule is definedRs1No error rule is defined for exclusive state '%s's2No ignore rule is defined for exclusive state '%s'is import %ss#Couldn't write lextab module %r. %s(JR"RR8RRjRtdirR<tdictRkR RRRJRRRRt SyntaxErrorRRRRRlRRRRRpR3RRRVR RQR5RqRRRRR;RRRRR%R&R'RR:textendR*R#R$R.RR+R4RR,R1RRR-R2RKRLRNRORPtdirnameRhRM(&RR=RtoptimizeRYRtnowarnRZtdebuglogterrorlogRRtlexobjtkt_itemstpkgtlinfoRtregexsRt regex_listRRRRRRR#tre_texttre_namesRRtstypeRtsrcfileRtpkgnameR((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pytlex_s        .           (     # %   !"        &        cCs|soy3tjd}t|}|j}|jWqotk rktjjdtjj}qoXn|r|j }nt }|||r|j }nt }xIt r|}|sPntjjd|j |j |j|jfqWdS(Nis/Reading from standard input (type EOF to end): s(%s,%r,%d,%d) (RjtargvRRtreadtcloset IndexErrortstdoutRtstdinRRRR R R R (RtdataR\Rt_inputt_tokenR((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pytrunmains*         csfd}|S(Ncs.tdr!t|_n |_|S(NR(RRR(R(R(s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyt set_regexBs ((RR,((Rs6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pytTOKENAs(&RSRURuRjRKR9RORt StringTypet UnicodeTypeRtAttributeErrorRtbytesRvRRRR=R RRRRRRXRwRRRR"R7RtVERBOSER!R+R-tToken(((s6/tmp/pip-install-KP2Jbq/pycparser/pycparser/ply/lex.pyt"s>        E   ( 2!"