Derivációsfák
Derivációsfák, often translated as derivation trees or parse trees, are fundamental data structures in computer science and linguistics used to represent the syntactic structure of a string of symbols according to a formal grammar. They visually depict the process of deriving a string from a grammar's start symbol through a sequence of production rules. Each internal node in a derivation tree represents a non-terminal symbol from the grammar, and each leaf node represents a terminal symbol, which forms the actual string. The children of an internal node represent the symbols that replace the parent non-terminal according to a specific production rule.
The root of the tree is always the grammar's start symbol. Following a path from the root