'Parse `input_lines` and populate a `docutils.nodes.document` instance.
Extend `StateMachineWS.run()`: set up document-wide data.'

def run(self, input_lines, input_offset, memo, node, match_titles=1):

    self.match_titles = match_titles
    self.memo = memo
    self.document = memo.document
    self.attach_observer(self.document.note_source)
    self.reporter = memo.reporter
    self.language = memo.language
    self.node = node
    results = StateMachineWS.run(self, input_lines, input_offset)
    assert (results == []), 'NestedStateMachine.run()    results    should    be    empty!'
    return results
