Closed vlasovskikh closed 3 years ago
I expect this parser to return:
>>> x = a('x') >>> y = a('y') >>> expr = oneplus(x + y) >>> expr.parse('xyxyxy') [('x', 'y'), ('x', 'y'), ('x', 'y')]
But I get a TypeError instead:
TypeError
>>> expr.parse('xyxyxy') Traceback (most recent call last): ... TypeError: can only concatenate list (not "str") to list
Fixed by 10f4017287b88fc85a67a6e13760f915a137a8e4.
I expect this parser to return:
But I get a
TypeError
instead: