
V}Oc           @   s   d  Z  d d l m Z m Z m Z d e f d     YZ d e f d     YZ d e f d     YZ e d	 e  Z	 e d	 e  Z
 e d	 e  Z d
 S(   s   ANTLR3 runtime packagei(   t   EOFt   DEFAULT_CHANNELt   INVALID_TOKEN_TYPEt   Tokenc           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   Z d   Z RS(   s    @brief Abstract token baseclass.c         C   s
   t   d S(   sr   @brief Get the text of the token.

        Using setter/getter methods is deprecated. Use o.text instead.
        N(   t   NotImplementedError(   t   self(    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyt   getText,   s    c         C   s
   t   d S(   sr   @brief Set the text of the token.

        Using setter/getter methods is deprecated. Use o.text instead.
        N(   R   (   R   t   text(    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyt   setText3   s    c         C   s
   t   d S(   si   @brief Get the type of the token.

        Using setter/getter methods is deprecated. Use o.type instead.N(   R   (   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyt   getType;   s    c         C   s
   t   d S(   si   @brief Get the type of the token.

        Using setter/getter methods is deprecated. Use o.type instead.N(   R   (   R   t   ttype(    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyt   setTypeB   s    c         C   s
   t   d S(   s   @brief Get the line number on which this token was matched

        Lines are numbered 1..n
        
        Using setter/getter methods is deprecated. Use o.line instead.N(   R   (   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyt   getLineJ   s    c         C   s
   t   d S(   s   @brief Set the line number on which this token was matched

        Using setter/getter methods is deprecated. Use o.line instead.N(   R   (   R   t   line(    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyt   setLineS   s    c         C   s
   t   d S(   s   @brief Get the column of the tokens first character,
        
        Columns are numbered 0..n-1
        
        Using setter/getter methods is deprecated. Use o.charPositionInLine instead.N(   R   (   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyt   getCharPositionInLine[   s    c         C   s
   t   d S(   s   @brief Set the column of the tokens first character,

        Using setter/getter methods is deprecated. Use o.charPositionInLine instead.N(   R   (   R   t   pos(    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyt   setCharPositionInLined   s    c         C   s
   t   d S(   sn   @brief Get the channel of the token

        Using setter/getter methods is deprecated. Use o.channel instead.N(   R   (   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyt
   getChannell   s    c         C   s
   t   d S(   sn   @brief Set the channel of the token

        Using setter/getter methods is deprecated. Use o.channel instead.N(   R   (   R   t   channel(    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyt
   setChannels   s    c         C   s
   t   d S(   s  @brief Get the index in the input stream.

        An index from 0..n-1 of the token object in the input stream.
        This must be valid in order to use the ANTLRWorks debugger.
        
        Using setter/getter methods is deprecated. Use o.index instead.N(   R   (   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyt   getTokenIndex{   s    c         C   s
   t   d S(   sr   @brief Set the index in the input stream.

        Using setter/getter methods is deprecated. Use o.index instead.N(   R   (   R   t   index(    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyt   setTokenIndex   s    c         C   s
   t   d S(   s   @brief From what character stream was this token created.

        You don't have to implement but it's nice to know where a Token
        comes from if you have include files etc... on the input.N(   R   (   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyt   getInputStream   s    c         C   s
   t   d S(   s   @brief From what character stream was this token created.

        You don't have to implement but it's nice to know where a Token
        comes from if you have include files etc... on the input.N(   R   (   R   t   input(    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyt   setInputStream   s    (   t   __name__t
   __module__t   __doc__R   R   R	   R   R   R   R   R   R   R   R   R   R   R   (    (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR   )   s   													
		t   CommonTokenc           B   s   e  Z d  Z d e d d d d 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   Z d   Z d   Z d   Z d   Z d   Z RS(   s   @brief Basic token implementation.

    This implementation does not copy the text from the input stream upon
    creation, but keeps start/stop pointers into the stream to avoid
    unnecessary copy operations.

    c         C   s   t  j |   | d  k	 r | j |  _ | j |  _ | j |  _ | j |  _ | j |  _ | j |  _ t	 | t
  r | j |  _ | j |  _ | j |  _ q nQ | |  _ | |  _ d |  _ d |  _ | |  _ d |  _ | |  _ | |  _ | |  _ d  S(   Nii    (   R   t   __init__t   Nonet   typeR   t   charPositionInLineR   R   t   _textt
   isinstanceR   R   t   startt   stop(   R   R!   R   R   R   R%   R&   t   oldToken(    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR      s*    								c         C   sB   |  j  d  k	 r |  j  S|  j d  k r) d  S|  j j |  j |  j  S(   N(   R#   R    R   t	   substringR%   R&   (   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR      s
    c         C   s   | |  _  d S(   s  
        Override the text for this token.  getText() will return this text
        rather than pulling from the buffer.  Note that this does not mean
        that start/stop indexes are not valid.  It means that that input
        was converted to a new string in the token object.
	N(   R#   (   R   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR      s    c         C   s   |  j  S(   N(   R!   (   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR	      s    c         C   s   | |  _  d  S(   N(   R!   (   R   R
   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR      s    c         C   s   |  j  S(   N(   R   (   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR      s    c         C   s   | |  _  d  S(   N(   R   (   R   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR      s    c         C   s   |  j  S(   N(   R"   (   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR      s    c         C   s   | |  _  d  S(   N(   R"   (   R   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR      s    c         C   s   |  j  S(   N(   R   (   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR     s    c         C   s   | |  _  d  S(   N(   R   (   R   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR     s    c         C   s   |  j  S(   N(   R   (   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR   
  s    c         C   s   | |  _  d  S(   N(   R   (   R   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR     s    c         C   s   |  j  S(   N(   R   (   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR     s    c         C   s   | |  _  d  S(   N(   R   (   R   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR     s    c      	   C   s   |  j  t k r d Sd } |  j d k r> d t |  j  } n  |  j } | d  k	 r | j d d  } | j d d  } | j d	 d
  } n d } d |  j |  j |  j	 | |  j  | |  j
 |  j f S(   Ns   <EOF>t    i    s	   ,channel=s   
s   \\ns   s   \\rs   	s   \\ts	   <no text>s   [@%d,%d:%d=%r,<%d>%s,%d:%d](   R!   R    R   t   strR   R    t   replaceR   R%   R&   R   R"   (   R   t
   channelStrt   txt(    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyt   __str__  s"    		N(   R   R   R   R    R   R   R   R   t   propertyR   R	   R   R   R   R   R   R   R   R   R   R   R   R.   (    (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR      s&   	&	
														t   ClassicTokenc           B   s   e  Z d  Z d d e 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 e Z e Z RS(   s  @brief Alternative token implementation.
    
    A Token object like we'd use in ANTLR 2.x; has an actual string created
    and associated with this object.  These objects are needed for imaginary
    tree nodes that have payload objects.  We need to create a Token object
    that has a string; the tree node will point at this token.  CommonToken
    has indexes into a char stream and hence cannot be used to introduce
    new strings.
    c         C   s   t  j |   | d  k	 rX | j |  _ | j |  _ | j |  _ | j |  _ | j |  _ n  | |  _ | |  _ d  |  _ d  |  _ | |  _ d  |  _ d  S(   N(	   R   R   R    R   R!   R   R"   R   R   (   R   R!   R   R   R'   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR   <  s    					c         C   s   |  j  S(   N(   R   (   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR   P  s    c         C   s   | |  _  d  S(   N(   R   (   R   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR   S  s    c         C   s   |  j  S(   N(   R!   (   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR	   W  s    c         C   s   | |  _  d  S(   N(   R!   (   R   R
   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR   Z  s    c         C   s   |  j  S(   N(   R   (   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR   ^  s    c         C   s   | |  _  d  S(   N(   R   (   R   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR   a  s    c         C   s   |  j  S(   N(   R"   (   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR   e  s    c         C   s   | |  _  d  S(   N(   R"   (   R   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR   h  s    c         C   s   |  j  S(   N(   R   (   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR   l  s    c         C   s   | |  _  d  S(   N(   R   (   R   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR   o  s    c         C   s   |  j  S(   N(   R   (   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR   s  s    c         C   s   | |  _  d  S(   N(   R   (   R   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR   v  s    c         C   s   d  S(   N(   R    (   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR   z  s    c         C   s   d  S(   N(    (   R   R   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR   }  s    c         C   so   d } |  j  d k r+ d t |  j   } n  |  j } | d  k rI d } n  d |  j | |  j | |  j |  j f S(   NR)   i    s	   ,channel=s	   <no text>s   [@%r,%r,<%r>%s,%r:%r](   R   R*   R   R    R   R!   R   R"   (   R   R,   R-   (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyt   toString  s    			N(   R   R   R   R    R   R   R   R   R	   R   R   R   R   R   R   R   R   R   R   R   R1   R.   t   __repr__(    (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyR0   1  s(   																	R!   N(   R   t   antlr3.constantsR    R   R   t   objectR   R   R0   t	   EOF_TOKENt   INVALID_TOKENt
   SKIP_TOKEN(    (    (    sV   /afs/athena.mit.edu/user/x/a/xavid/.local/lib/python2.7/site-packages/antlr3/tokens.pyt   <module>   s    g