Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Parse tree, leftmost and rightmost derivation?

Também chamado de: 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.

Ler no capítulo →