Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Context-free grammar » ?

Aussi appelé : nonterminal · terminal (grammar) · production (grammar) · start symbol

Definition 23.1 University Computer Science — Year 2 · Chapitre 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.

Lire dans le chapitre →