Help me parse this sentence from Barth

Solution 1:

You mismatched the predicates.

The clause

he did at last as did his fictional character end his ending story endless by interruption, cap his pen.

reads:

he did at last cap his pen, as did his fictional character end his ending story endless by interruption.