-ķ
ŹT=c      sø     d  Z   	 d k l Z 
 d k l Z l Z  d k T d k l Z  d k	 Z	  d   Z
  d   Z & d   Z I e d	 j o( J e	 i   K e	 i   L e   n d S(
   sĪ   
blisp   -  The best lisp implementation in the world!
by Brendan O'Connor

This file, main.py, is the big mish-mash of stuff that hasn't been
modularized yet.  It's what you run to start the interpreter.

(   s
   generators(   s   ParseStrings
   ParenCount(   s   *(   s   dbgsNc   sS     t  d |   }  t d I| IJ | g }  t i i d i |  Sd  S(   Ns   %ss   Processing: s   eval(	   s   ParseStrings   ss   eval_lispargs   dbgss   eval_lispargss   interpreters   the_interpers   builtin_functionss   Call(   s   ss   eval_lispargss   eval_lisparg(    (    s   main.pys   ProcessString s   c   s     t  |  t  o  |  Sn  t  |  t  o  t |   Sn  t |   d j o |  d d j o  d t |  d  Sn  d g }  x4 |  D ]) }   | t |  7} ! | d g 7} q W" | i	   # | d g 7} $ t i
 d	 |  Sd  S(
   Ni   i    s   quotes   'i   s   (s    s   )s    (   s
   isinstances   lss   strs   lists   reprs   lens   Unparses   rets   elems   pops   join(   s   lss   rets   elem(    (    s   main.pys   Unparse s     '
 	c    s  & ' ) d k  } * y * d k } Wn + t j
 o + d GHn X- d GH2 x$2 d o3 y 4 t d  }  Wn 5 t j
 o 5 Pn X7 |  d j p |  d d j o
 7 qT n 8 |  d	 j o 8 Pn : x2 : t |   d j o ; |  d
 t d  7}  qŚ W= y > t t |    GHWnI ? t	 j
 o @ d GHA | i
   n  B C d GHD | i
   n XqT WF d GHd S(   s   Interactive Interpreter loopNs/   No readline support, you must not be on unix =(sa   
This is blisp.
               
By Brendan O'Connor.  Positively the best LISP ever!
'q' to quit.i   s   *** blisp :-)  s    i    s   ;s   qs   
s   ......... :-P  s0   Oops, a Lisp error! Here's the Python traceback:s   Interpreter error!s   
See you later!(   s	   tracebacks   readlines   ImportErrors	   raw_inputs   ss   EOFErrors
   ParenCounts   Unparses   ProcessStrings   LispExceptions	   print_exc(   s   ss	   tracebacks   readline(    (    s   main.pys   IILoop& s:      
 	! 
  s   __main__(   s   __doc__s
   __future__s
   generatorss   Parsers   ParseStrings
   ParenCounts	   lisp_excss   debugs   dbgss   interpreters   ProcessStrings   Unparses   IILoops   __name__s   inits   readopts(   s   dbgss   IILoops
   ParenCounts
   generatorss   ParseStrings   interpreters   ProcessStrings   Unparse(    (    s   main.pys   ? s   
#
