class_docstr: A Scanner is used to read tokens from a stream of characters
  using the token set specified by a Plex.Lexicon.
  
  Constructor:
  
    Scanner(lexicon, stream, name = '')
  
      See the docstring of the __init__ method for details.
  
  Methods:
  
    See the docstrings of the individual methods for more
    information.
  
    read() --> (value, text)
      Reads the next lexical token from the stream.
  
    position() --> (name, line, col)
      Returns the position of the last token read using the
      read() method.
  
    begin(state_name)
      Causes scanner to change state.
  
    produce(value [, text])
      Causes return of a token value to the caller of the
      Scanner.
docstr: Return a tuple (name, line, col) representing the location of
  the last token read using the read() method. |name| is the
  name that was provided to the Scanner constructor; |line|
  is the line number in the stream (1-based); |col| is the
  position within the line of the first character of the token
  (0-based).
docstr_tok: ["Return","a","tuple","(","name",",","line",",","col",")","representing","the","location","of","the","last","token","read","using","the","read","(",")","method",".","|name|","is","the","name","that","was","provided","to","the","Scanner","constructor",";","|line|","is","the","line","number","in","the","stream","(","1-based",")",";","|col|","is","the","position","within","the","line","of","the","first","character","of","the","token","(","0-based",")","."]
code: def position(self):
      """
      Return a tuple (name, line, col) representing the location of
      the last token read using the read() method. |name| is the
      name that was provided to the Scanner constructor; |line|
      is the line number in the stream (1-based); |col| is the
      position within the line of the first character of the token
      (0-based).
      """
      return (self.name, self.start_line, self.start_col)
  
file_path: catboost/contrib/tools/cython/Cython/Plex/Scanners.py
imports: from __future__ import absolute_import
  import cython
  from .None import Errors
  from .Regexps import BOL, EOL, EOF
label_desc: Use image node_id 6 for calling the Scanner obj's underlying member method code with example usage: obj.position() and returns: self,  self,  self