def output(self, end="\n", ctx=None):
from vyxal.elements import vy_print, vy_repr
vy_print("⟨", "", ctx)
for lhs in self.generated[:-1]:
vy_print(lhs, "|", ctx)
if len(self.generated):
vy_print(self.generated[-1], "", ctx)
try:
lhs = next(self)
if len(self.generated) > 1:
vy_print("|", "", ctx)
while True:
if type(lhs) is types.FunctionType:
vy_print(lhs, "", ctx)
else:
vy_print(vy_repr(lhs, ctx), "", ctx)