Current Path : /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 |
Current File : //usr/local/lib/python2.5/idlelib/HyperParser.pyc |
³ò h”Rc @ sA d Z d d k Z d d k Z d d k Z d d d „ ƒ YZ d S( 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ÿÿÿÿNt HyperParserc B st e Z d „ Z d „ Z d „ Z d „ Z d e d „ Z d Z e i e i d Z e i d Z d „ Z d „ Z RS( c C sû | | _ | i | _ } t i | i | i ƒ } d „ } | | i | ƒ ƒ } | i p¨ x | i D]‚ } t | | d ƒ } | d } d | } | i | i | | ƒ d ƒ | i | i | ƒ ƒ } | d j p | d j o Pqc qc W| i | p d ƒ nb | i d | ƒ } | o | d } n d } d | } | i | i | | ƒ d ƒ | i d ƒ | i d | _ | | _ | i ƒ | _ g } t t | i ƒ ƒ D]: } | | d j o$ | i | d | i | d d j q¤~ | _ | i | ƒ d S( s[ Initialize the HyperParser to analyze the surroundings of the given index. c S s t t | ƒ ƒ S( N( t intt float( t index( ( s/ /usr/local/lib/python2.5/idlelib/HyperParser.pyt index2line s i s .0s %d.ends i t consoles 1.0iþÿÿÿN( t editwint textt PyParset Parsert indentwidtht tabwidthR t context_use_ps1t num_context_linest maxt set_strt gett find_good_parse_startt _build_char_in_string_funct Nonet set_lot tag_prevranget strt rawtextt stopatindext get_last_stmt_bracketingt bracketingt ranget lent isopenert set_index( t selfR R R t parserR t lnot contextt startatt startatindexR t bodt rt _[1]t i( ( s/ /usr/local/lib/python2.5/idlelib/HyperParser.pyt __init__ s<