Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es Parse tree, leftmost and rightmost derivation?

También llamado: parse tree · leftmost derivation · rightmost derivation

Definition 23.5 University Computer Science — Year 2 · Capítulo 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.

Leer en el capítulo →