Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Context-free grammar?

Também chamado de: nonterminal · terminal (grammar) · production (grammar) · start symbol

Definition 23.1 University Computer Science — Year 2 · Capítulo 23 — Context-Free Grammars and Pushdown Automata

A context-free grammar is G=(N,Σ,P,S)G = (N, \Sigma, P, S): a finite set NN of nonterminals, an alphabet Σ\Sigma of terminals disjoint from NN, a finite set PP of productions A→αA \to \alpha with A∈NA \in N and α∈(N∪Σ)∗\alpha \in (N \cup \Sigma)^*, and a start symbol S∈NS \in N. Productions with the same left side are written together, A→α∣βA \to \alpha \mid \beta.

Ler no capítulo →