MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /proc/self/root/usr/lib/python2.4/site-packages/_xmlplus/xpath/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/lib/python2.4/site-packages/_xmlplus/xpath/yappsrt.pyo
mò
/¦3>c@sqdkZdefd„ƒYZdefd„ƒYZdfd„ƒYZdfd„ƒYZd	„Zd
„ZdS(NtSyntaxErrorcBs,tZdZddd„Zd„ZeZRS(sBWhen we run into an unexpected token, this is the exception to useiÿÿÿÿs	Bad TokencCs#ti|ƒ||_||_dS(N(t	Exceptiont__init__tselftpostmsg(RRR((t:/usr/lib/python2.4/site-packages/_xmlplus/xpath/yappsrt.pyRs
	cCs7|idjodSnd|i
d|idSdS(Nis#<syntax-error>sSyntaxError[@ char s: t](RRR(R((Rt__repr__s(t__name__t
__module__t__doc__RRt__str__(((RR	s	tNoMoreTokenscBstZdZRS(s7Another exception object, for when we run out of tokens(R	R
R(((RR
stScannercBs/tZd„Zdd„Zd„Zd„ZRS(NcCsg|_g|_||_d|_||_|dj	oCg|_x7|D]+\}}|ii
|ti|ƒfƒqJWndS(s]Patterns is [(terminal,regex)...]
        Ignore is [terminal,...];
        Input is a stringiN(
RttokenstrestrictionstinputRtignoretpatternstNonetktrtappendtretcompile(RRRRRR((RRs					
	icCs¡|t|iƒjo|i|ƒn|t|iƒjoW|oA|i|o3x0|D]$}||i|jo
d‚qYqYWn|i|Sntƒ‚dS(s¡Get the i'th token, and if i is one past the end, then scan
        for another token; restrict is a list of tokens that
        are allowed, or 0 for any token.s&Unimplemented: restriction set changedN(	titlenRRtscantrestrictRRR
(RRRR((Rttoken+scCsEd}x8|idD])}d||d|d|d
f}qW|S(s2Print the last 10 tokens that have been scanned intiöÿÿÿs%s
  (@%s)  %s  =  %siiiN(toutputRRtt(RR R!((RR9s'c	Cs¶x¯d}d}xœ|iD]‘\}}|o$||jo||ijoqn|i|i	|i
ƒ}|o;t|i
dƒƒ|jo|}t|i
dƒƒ}qqW|djoG|djo:d}|odt|dƒ}nt|i
|ƒ‚n||ijo‹|i
|i
|||i	|i
|i
|!f}|i
||_
|ip||idjo$|ii|ƒ|ii|ƒndSq|i
||_
qWdS(	ssShould scan another token and add it to the list, self.tokens,
        and add the restriction to self.restrictionsiiÿÿÿÿs(error)is	Bad TokensTrying to find one of s, N(t
best_matchtbest_patRRtptregexpRRtmatchRRtmRtgroupRtjoinRRRRR(	RRR#R"R'R$RRR%((RR@s4
$#0(R	R
RRRR(((RRs		tParsercBs#tZd„Zd„Zd„ZRS(NcCs||_d|_dS(Ni(tscannerRt_scannert_pos(RR+((RRks	cGs |ii|i|ƒ}|dS(s|Returns the token type for lookahead; if there are any args
        then the list of args is the set of token types to allowiN(RR,RR-ttypesttok(RR.R/((Rt_peekoscCs_|ii|i|gƒ}|d|jot|dd|ƒ‚nd|i|_|dS(s5Returns the matched text, and moves to the next tokeniisTrying to find iiN(RR,RR-ttypeR/R(RR1R/((Rt_scanus(R	R
RR0R2(((RR*js		cCsÒ|i}t|| dƒ}|id|d
dGH|t|ddƒ|d!}|t|ddƒ}t	|| dƒ}t	|| dƒ}|djp||jo|djo
|}n|djo-||jo ||d}||d}nt|d|ƒ}t|d|ƒ}|djp||jo|djo
|}n|djo|| }nx=t
|ƒdjo)|d	jod
|d}|d}qnWd
G|GHd
Gd|dGHdG|GHdS(sCThis is a really dumb long function to print error messages nicely.s
s	 on line it:iPis
iFi<s...i
is> t t^sList of nearby tokens:N(terrRR$tcountRtlineRtmaxttexttrfindRtjtfindRR+(RR6R+RR:R<R$R8((Rtprint_errors4	'
'

 	cCs°yt||ƒƒSWn•tj
oj}|ii}yt|||iƒWq¬tj
o/dG|i	GdGdt
||i dƒGHq¬Xn!tj
odGH|iGHnXdS(NsSyntax Errorson lineis
s0Could not complete parsing; stopped around here:(
tgetattrtparsertruleRtsR,RR>tImportErrorRR7RR
(R@RARBR((Rtwrap_error_reporter£s1(RRRR
RR*R>RD(R
RR>RR*RRD((Rt?s	R	$

Anon7 - 2021