Learn Before
Relation

Formal Description of Context-Free Grammar

A context-free grammar G is described by four parameters: N, Σ, R, S .

N a set of non-terminal symbols (or variables)

Σ a set of terminal symbols (disjoint from N)

R a set of rules or productions, each of the form A → β , where A is a non-terminal,

β is a string of symbols from the infinite set of strings (Σ∪N)

S a designated start symbol and a member of N

0

1

Updated 2022-01-19

Tags

Data Science