Logo Search packages:      
Sourcecode: yapps2 version File versions  Download package

def yapps::runtime::Scanner::get_pos (   self  ) 

Return a file/line/char tuple.

Definition at line 157 of file runtime.py.

00157                        :
            """Return a file/line/char tuple."""
            if self.stack: return self.stack.get_pos()

            return (self.filename, self.line+self.del_line, self.col)

#     def __repr__(self):
#           """Print the last few tokens that have been scanned in"""
#           output = ''
#           for t in self.tokens:
#                 output += '%s\n' % (repr(t),)
#           return output
      
      def print_line_with_pointer(self, pos, length=0, out=sys.stderr):


Generated by  Doxygen 1.6.0   Back to index