Commit 970b4941 authored by eckhart's avatar eckhart
Browse files bug fix repr-property of Forward-parsers

parent 628adcb1
......@@ -1947,6 +1947,11 @@ class Forward(Parser):
def __str__(self):
return self.__cycle_guard(lambda: str(self.parser), '...')
def repr(self) -> str:
"""Returns the parser's name if it has a name and repr()"""
return if else repr(self)
def set(self, parser: Parser):
Sets the parser to which the calls to this Forward-object
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment