-ķ
ē¶<c       sÄ   d  Z  d k Z d k Z d g Z d f  d     YZ e d j o e e i  d j o e   Z	 n# e i d Z
 e e e
  e
  Z	 x3 d o+ e	 i   Z e o d e e  GHn Pq Wn d S(   s8   A lexical analyzer class for simple shell-like syntaxes.Ns   shlexc      se   t  Z d  Z e e d  Z d   Z e d  Z d   Z d   Z d   Z	 d   Z
 e e d  Z RS(	   s8   A lexical analyzer class for simple shell-like syntaxes.c    s¼   | o | |  _  | |  _ n t i |  _  t |  _ d |  _ d |  _ d |  _ d |  _	 d |  _
 g  |  _ d |  _ d |  _ d |  _ g  |  _ t |  _ |  i o d	 |  i  |  i f GHn d  S(
   Ns   #s?   abcdfeghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_s    	
s   '"s    i   i    s    s   shlex: reading from %s, line %d(   s   instreams   selfs   infiles   syss   stdins   Nones
   commenterss	   wordcharss
   whitespaces   quotess   states   pushbacks   linenos   debugs   tokens	   filestacks   source(   s   selfs   instreams   infile(    (    s   /usr/lib/python2.2/shlex.pys   __init__ s$    													
c    s5   |  i d j o d | GHn | g |  i |  _ d S(   s:   Push a token onto the stack popped by the get_token methodi   s   shlex: pushing token N(   s   selfs   debugs   toks   pushback(   s   selfs   tok(    (    s   /usr/lib/python2.2/shlex.pys
   push_token% s     c    s{   |  i i d |  i |  i |  i f  | |  _ | |  _ d |  _ |  i o- | o d |  i f GHn d |  i f GHn d S(   s9   Push an input source onto the lexer's input source stack.i    i   s   shlex: pushing to file %ss   shlex: pushing to stream %sN(	   s   selfs	   filestacks   inserts   infiles   instreams   linenos   newfiles	   newstreams   debug(   s   selfs	   newstreams   newfile(    (    s   /usr/lib/python2.2/shlex.pys   push_source+ s     %			
c    sl   |  i i   |  i d \ |  _ |  _ |  _ |  i d |  _ |  i o d |  i |  i f GHn d |  _ d S(   s   Pop the input source stack.i    i   s   shlex: popping to %s, line %ds    N(   s   selfs   instreams   closes	   filestacks   infiles   linenos   debugs   state(   s   self(    (    s   /usr/lib/python2.2/shlex.pys
   pop_source7 s     
c    s8  |  i oC |  i d } |  i d |  _ |  i d j o d | GHn | Sn |  i   } x] | |  i j oL |  i |  i    } | o  | \ } } |  i | |  n |  i   } q\ WxF | d j o8 t |  i  d j o d Sn |  i   |  i   } q¼ W|  i d j o | o d | GHn d GHn | Sd S(   sB   Get a token from the input stream (or from stack if it's nonempty)i    i   s   shlex: popping token s    s   shlex: token=s   shlex: token=EOFN(   s   selfs   pushbacks   toks   debugs
   read_tokens   raws   sources
   sourcehooks   specs   newfiles	   newstreams   push_sources	   get_tokens   lens	   filestacks
   pop_source(   s   selfs   toks	   newstreams   raws   specs   newfile(    (    s   /usr/lib/python2.2/shlex.pys	   get_tokenA s4     
  
	c    sn  x#d o|  i i d  } | d j o |  i d |  _ n |  i d j o$ d Gt |  i  Gd Gt |  GHn |  i t j o d |  _	 Pn|  i d j oń | o t |  _ PnŲ | |  i
 j o/ |  i d j o	 d	 GHn |  i	 o Pn q n | |  i j o! |  i i   |  i d |  _ nh | |  i j o | |  _	 d
 |  _ nB | |  i j o | |  _	 | |  _ n | |  _	 |  i	 o Pn q n|  i |  i j o` |  i	 | |  _	 | |  i j o d |  _ Pn/ | o& |  i d j o	 d GHn t d  n n|  i d
 j o| o t |  _ Pnõ | |  i
 j o8 |  i d j o	 d GHn d |  _ |  i	 o Pn q n­ | |  i j o! |  i i   |  i d |  _ n| | |  i j p | |  i j o |  i	 | |  _	 nH | g |  i |  _ |  i d j o	 d GHn d |  _ |  i	 o Pn q n q W|  i	 } d |  _	 |  i d j o | o d | GHn d GHn | Sd S(   s>   Read a token from the input stream (no pushback or inclusions)i   s   
i   s   shlex: in states   I see character:s    s    i   s+   shlex: I see whitespace in whitespace states   as    shlex: I see EOF in quotes states   No closing quotations%   shlex: I see whitespace in word states&   shlex: I see punctuation in word states   shlex: raw token=s   shlex: raw token=EOFN(   s   selfs   instreams   reads   nextchars   linenos   debugs   reprs   states   Nones   tokens
   whitespaces
   commenterss   readlines	   wordcharss   quotess
   ValueErrors   pushbacks   result(   s   selfs   results   nextchar(    (    s   /usr/lib/python2.2/shlex.pys
   read_tokena s      $			
			
					
 		
			c    s   | d d j o | d d !} n t |  i  t d  j o t i i |  o( t i i t i i |  i  |  } n | t	 | d  f Sd S(   s(   Hook called on a filename to be sourced.i    s   "i   i’’’’s    s   rN(
   s   newfiles   types   selfs   infiles   oss   paths   isabss   joins   dirnames   open(   s   selfs   newfile(    (    s   /usr/lib/python2.2/shlex.pys
   sourcehook“ s     0(c    s<   | o |  i  } n | o |  i } n d | | f Sd S(   s<   Emit a C-compiler-like, Emacs-friendly error-message leader.s   "%s", line %d: N(   s   infiles   selfs   lineno(   s   selfs   infiles   lineno(    (    s   /usr/lib/python2.2/shlex.pys   error_leader½ s     (   s   __name__s
   __module__s   __doc__s   Nones   __init__s
   push_tokens   push_sources
   pop_sources	   get_tokens
   read_tokens
   sourcehooks   error_leader(    (    (    s   /usr/lib/python2.2/shlex.pys   shlex s    		
	 	S		s   __main__i   s   Token: (   s   __doc__s   os.paths   oss   syss   __all__s   shlexs   __name__s   lens   argvs   lexers   files   opens	   get_tokens   tts   repr(   s   __all__s   oss   tts   lexers   syss   shlexs   file(    (    s   /usr/lib/python2.2/shlex.pys   ? s   			ŗ 