‡Æ
Nö9c       së     d  Z    d k Z  d k 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 ¹ xB ¹ d o7 º 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      sb   
 d  Z    e e d „ Z # d „  Z ) d „  Z R 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   infiles"   /mit/python/lib/python2.0/shlex.pys   __init__ s$   
c    sD   # $ % |  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   toks"   /mit/python/lib/python2.0/shlex.pys
   push_token# s   c    s;  ) * + |  i oR , |  i d } - |  i d |  _ . |  i d j o / d | GHn 0 | Sn 2 |  i ƒ  } 4 x´ 4 | |  i j o  5 |  i |  i ƒ  ƒ \ } } 6 |  i
 i d |  i |  i |  i f ƒ 7 | |  _ 8 | |  _ 9 d |  _ : |  i o ; d |  i f GHn < |  i ƒ  } qz W> xÂ > | d j o± ? t |  i
 ƒ d j o @ d SnŠ B |  i i ƒ  C |  i
 d \ |  _ |  _ |  _ D |  i
 d |  _
 E |  i o F d |  i |  i f GHn H d |  _ I |  i ƒ  } q4WK |  i d j o' L | o M d | GHn	 O d	 GHn P | Sd
 S(   sB   Get a token from the input stream (or from stack if it's nonempty)i    i   s   shlex: popping token s   shlex: pushing to file %ss    s   shlex: popping to %s, line %ds    s   shlex: token=s   shlex: token=EOFN(   s   selfs   pushbacks   toks   debugs
   read_tokens   raws   sources
   sourcehooks   newfiles	   newstreams	   filestacks   inserts   infiles   instreams   linenos	   get_tokens   lens   closes   state(   s   selfs   toks   raws   newfiles	   newstreams"   /mit/python/lib/python2.0/shlex.pys	   get_token) sD    ( "
c    s  R S T d } U x©U d ožV |  i i d ƒ } W | d j o X |  i d |  _ n Y |  i d j o' Z d Gt |  i ƒ Gd Gt | ƒ GHn \ |  i t	 j o ] d |  _
 ^ Pnþ_ |  i d j o3` | o a t	 |  _ b Pnc | |  i j o> d |  i d j o e d	 GHn f |  i
 o g Pn i q nÀ j | |  i j o' k |  i i ƒ  l |  i d |  _ n† m | |  i j o n | |  _
 o d
 |  _ nW p | |  i j o q | |  _
 r | |  _ n( t | |  _
 u |  i
 o v Pn x q n¸y |  i |  i j o> z |  i
 | |  _
 { | |  i j o | d |  _ } Pn nd~ |  i d
 j oP | o € t	 |  _  Pn.‚ | |  i j oJ ƒ |  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
 | |  _
 n]  | 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)s    i   s   
i   s   shlex: in states   I see character:s    i   s+   shlex: I see whitespace in whitespace states   as%   shlex: I see whitespace in word states&   shlex: I see punctuation in word states   shlex: raw token=s   shlex: raw token=EOFN(   s   toks   selfs   instreams   reads   nextchars   linenos   debugs   reprs   states   Nones   tokens
   whitespaces
   commenterss   readlines	   wordcharss   quotess   pushbacks   result(   s   selfs   toks   nextchars   results"   /mit/python/lib/python2.0/shlex.pys
   read_tokenR 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   s    s   rN(
   s   newfiles   types   selfs   infiles   oss   paths   isabss   joins   dirnames   open(   s   selfs   newfiles"   /mit/python/lib/python2.0/shlex.pys
   sourcehook¡ s   3+c    sQ   ª « ¬ | 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   linenos"   /mit/python/lib/python2.0/shlex.pys   error_leaderª s   (   s   __doc__s   Nones   __init__s
   push_tokens	   get_tokens
   read_tokens
   sourcehooks   error_leader(    s"   /mit/python/lib/python2.0/shlex.pys   shlex
 s   	)O	s   __main__i   s   Token: (   s   __doc__s   os.paths   oss   syss   shlexs   __name__s   lens   argvs   lexers   files   opens	   get_tokens   tts   repr(    s"   /mit/python/lib/python2.0/shlex.pys   ? s   © 

