全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Context-free grammar?

又称: nonterminal · terminal (grammar) · production (grammar) · start symbol

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

在原文中阅读 →