config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/idlelib/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/idlelib/HyperParser.pyo

³ò
h”Rc@sAdZddkZddkZddkZddd„ƒYZdS(sk
HyperParser
===========
This module defines the HyperParser class, which provides advanced parsing
abilities for the ParenMatch and other extensions.
The HyperParser uses PyParser. PyParser is intended mostly to give information
on the proper indentation of code. HyperParser gives some information on the
structure of code, used by extensions to help the user.
iÿÿÿÿNtHyperParsercBsteZd„Zd„Zd„Zd„Zded„ZdZe	i
e	idZe	i
dZ
d„Zd	„ZRS(
c
Csû||_|i|_}ti|i|iƒ}d„}||i|ƒƒ}|ip¨x|iD]‚}t	||dƒ}|
d}	d|}
|i
|i|	|
ƒdƒ|i|i
|	ƒƒ}|d
j	p
|djoPqcqcW|i|pdƒnb|id|ƒ}|o|d}	nd}	d|}
|i
|i|	|
ƒdƒ|idƒ|id	 |_|
|_|iƒ|_g}
tt|iƒƒD]:}|
|djo$|i|d|i|ddjq¤~
|_|i|ƒd
S(s[Initialize the HyperParser to analyze the surroundings of the given
        index.
        cSstt|ƒƒS(N(tinttfloat(tindex((s//usr/local/lib/python2.5/idlelib/HyperParser.pyt
index2linesis.0s%d.ends 
itconsoles1.0iþÿÿÿN(teditwinttexttPyParsetParsertindentwidthttabwidthRtcontext_use_ps1tnum_context_linestmaxtset_strtgettfind_good_parse_startt_build_char_in_string_functNonetset_lot
tag_prevrangetstrtrawtexttstopatindextget_last_stmt_bracketingt
bracketingtrangetlentisopenert	set_index(tselfRRRtparserRtlnotcontexttstartattstartatindexRtbodtrt_[1]ti((s//usr/local/lib/python2.5/idlelib/HyperParser.pyt__init__s<		


	

	YcCst|iƒt|ii||iƒƒ}|djotdƒ‚n||_d|_xS|it|iƒdjo5|i|idd|ijo|id7_q]W|it|iƒdjoK|i|idd|ijo)|i	|ido|id7_ndS(siSet the index to which the functions relate. Note that it must be
        in the same statement.
        is0The index given is before the analyzed statementiN(
RRRRRt
ValueErrortindexinrawtexttindexbracketRR(RRR+((s//usr/local/lib/python2.5/idlelib/HyperParser.pyRHs+
		""cCs0|i|io|i|i|iddjS(s5Is the index given to the HyperParser is in a string?it"t'(R-R.(RR,RR(R((s//usr/local/lib/python2.5/idlelib/HyperParser.pytis_in_string[scCs1|i|ip|i|i|iddjS(s:Is the index given to the HyperParser is in a normal code?it#R-R.(R0R-R.(RR,RR(R((s//usr/local/lib/python2.5/idlelib/HyperParser.pyt
is_in_codebss([{cCsÀ|i|id}|i}x„|i|p7|i|i|d|jp|i|d|jo=|d8}|djodSnt||i|dƒ}q W|id}x=|t|iƒjo&|i|d|jo|d7}q´W|iid|i	t|iƒ|i|dfƒ}|t|iƒjp!|i|dt|iƒjo|odSn|i	}n<|iid|i	t|iƒ|i|ddfƒ}||fS(s’If the index given to the HyperParser is surrounded by a bracket
        defined in openers (or at least has one before it), return the
        indices of the opening bracket and the closing bracket (or the
        end of line, whichever comes first).
        If it is not surrounded by brackets, or the end of line comes before
        the closing bracket and mustclose is True, returns None.
        iis%s-%dcN(
RR,RRRtminRRRR(Rtopenerst	mustclosetbracketingleveltbeforetaftertbeforeindext
afterindex((s//usr/local/lib/python2.5/idlelib/HyperParser.pytget_surrounding_bracketshs4	


+!
)s 	
\t_cCs‡|}x4||jo&||d|ijo|d8}q	W||jo5|||ijpti|||!ƒo
|}n||S(Ni(t	_id_charst_id_first_charstkeywordt	iskeyword(RRtlimittposR(((s//usr/local/lib/python2.5/idlelib/HyperParser.pyt_eat_identifier˜s%!
c
CsB|iƒptdƒ‚n|i}|i}|i}||d}|i}|}t}xÖxÚ||jo&||d|ijo|d8}qa|o6||jo)||ddjo|d8}t}qa||joX|djoK|||dddjo.|d8}||d}||dd}qaPqa|pPn|i|||ƒ}|o||}|}t	}q^||jo¦||d}	x5|djo'||dd|	jo|d8}q›W||d|joPn||d}|d8}||d}|}||djoq1Pq^Pq^|||i!S(s‚Return a string with the Python expression which ends at the given
        index, which is empty if there is no real one.
        s?get_expression should only be called if index is inside a code.iit.R0is([(
R1R*RRR,R+tTruet_whitespace_charsRBtFalse(
RRRt
brck_indext
brck_limitRAtlast_identifier_post
postdot_phasetrettlevel((s//usr/local/lib/python2.5/idlelib/HyperParser.pytget_expression¡s\
				%"





&
(t__name__t
__module__R)RR/R1RFR:REtstringt
ascii_letterstdigitsR<R=RBRM(((s//usr/local/lib/python2.5/idlelib/HyperParser.pyRs	7			'
		((t__doc__RPR>RR(((s//usr/local/lib/python2.5/idlelib/HyperParser.pys<module>	s

Man Man