Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Parse tree, leftmost and rightmost derivation?

Dikenal juga sebagai: parse tree · leftmost derivation · rightmost derivation

Definition 23.5 University Computer Science — Year 2 · Bab 23 — Context-Free Grammars and Pushdown Automata

A parse tree for GG is an ordered tree whose root is SS, whose inner nodes are nonterminals, whose leaves are terminals or ε\varepsilon, and where the children of each inner node AA, read from left to right, are the right side of a production A→αA \to \alpha. Its yield is its leaves read from left to right. A derivation is leftmost if each step replaces the leftmost nonterminal, and rightmost if each replaces the rightmost one.

Baca dalam konteks →