]Mc @sdZdZddlZddlZddlZddlZddlZyejejfZ Wne k r}e e fZ nXej ddkrdZn dZejdZd efd YZd efd YZd efdYZdefdYZdfdYZdZdZdZdZdZdefdYZeeddddddeed ZeedZ dZ!e!Z"dS(s3.4s3.2iNiicCs|jS(N(t func_code(tf((s+/usr/lib/python2.7/site-packages/ply/lex.pyR3scCs|jS(N(t__code__(R((s+/usr/lib/python2.7/site-packages/ply/lex.pyR6ss^[a-zA-Z0-9_]+$tLexErrorcBseZdZRS(cCs|f|_||_dS(N(targsttext(tselftmessagets((s+/usr/lib/python2.7/site-packages/ply/lex.pyt__init__@s (t__name__t __module__R (((s+/usr/lib/python2.7/site-packages/ply/lex.pyR?stLexTokencBseZdZdZRS(cCs d|j|j|j|jfS(NsLexToken(%s,%r,%d,%d)(ttypetvaluetlinenotlexpos(R((s+/usr/lib/python2.7/site-packages/ply/lex.pyt__str__FscCs t|S(N(tstr(R((s+/usr/lib/python2.7/site-packages/ply/lex.pyt__repr__Hs(R R RR(((s+/usr/lib/python2.7/site-packages/ply/lex.pyR Es t PlyLoggercBs8eZdZdZdZdZeZeZRS(cCs ||_dS(N(R(RR((s+/usr/lib/python2.7/site-packages/ply/lex.pyR OscOs|jj||ddS(Ns (Rtwrite(RtmsgRtkwargs((s+/usr/lib/python2.7/site-packages/ply/lex.pytcriticalQscOs |jjd||ddS(Ns WARNING: s (RR(RRRR((s+/usr/lib/python2.7/site-packages/ply/lex.pytwarningTscOs |jjd||ddS(NsERROR: s (RR(RRRR((s+/usr/lib/python2.7/site-packages/ply/lex.pyterrorWs(R R R RRRtinfotdebug(((s+/usr/lib/python2.7/site-packages/ply/lex.pyRNs     t NullLoggercBseZdZdZRS(cCs|S(N((Rtname((s+/usr/lib/python2.7/site-packages/ply/lex.pyt__getattribute___scOs|S(N((RRR((s+/usr/lib/python2.7/site-packages/ply/lex.pyt__call__as(R R RR (((s+/usr/lib/python2.7/site-packages/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|_ d|_ d|_ d|_ d|_d|_d|_d|_d|_d|_d|_d|_dS(NtINITIALiti(tNonetlexret lexretextt lexstateretlexstateretexttlexstaterenamestlexstatet lexstatestackt lexstateinfotlexstateignoretlexstateerrorft lexreflagstlexdataRtlexlent lexerrorft lextokenst lexignoret lexliteralst lexmoduleRt lexoptimize(R((s+/usr/lib/python2.7/site-packages/ply/lex.pyR ss*                    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|||c Bse|ejr|}nGejddkr=d|dUn%i}d|||fdU|d}e|ddekredn|j|_ |j |_ |j |_ |j|_|j|_i|_i|_x|jjD]\}}g}g}xqee|D]]} |jej|| d|j ejBe|| d|f|j|| dqW||j|<||j|s   cCsxi}xk|jD]`}tj|sD|jjd|d|_n||krf|jjd|nd||sR?cSst|djS(Ni(RR(R((s+/usr/lib/python2.7/site-packages/ply/lex.pyRscSs<t|dt|dkt|dt|dkS(Ni(RT(RR((s+/usr/lib/python2.7/site-packages/ply/lex.pyRscSst|dS(Ni(RT(R((s+/usr/lib/python2.7/site-packages/ply/lex.pyRstreverse(RRtfuncsymtstrsymRterrorfRRTRRRthasattrRRRR R:RIRzRRRgRhtsorttTrue( RRttsymbolsRRRttoknametlinetfile((s+/usr/lib/python2.7/site-packages/ply/lex.pyRsb,               !      ! cCsx|jD]}x |j|D]\}}t|j}t|j}d|j|<|j|}t|tj r}d}nd}t|j }||kr|j j d|||j d|_ qn||kr|j j d|||j d|_ qn|js4|j j d|||j d|_ qnydtjd||jftj|jB} | jdr|j j d|||j d|_ nWqtj k rtj\} } } |j j d |||j | d |jkr |j j d |||j nd|_ qXqWxd|j|D]U\} }|j| }|d krs|j j d | d|_ q,n||jkr|jddkr|j j d| |d|_ q,nyXtjd| |ftj|jB} | jdr|j j d| d|_ nWq,tj k rtj\} } } |j j d| | d |krt|j j d| nd|_ q,Xq,W|j| r|j| r|j j d|d|_ n|jj|d}|r |}t|j}t|j}d|j|%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'(RRRRRRRRIRJRt co_argcountRRR t__doc__RpRqRrRRRgRRRRRR}R$t validate_file(RR~tfnameRRRRtreqargstnargsR=t_etypeRt_etraceRtrtefunc((s+/usr/lib/python2.7/site-packages/ply/lex.pyRs         )   $ &       cCs>ddl}|jj|\}}|dkr4dSy&t|}|j}|jWntk rndSXtjd}tjd}i} d} x|D]} |j | } | s|j | } n| r,| j d} | j | }|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'(;R$R!R7RRgRtdirR;tdictRRRRt SyntaxErrorRyRR|RRiRRRRR3RIRRR ROR5RRRRR:RRRRR'R(R)RSRTR9textendR,R%R&R/RR-R}R4RR.R2RRd( tmoduleR<RtoptimizeReRtnowarnRXtdebuglogterrorlogRRtlexobjtkt_itemstlinfoRtregexsR~t regex_listRRRRRRR%tre_texttre_namesRbtstypeR((s+/usr/lib/python2.7/site-packages/ply/lex.pytlexas      .        (     %   %"       &   cCs|soy3tjd}t|}|j}|jWqotk rktjjdtjj}qoXn|r|j }nt }|||r|j }nt }xB|}|sPntjjd|j |j |j |jfqdS(Nis/Reading from standard input (type EOF to end): s(%s,%r,%d,%d) (RgtargvRPtreadRVt IndexErrortstdoutRtstdinR|RR RRR(RtdataRZRt_inputt_tokenR((s+/usr/lib/python2.7/site-packages/ply/lex.pytrunmains*        csfd}|S(Ncs+tdrj|_n |_|S(NR (RR(R(R(s+/usr/lib/python2.7/site-packages/ply/lex.pytset_docs ((RR$((Rs+/usr/lib/python2.7/site-packages/ply/lex.pytTOKENs(#RQt__tabversion__RpRgRJR8RMt StringTypet UnicodeTypeRztAttributeErrorRtbytesRhRRqRRRR<R RRR!RRURsRRRR$RR#R%tToken(((s+/usr/lib/python2.7/site-packages/ply/lex.pyt"s6<    :    ' B'!