Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
badw-it
DHParser
Commits
eb83f169
Commit
eb83f169
authored
May 11, 2018
by
eckhart
Browse files
Merge branch 'master' of gitlab.lrz.de:badw-it/DHParser
parents
73000d4c
970b4941
Changes
1
Show whitespace changes
Inline
Side-by-side
DHParser/parse.py
View file @
eb83f169
...
@@ -1947,6 +1947,11 @@ class Forward(Parser):
...
@@ -1947,6 +1947,11 @@ class Forward(Parser):
def
__str__
(
self
):
def
__str__
(
self
):
return
self
.
__cycle_guard
(
lambda
:
str
(
self
.
parser
),
'...'
)
return
self
.
__cycle_guard
(
lambda
:
str
(
self
.
parser
),
'...'
)
@
property
def
repr
(
self
)
->
str
:
"""Returns the parser's name if it has a name and repr()"""
return
self
.
parser
.
name
if
self
.
parser
.
name
else
repr
(
self
)
def
set
(
self
,
parser
:
Parser
):
def
set
(
self
,
parser
:
Parser
):
"""
"""
Sets the parser to which the calls to this Forward-object
Sets the parser to which the calls to this Forward-object
...
...
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