
V}Oc           @   s   d  d k  Z  d  d k l Z l Z l Z l Z d  d k l Z l Z l	 Z	 d e f d     YZ
 d e f d     YZ d e f d	     YZ d
 e f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ d S(   iN(   t   Parsert   TokenStreamt   RecognitionExceptiont   Token(   t   CommonTreeAdaptort   TreeAdaptort   Treet   DebugParserc           B   se   e  Z d d d   Z d   Z d   Z e e e  Z d   Z d   Z	 d   Z
 d   Z d   Z RS(	   c         O   s\   t  | t  p t | |  } n t t |   i | | | |  d  |  _ |  i |  d  S(   N(   t
   isinstancet   DebugTokenStreamt   superR   t   __init__t   Nonet   _dbgt   setDebugListener(   t   selft   streamt   statet   dbgt   argst   kwargs(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR   $   s
    	c         C   s0   t  |  i d  o | |  i _ n | |  _ d S(   s   Provide a new debug event listener for this parser.  Notify the
        input stream too that it should send events to this listener.
	R   N(   t   hasattrt   inputR   R   (   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR   1   s    c         C   s   |  i  S(   N(   R   (   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt   getDebugListener;   s    c         C   s   |  i  i   d  S(   N(   R   t   beginResync(   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR   A   s    c         C   s   |  i  i   d  S(   N(   R   t	   endResync(   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR   E   s    c         C   s   |  i  i |  d  S(   N(   R   t   beginBacktrack(   R   t   level(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR   I   s    c         C   s   |  i  i | |  d  S(   N(   R   t   endBacktrack(   R   R   t
   successful(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR   M   s    c         C   s5   t  | t  o |  i i |  n t i |  d  S(   N(   R   R   R   t   recognitionExceptiont	   tracebackt	   print_exc(   R   t   exc(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt   reportErrorQ   s    N(   t   __name__t
   __module__R   R   R   R   t   propertyR   R   R   R   R   R"   (    (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR   #   s   	
					R	   c           B   s   e  Z d d   Z d   Z d   Z e e e  Z d   Z d   Z	 d   Z
 d   Z d   Z d   Z d	   Z d d
  Z d   Z d   Z d   Z d   Z d   Z d d d  Z RS(   c         C   sE   | |  _  t |  _ d  |  _ d  |  _ |  i |  |  i  i d  d  S(   Ni   (   R   t   Truet   initialStreamStateR   t
   lastMarkerR   R   t   LT(   R   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR   Z   s    				c         C   s   |  i  S(   N(   R   (   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR   h   s    c         C   s   | |  _  d  S(   N(   R   (   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR   k   s    c         C   s   |  i  o |  i   n |  i i   } |  i i d  } |  i i   |  i i   } |  i i |  | | d j o> x; t | d |  D]" } |  i i	 |  i i
 |   q Wn d  S(   Ni   (   R'   t   consumeInitialHiddenTokensR   t   indexR)   t   consumeR   t   consumeTokent   ranget   consumeHiddenTokent   get(   R   t   at   tt   bt   idx(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR,   q   s    
 c         C   sO   |  i  i   } x0 t |  D]" } |  i i |  i  i |   q Wt |  _ d S(   s&   consume all initial off-channel tokensN(   R   R+   R.   R   R/   R0   t   FalseR'   (   R   t   firstOnChannelTokenIndexR4   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR*      s
      c         C   sA   |  i  o |  i   n |  i i |  } |  i i | |  | S(   N(   R'   R*   R   R)   R   (   R   t   iR2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR)      s
    
c         C   sD   |  i  o |  i   n |  i i |  } |  i i | |  | i S(   N(   R'   R*   R   R)   R   t   type(   R   R7   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt   LA   s
    
c         C   s   |  i  i |  S(   N(   R   R0   (   R   R7   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR0      s    c         C   s   |  i  i   S(   N(   R   R+   (   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR+      s    c         C   s,   |  i  i   |  _ |  i i |  i  |  i S(   N(   R   t   markR(   R   (   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR:      s    c         C   s$   |  i  i |  |  i i |  d  S(   N(   R   t   rewindR   (   R   t   marker(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR;      s    c         C   s   d  S(   N(    (   R   R<   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt   release   s    c         C   s   |  i  i |  d  S(   N(   R   t   seek(   R   R+   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR>      s    c         C   s   |  i  i   S(   N(   R   t   size(   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR?      s    c         C   s   |  i  i   S(   N(   R   t   getTokenSource(   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR@      s    c         C   s   |  i    i   S(   N(   R@   t   getSourceName(   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRA      s    c         C   s   |  i  i | |  S(   N(   R   t   toString(   R   t   startt   stop(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRB      s    N(   R#   R$   R   R   R   R   R%   R   R,   R*   R)   R9   R0   R+   R:   R;   R=   R>   R?   R@   RA   RB   (    (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR	   Y   s$   				
												t   DebugTreeAdaptorc           B   sC  e  Z d  Z d   Z d   Z d# d  Z d   Z d   Z d   Z	 d   Z
 d   Z d	   Z d
   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z  d   Z! d   Z" d    Z# d!   Z$ d"   Z% RS($   s  A TreeAdaptor proxy that fires debugging events to a DebugEventListener
    delegate and uses the TreeAdaptor delegate to do the actual work.  All
    AST events are triggered by this adaptor; no code gen changes are needed
    in generated rules.  Debugging events are triggered *after* invoking
    tree adaptor routines.

    Trees created with actions in rewrite actions like "-> ^(ADD {foo} {bar})"
    cannot be tracked as they might not use the adaptor to create foo, bar.
    The debug listener has to deal with tree node IDs for which it did
    not see a createNode event.  A single <unknown> node is sufficient even
    if it represents a whole tree.
    c         C   s   | |  _  | |  _ d  S(   N(   R   t   adaptor(   R   R   RF   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR      s    	c         C   sY   | i    d j  o |  i | i   | i    S|  i i |  } |  i i | |  | S(   Ni    (   t   getTokenIndext   createFromTypet   getTypet   getTextRF   t   createWithPayloadR   t
   createNode(   R   t   payloadt   node(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRK      s
    c         C   s,   |  i  i | | |  } |  i i |  | S(   N(   RF   t   createFromTokenR   RL   (   R   t	   tokenTypet	   fromTokent   textRN   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRO      s    c         C   s)   |  i  i | |  } |  i i |  | S(   N(   RF   RH   R   RL   (   R   RP   RR   RN   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRH      s    c         C   s:   t  i | | | |  } | d  j	 o t i |  n | S(   N(   t   selfadaptort	   errorNodeR   R   (   R   R   RC   RD   R!   RN   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRT      s    c         C   s#   |  i  i |  } |  i |  | S(   N(   RF   t   dupTreet   simulateTreeConstruction(   R   t   treeR2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRU      s    c         C   sl   |  i  i |  xU t |  i i |   D]; } |  i i | |  } |  i |  |  i  i | |  q) Wd S(   s1   ^(A B C): emit create A, create B, add child, ...N(   R   RL   R.   RF   t   getChildCountt   getChildRV   t   addChild(   R   R2   R7   t   child(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRV     s     c         C   s&   |  i  i |  } |  i i |  | S(   N(   RF   t   dupNodeR   RL   (   R   t   treeNodet   d(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR\     s    c         C   s#   |  i  i   } |  i i |  | S(   N(   RF   t   nilR   t   nilNode(   R   RN   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR_     s    c         C   s   |  i  i |  S(   N(   RF   t   isNil(   R   RW   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRa     s    c         C   s|   t  | t  o# |  i |  } |  i | |  nF | d  j p | d  j o d  S|  i i | |  |  i i | |  d  S(   N(   R   R   RK   RZ   R   RF   R   (   R   R2   R[   t   n(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRZ     s    c         C   sb   t  | t  o& |  i |  } |  i i | |  n |  i i | |  } |  i i | |  | S(   N(   R   R   RK   RF   t
   becomeRootR   (   R   t   newRoott   oldRootRb   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRc   '  s    c         C   s   |  i  i |  S(   N(   RF   t   rulePostProcessing(   R   t   root(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRf   2  s    c         C   s   |  i  i |  S(   N(   RF   RI   (   R   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRI   6  s    c         C   s   |  i  i | |  d  S(   N(   RF   t   setType(   R   R2   R8   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRh   :  s    c         C   s   |  i  i |  S(   N(   RF   RJ   (   R   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRJ   >  s    c         C   s   |  i  i | |  d  S(   N(   RF   t   setText(   R   R2   RR   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRi   B  s    c         C   s   |  i  i |  S(   N(   RF   t   getToken(   R   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRj   F  s    c         C   sg   |  i  i | | |  | d  j	 o@ | d  j	 o3 | d  j	 o& |  i i | | i   | i    n d  S(   N(   RF   t   setTokenBoundariesR   R   RG   (   R   R2   t
   startTokent	   stopToken(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRk   J  s
    '	c         C   s   |  i  i |  S(   N(   RF   t   getTokenStartIndex(   R   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRn   R  s    c         C   s   |  i  i |  S(   N(   RF   t   getTokenStopIndex(   R   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRo   V  s    c         C   s   |  i  i | |  S(   N(   RF   RY   (   R   R2   R7   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRY   Z  s    c         C   s   |  i  i | | |  d  S(   N(   RF   t   setChild(   R   R2   R7   R[   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRp   ^  s    c         C   s   |  i  i | |  S(   N(   RF   t   deleteChild(   R   R2   R7   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRq   b  s    c         C   s   |  i  i |  S(   N(   RF   RX   (   R   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRX   f  s    c         C   s   |  i  i |  S(   N(   RF   t   getUniqueID(   R   RN   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRr   j  s    c         C   s   |  i  i |  S(   N(   RF   t	   getParent(   R   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRs   n  s    c         C   s   |  i  i |  S(   N(   RF   t   getChildIndex(   R   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRt   r  s    c         C   s   |  i  i | |  d  S(   N(   RF   t	   setParent(   R   R2   t   parent(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRu   v  s    c         C   s   |  i  i | |  d  S(   N(   RF   t   setChildIndex(   R   R2   R+   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRw   z  s    c         C   s   |  i  i | | | |  d  S(   N(   RF   t   replaceChildren(   R   Rv   t   startChildIndext   stopChildIndexR2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRx   ~  s    c         C   s   t  S(   N(   R   (   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s   | |  _  d  S(   N(   R   (   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s   |  i  S(   N(   RF   (   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt   getTreeAdaptor  s    N(&   R#   R$   t   __doc__R   RK   R   RO   RH   RT   RU   RV   R\   R_   Ra   RZ   Rc   Rf   RI   Rh   RJ   Ri   Rj   Rk   Rn   Ro   RY   Rp   Rq   RX   Rr   Rs   Rt   Ru   Rw   Rx   R   R   R{   (    (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRE      sF   																																			t   DebugEventListenerc           B   s  e  Z d  Z d Z d   Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 d	   Z d
   Z d   Z d   Z d d  Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d d  Z d   Z d   Z d   Z  RS(    s  All debugging events that a recognizer can trigger.
 
    I did not create a separate AST debugging interface as it would create
    lots of extra classes and DebugParser has a dbg var defined, which makes
    it hard to change to ASTDebugEventListener.  I looked hard at this issue
    and it is easier to understand as one monolithic event interface for all
    possible events.  Hopefully, adding ST debugging stuff won't be bad.  Leave
    for future. 4/26/2006.
    t   2c         C   s   d S(   sB  The parser has just entered a rule. No decision has been made about
        which alt is predicted.  This is fired AFTER init actions have been
        executed.  Attributes are defined and available etc...
        The grammarFileName allows composite grammars to jump around among
        multiple grammar files.
        N(    (   R   t   grammarFileNamet   ruleName(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt	   enterRule  s    c         C   s   d S(   s   Because rules can have lots of alternatives, it is very useful to
        know which alt you are entering.  This is 1..n for n alts.
        N(    (   R   t   alt(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt   enterAlt  s    c         C   s   d S(   s  This is the last thing executed before leaving a rule.  It is
        executed even if an exception is thrown.  This is triggered after
        error reporting and recovery have occurred (unless the exception is
        not caught in this rule).  This implies an "exitAlt" event.
        The grammarFileName allows composite grammars to jump around among
        multiple grammar files.
	N(    (   R   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt   exitRule  s    c         C   s   d S(   s7   Track entry into any (...) subrule other EBNF constructN(    (   R   t   decisionNumber(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt   enterSubRule  s    c         C   s   d  S(   N(    (   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt   exitSubRule  s    c         C   s   d S(   s,  Every decision, fixed k or arbitrary, has an enter/exit event
        so that a GUI can easily track what LT/consume events are
        associated with prediction.  You will see a single enter/exit
        subrule but multiple enter/exit decision events, one for each
        loop iteration.
        N(    (   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt   enterDecision  s    c         C   s   d  S(   N(    (   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt   exitDecision  s    c         C   s   d S(   s   An input token was consumed; matched by any kind of element.
        Trigger after the token was matched by things like match(), matchAny().
	N(    (   R   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR-     s    c         C   s   d S(   s   An off-channel input token was consumed.
        Trigger after the token was matched by things like match(), matchAny().
        (unless of course the hidden token is first stuff in the input stream).
	N(    (   R   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR/     s    c         C   s   d S(   s  Somebody (anybody) looked ahead.  Note that this actually gets
        triggered by both LA and LT calls.  The debugger will want to know
        which Token object was examined.  Like consumeToken, this indicates
        what token was seen at that depth.  A remote debugger cannot look
        ahead into a file it doesn't have so LT events must pass the token
        even if the info is redundant.
	N(    (   R   R7   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR)     s    c         C   s   d S(   s   The parser is going to look arbitrarily ahead; mark this location,
        the token stream's marker is sent in case you need it.
	N(    (   R   R<   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR:     s    c         C   s   d S(   s   After an arbitrairly long lookahead as with a cyclic DFA (or with
        any backtrack), this informs the debugger that stream should be
        rewound to the position associated with marker.

        N(    (   R   R<   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR;     s    c         C   s   d  S(   N(    (   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s   d  S(   N(    (   R   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR      s    c         C   s   d S(   s  To watch a parser move through the grammar, the parser needs to
        inform the debugger what line/charPos it is passing in the grammar.
        For now, this does not know how to switch from one grammar to the
        other and back for island grammars etc...

        This should also allow breakpoints because the debugger can stop
        the parser whenever it hits this line/pos.
	N(    (   R   t   linet   pos(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt   location  s    	c         C   s   d S(   s  A recognition exception occurred such as NoViableAltException.  I made
        this a generic event so that I can alter the exception hierachy later
        without having to alter all the debug objects.

        Upon error, the stack of enter rule/subrule must be properly unwound.
        If no viable alt occurs it is within an enter/exit decision, which
        also must be rewound.  Even the rewind for each mark must be unwount.
        In the Java target this is pretty easy using try/finally, if a bit
        ugly in the generated code.  The rewind is generated in DFA.predict()
        actually so no code needs to be generated for that.  For languages
        w/o this "finally" feature (C++?), the target implementor will have
        to build an event stack or something.

        Across a socket for remote debugging, only the RecognitionException
        data fields are transmitted.  The token object or whatever that
        caused the problem was the last object referenced by LT.  The
        immediately preceding LT event should hold the unexpected Token or
        char.

        Here is a sample event trace for grammar:

        b : C ({;}A|B) // {;} is there to prevent A|B becoming a set
          | D
          ;

        The sequence for this rule (with no viable alt in the subrule) for
        input 'c c' (there are 3 tokens) is:

		commence
		LT(1)
		enterRule b
		location 7 1
		enter decision 3
		LT(1)
		exit decision 3
		enterAlt1
		location 7 5
		LT(1)
		consumeToken [c/<4>,1:0]
		location 7 7
		enterSubRule 2
		enter decision 2
		LT(1)
		LT(1)
		recognitionException NoViableAltException 2 1 2
		exit decision 2
		exitSubRule 2
		beginResync
		LT(1)
		consumeToken [c/<4>,1:1]
		LT(1)
		endResync
		LT(-1)
		exitRule b
		terminate
	N(    (   R   t   e(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    9c         C   s   d S(   s   Indicates the recognizer is about to consume tokens to resynchronize
        the parser.  Any consume events from here until the recovered event
        are not part of the parse--they are dead tokens.
        N(    (   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR   L  s    c         C   s   d S(   s  Indicates that the recognizer has finished consuming tokens in order
        to resychronize.  There may be multiple beginResync/endResync pairs
        before the recognizer comes out of errorRecovery mode (in which
        multiple errors are suppressed).  This will be useful
        in a gui where you want to probably grey out tokens that are consumed
        but not matched to anything in grammar.  Anything between
        a beginResync/endResync pair was tossed out by the parser.
	N(    (   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR   T  s    	c         C   s   d S(   sB   A semantic predicate was evaluate with this result and action textN(    (   R   t   resultt	   predicate(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt   semanticPredicate`  s    c         C   s   d S(   s  Announce that parsing has begun.  Not technically useful except for
        sending events over a socket.  A GUI for example will launch a thread
        to connect and communicate with a remote parser.  The thread will want
        to notify the GUI when a connection is made.  ANTLR parsers
        trigger this upon entry to the first rule (the ruleLevel is used to
        figure this out).
	N(    (   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt   commencee  s    c         C   s   d S(   s   Parsing is over; successfully or not.  Mostly useful for telling
        remote debugging listeners that it's time to quit.  When the rule
        invocation level goes to zero at the end of a rule, we are done
        parsing.
	N(    (   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt	   terminatep  s    c         C   s   d S(   s  Input for a tree parser is an AST, but we know nothing for sure
        about a node except its type and text (obtained from the adaptor).
        This is the analog of the consumeToken method.  Again, the ID is
        the hashCode usually of the node so it only works if hashCode is
        not implemented.  If the type is UP or DOWN, then
        the ID is not really meaningful as it's fixed--there is
        just one UP node and one DOWN navigation node.
        N(    (   R   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt   consumeNode{  s    	c         C   s   d S(   s   The tree parser lookedahead.  If the type is UP or DOWN,
        then the ID is not really meaningful as it's fixed--there is
        just one UP node and one DOWN navigation node.
	N(    (   R   R7   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR)     s    c         C   s   d S(   s  A nil was created (even nil nodes have a unique ID...
        they are not "null" per se).  As of 4/28/2006, this
        seems to be uniquely triggered when starting a new subtree
        such as when entering a subrule in automatic mode and when
        building a tree in rewrite mode.

        If you are receiving this event over a socket via
        RemoteDebugEventSocketListener then only t.ID is set.
	N(    (   R   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR`     s    
c         C   s   d S(   so   Upon syntax error, recognizers bracket the error with an error node
        if they are building ASTs.
        N(    (   R   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRT     s    c         C   s   d S(   s   Announce a new node built from token elements such as type etc...

        If you are receiving this event over a socket via
        RemoteDebugEventSocketListener then only t.ID, type, text are
        set.
	N(    (   R   RN   t   token(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRL     s    c         C   s   d S(   sg  Make a node the new root of an existing root.

        Note: the newRootID parameter is possibly different
        than the TreeAdaptor.becomeRoot() newRoot parameter.
        In our case, it will always be the result of calling
        TreeAdaptor.becomeRoot() and not root_n or whatever.

        The listener should assume that this event occurs
        only when the current subrule (or rule) subtree is
        being reset to newRootID.

        If you are receiving this event over a socket via
        RemoteDebugEventSocketListener then only IDs are set.

        @see antlr3.tree.TreeAdaptor.becomeRoot()
	N(    (   R   Rd   Re   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRc     s    c         C   s   d S(   s   Make childID a child of rootID.

        If you are receiving this event over a socket via
        RemoteDebugEventSocketListener then only IDs are set.

        @see antlr3.tree.TreeAdaptor.addChild()
        N(    (   R   Rg   R[   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRZ     s    c         C   s   d S(   s   Set the token start/stop token index for a subtree root or node.

        If you are receiving this event over a socket via
        RemoteDebugEventSocketListener then only t.ID is set.
	N(    (   R   R2   t   tokenStartIndext   tokenStopIndex(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRk     s    N(!   R#   R$   R|   t   PROTOCOL_VERSIONR   R   R   R   R   R   R   R-   R/   R)   R:   R   R;   R   R   R   R   R   R   R   R   R   R   R`   RT   RL   Rc   RZ   Rk   (    (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR}     s>   							
										<									
		t   BlankDebugEventListenerc           B   s   e  Z d  Z RS(   s  A blank listener that does nothing; useful for real classes so
    they don't have to have lots of blank methods and are less
    sensitive to updates to debug interface.

    Note: this class is identical to DebugEventListener and exists purely
    for compatibility with Java.
    (   R#   R$   R|   (    (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s   t   TraceDebugEventListenerc           B   s   e  Z d  Z d d  Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 d   Z d	   Z d
   Z d d  Z d   Z d   Z d   Z RS(   s   A listener that simply records text representations of the events.

    Useful for debugging the debugging facility ;)

    Subclasses can override the record() method (which defaults to printing to
    stdout) to record the events in a different way.
    c         C   s:   t  t |   i   | d  j o t   } n | |  _ d  S(   N(   R
   R   R   R   R   RF   (   R   RF   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s   t  i i | d  d  S(   Ns   
(   t   syst   stdoutt   write(   R   t   event(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt   record  s    c         C   s   |  i  d |  d  S(   Ns
   enterRule (   R   (   R   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s   |  i  d |  d  S(   Ns	   exitRule (   R   (   R   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s   |  i  d  d  S(   NR   (   R   (   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s   |  i  d  d  S(   NR   (   R   (   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s   |  i  d | | f  d  S(   Ns   location %s:%s(   R   (   R   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   sB   |  i  d |  i i |  |  i i |  |  i i |  f  d  S(   Ns   consumeNode %s %s %s(   R   RF   Rr   RJ   RI   (   R   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    	c         C   sE   |  i  d | |  i i |  |  i i |  |  i i |  f  d  S(   Ns   LT %s %s %s %s(   R   RF   Rr   RJ   RI   (   R   R7   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR)     s
    	c         C   s!   |  i  d |  i i |   d  S(   Ns
   nilNode %s(   R   RF   Rr   (   R   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR`     s    c         C   s|   | d  j oB |  i d |  i i |  |  i i |  |  i i |  f  n* |  i d |  i i |  | i   f  d  S(   Ns   create %s: %s, %ss   create %s: %s(   R   R   RF   Rr   RJ   RI   RG   (   R   R2   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRL     s    		c         C   s3   |  i  d |  i i |  |  i i |  f  d  S(   Ns   becomeRoot %s, %s(   R   RF   Rr   (   R   Rd   Re   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRc   %  s    	c         C   s3   |  i  d |  i i |  |  i i |  f  d  S(   Ns   addChild %s, %s(   R   RF   Rr   (   R   Rg   R[   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRZ   *  s    	c         C   s*   |  i  d |  i i |  | | f  d  S(   Ns   setTokenBoundaries %s, %s, %s(   R   RF   Rr   (   R   R2   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRk   /  s    	N(   R#   R$   R|   R   R   R   R   R   R   R   R   R   R)   R`   RL   Rc   RZ   Rk   (    (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s   												t   RecordDebugEventListenerc           B   s#   e  Z d  Z d d  Z d   Z RS(   s6   A listener that records events as strings in an array.c         C   s#   t  t |   i |  g  |  _ d  S(   N(   R
   R   R   t   events(   R   RF   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR   8  s    c         C   s   |  i  i |  d  S(   N(   R   t   append(   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR   =  s    N(   R#   R$   R|   R   R   R   (    (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR   5  s   t   DebugEventSocketProxyc           B   s  e  Z d  Z d Z d+ d+ d+ d  Z d   Z d   Z d   Z d   Z	 d   Z
 d   Z d	   Z d
   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d+ d  Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z  d   Z! d   Z" d    Z# d!   Z$ d"   Z% d+ d#  Z& d$   Z' d%   Z( d&   Z) d'   Z* d(   Z+ d)   Z, d*   Z- RS(,   so  A proxy debug event listener that forwards events over a socket to
    a debugger (or any other listener) using a simple text-based protocol;
    one event per line.  ANTLRWorks listens on server socket with a
    RemoteDebugEventSocketListener instance.  These two objects must therefore
    be kept in sync.  New events must be handled on both sides of socket.
    i̿  c         C   so   t  t |   i   | i   |  _ | |  _ | p |  i |  _ | |  _ d  |  _
 d  |  _ d  |  _ d  |  _ d  S(   N(   R
   R   R   t   getGrammarFileNameR   RF   t   DEFAULT_DEBUGGER_PORTt   portt   debugR   t   sockett
   connectionR   t   output(   R   t
   recognizerRF   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR   K  s    					c         C   s,   |  i  d  j	 o |  i  i | d  n d  S(   Ns   
(   R   R   R   (   R   t   msg(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt   log`  s    c         C   sC  |  i  d  j o/t  i  t  i t  i  |  _  |  i  i t  i t  i d  |  i  i d |  i f  |  i  i	 d  |  i
 d |  i  |  i  i   \ |  _ } |  i
 d |  |  i i d  |  i i t  i t  i d  |  i i d d  |  _ |  i i d d  |  _ |  i d |  i  |  i d	 |  i  |  i   n d  S(
   Ni   t    s*   Waiting for incoming connection on port %ds   Accepted connection from %s:%dt   wi    t   rs   ANTLR %ss   grammar "%s(   R   R   t   AF_INETt   SOCK_STREAMt
   setsockoptt
   SOL_SOCKETt   SO_REUSEADDRt   bindR   t   listenR   t   acceptR   t   setblockingt   SOL_TCPt   TCP_NODELAYt   makefileR   R   R   R   R   t   ack(   R   t   addr(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt	   handshakee  s    c         C   s6   |  i  d |  |  i i d |  |  i i   d  S(   Ns   > %ss   %s
(   R   R   R   t   flush(   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR   ~  s    c         C   s*   |  i  i   } |  i d | i    d  S(   Ns   < %s(   R   t   readlineR   t   rstrip(   R   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s   |  i  |  |  i   d  S(   N(   R   R   (   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt   transmit  s    c         C   s   d  S(   N(    (   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   sE   |  i  d  |  i i   |  i i   |  i i   |  i i   d  S(   NR   (   R   R   t   closeR   R   R   (   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s
    c         C   s   |  i  d | | f  d  S(   Ns   enterRule	%s	%s(   R   (   R   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s   |  i  d |  d  S(   Ns   enterAlt	%d(   R   (   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s   |  i  d | | f  d  S(   Ns   exitRule	%s	%s(   R   (   R   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s   |  i  d |  d  S(   Ns   enterSubRule	%d(   R   (   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s   |  i  d |  d  S(   Ns   exitSubRule	%d(   R   (   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s   |  i  d |  d  S(   Ns   enterDecision	%d(   R   (   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s   |  i  d |  d  S(   Ns   exitDecision	%d(   R   (   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s   |  i  d |  i |   d  S(   Ns   consumeToken	%s(   R   t   serializeToken(   R   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR-     s    c         C   s   |  i  d |  i |   d  S(   Ns   consumeHiddenToken	%s(   R   R   (   R   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR/     s    c         C   s1   t  | t  o |  i | |  S|  i | |  S(   N(   R   R   t   LT_treet   LT_token(   R   R7   t   o(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR)     s    c         C   s5   | d  j	 o$ |  i d | |  i |  f  n d  S(   Ns   LT	%d	%s(   R   R   R   (   R   R7   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s   |  i  d |  d  S(   Ns   mark	%d(   R   (   R   R7   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR:     s    c         C   s3   | d  j	 o |  i d |  n |  i d  d  S(   Ns	   rewind	%dR;   (   R   R   (   R   R7   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR;     s    c         C   s   |  i  d |  d  S(   Ns   beginBacktrack	%d(   R   (   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s+   |  i  d | d d g t |  f  d  S(   Ns   endBacktrack	%d	%st   0t   1(   R   t   bool(   R   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    	c         C   s   |  i  d | | f  d  S(   Ns   location	%d	%d(   R   (   R   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c      	   C   s\   |  i  d i d | i i t t | i   t t | i   t t | i   g   d  S(   Ns   	t	   exception(	   R   t   joint	   __class__R#   t   strt   intR+   R   t   charPositionInLine(   R   R!   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    	c         C   s   |  i  d  d  S(   NR   (   R   (   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s   |  i  d  d  S(   NR   (   R   (   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s8   |  i  d i d t t |   |  i |  g   d  S(   Ns   	R   (   R   R   R   R   t   escapeNewlines(   R   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s   t  d  d  S(   Ni   (   t   FIXME(   R   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s   t  d  d  S(   Ni"   (   R   (   R   R7   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR     s    c         C   s   t  d  d  S(   Ni!   (   R   (   R   t   bufR2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt   serializeNode  s    c         C   s!   |  i  d |  i i |   d  S(   Ns
   nilNode	%d(   R   RF   Rr   (   R   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR`   +  s    c         C   s<   |  i  d |  i i |  t i |  i | i    f  d  S(   Ns   errorNode	%d	%d	"%s(   R   RF   Rr   R   t   INVALID_TOKEN_TYPER   RB   (   R   R2   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRT   /  s    	c         C   s|   | d  j	 o- |  i d |  i i |  | i   f  n? |  i d |  i i |  |  i i |  |  i i |  f  d  S(   Ns   createNode	%d	%ds%   createNodeFromTokenElements	%d	%d	"%s(   R   R   RF   Rr   RG   RI   RJ   (   R   RN   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRL   7  s    		c         C   s3   |  i  d |  i i |  |  i i |  f  d  S(   Ns   becomeRoot	%d	%d(   R   RF   Rr   (   R   Rd   Re   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRc   D  s    	c         C   s3   |  i  d |  i i |  |  i i |  f  d  S(   Ns   addChild	%d	%d(   R   RF   Rr   (   R   Rg   R[   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRZ   J  s    	c         C   s*   |  i  d |  i i |  | | f  d  S(   Ns   setTokenBoundaries	%d	%d	%d(   R   RF   Rr   (   R   R2   R   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyRk   P  s    	c         C   s   | |  _  d  S(   N(   RF   (   R   RF   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt   setTreeAdaptorY  s    c         C   s   |  i  S(   N(   RF   (   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR{   \  s    c         C   s   t  t | i     t  t | i     t  t | i     t  t | i   p d   t  t | i   p d   d |  i | i    g } d i	 |  S(   Ni    s   "s   	(
   R   R   RG   RI   t
   getChannelt   getLinet   getCharPositionInLineR   RJ   R   (   R   R2   R   (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR   `  s    c         C   sL   | d  j o d S| i d d  } | i d d  } | i d d  } | S(   NR   t   %s   %25s   
s   %0As   s   %0D(   R   t   replace(   R   t   txt(    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR   j  s    N(.   R#   R$   R|   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R-   R/   R)   R   R:   R;   R   R   R   R   R   R   R   R   R   R   R`   RT   RL   Rc   RZ   Rk   R   R{   R   R   (    (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyR   A  sX   																																							
(   R   t   antlr3R    R   R   R   t   antlr3.treeR   R   R   R   R	   RE   t   objectR}   R   R   R   R   (    (    (    ss   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.7/site-packages/antlr_python_runtime-3.1.3-py2.6.egg/antlr3/debug.pyt   <module>   s   "6q IR