Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
badw-it
DHParser
Commits
220512ba
Commit
220512ba
authored
Jan 19, 2019
by
eckhart
Browse files
- ebnf.py: Type errors corrected
parent
a33f26d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
DHParser/ebnf.py
View file @
220512ba
...
...
@@ -313,7 +313,8 @@ WHITESPACE_TYPES = {'horizontal': r'[\t ]*', # default: horizontal
'vertical'
:
r
'\s*'
}
ReprType
=
Union
[
str
,
unrepr
]
# Representation of Python code
# Representation of Python code or, rather, something that will be output as Python code
ReprType
=
Union
[
str
,
unrepr
]
class
EBNFDirectives
:
...
...
@@ -349,6 +350,8 @@ class EBNFDirectives:
is the point of reentry for the parser after a parser
has error occurred.
"""
__slots__
=
[
'whitespace'
,
'comment'
,
'literalws'
,
'tokens'
,
'filter'
,
'error'
,
'resume'
]
def
__init__
(
self
):
self
.
whitespace
=
WHITESPACE_TYPES
[
'vertical'
]
# type: str
self
.
comment
=
''
# type: str
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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