Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
f6a71e89
Commit
f6a71e89
authored
Apr 21, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix scanner level error reporting in Plex/Errors.py
parent
af231c90
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
Cython/Plex/Errors.py
Cython/Plex/Errors.py
+1
-1
Cython/Plex/Scanners.py
Cython/Plex/Scanners.py
+5
-0
No files found.
Cython/Plex/Errors.py
View file @
f6a71e89
...
...
@@ -39,7 +39,7 @@ class UnrecognizedInput(PlexError):
def
__init__
(
self
,
scanner
,
state_name
):
self
.
scanner
=
scanner
self
.
position
=
scanner
.
position
()
self
.
position
=
scanner
.
get_
position
()
self
.
state_name
=
state_name
def
__str__
(
self
):
...
...
Cython/Plex/Scanners.py
View file @
f6a71e89
...
...
@@ -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
=
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment