fix scanner level error reporting in Plex/Errors.py
[cython.git] / Cython / Plex / Scanners.py
index 36ed9d19c92cf82b6254520f1283f0c00cc9ee20..315742f309de1ad94f6cebbf6e485cd004d62f55 100644 (file)
@@ -299,6 +299,11 @@ class Scanner(object):
     """
     return (self.name, self.start_line, self.start_col)
 
+  def get_position(self):
+    """Python accessible wrapper around position(), only for error reporting.
+    """
+    return self.position()
+
   def begin(self, state_name):
     """Set the current state of the scanner to the named state."""
     self.initial_state = (