I hope this question is not too broad. I've been reading quite a lot about grammars, and it seem that all of the models I encountered focus on a single sentence level syntax.
It seems pretty obvious that sentences in a paragraph could not be shuffled randomly, and thus they do have an underlying structure.
John fixed Mary's car. It had a flat tire. He had to wash his hands afterward. She was thankful.
In order to resolve the anaphora, the "John fixed Mary's car" must be first, or otherwise it would be "ungrammatical".
Are there syntactic models for multi-sentence texts ?