nonterminalsoccurs
In formal language theory, the phrase nonterminal occurs refers to the presence of a nonterminal symbol within strings produced by a grammar. Let G = (N, Σ, P, S) be a context-free grammar, where N is the set of nonterminal symbols, Σ is the set of terminals, P is the set of production rules, and S is the start symbol. A sentential form α is any string over N ∪ Σ. A nonterminal A ∈ N occurs in α if α contains A as a symbol; equivalently, α can be written as x A y for some x, y ∈ (N ∪ Σ)*. A single sentential form may contain multiple occurrences of A, possibly at different positions.
During derivations, occurrences of nonterminals are transformed as productions are applied. If α ⇒* β is a derivation, the
Common related notions include reachability (whether a nonterminal can occur in any sentential form derived from