A tree diagram, or tree, is a two-dimensional diagram used in generative grammar as a convenient means of displaying the internal hierarchical structure of sentences as generated by a set of rules.
S:sentence
NP: Noun phrase
VP: Verb phrase
D: Determiners
N:noun
V: Verb
PP: Prepositional phrase
Q: Preposition
https://elearning.cpp.edu/learning-objects/syntactic-tree-structures/?page=learn.html