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

def runtime::Scanner::get_line_number (   self  ) 

Get the line number of the current position in the input text.

Definition at line 90 of file runtime.py.

00090                              :
        """Get the line number of the current position in the input text."""
        # TODO: make this work at any token/char position
        return self.first_line_number + self.get_input_scanned().count('\n')

    def get_column_number(self):


Generated by  Doxygen 1.6.0   Back to index