Greibach normal form
Definition
Let be a context-free grammar. The grammar is in Greibach normal form if every rule in has one of the following forms:
- , where , , and ;
- , allowed only if does not occur on the right side of any rule.
Remarks
Example: the rules , , form a grammar in Greibach normal form. Each right side is one terminal followed by nonterminals (, , or nothing), so clause 1 holds; it generates . Non-example: the rule fails clause 1, because its right side starts with a nonterminal; such a rule is called left-recursive. Every context-free language is generated by a grammar in Greibach normal form. In such a grammar, a word of length has derivations of exactly steps.
Reading path
To understand this page from the ground up, read these 3 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Context-free grammar concept
- Context-free language concept
- Greibach normal form definition
Further reading
About this page
| Tag | F95BZ9QHS9 |
|---|---|
| URI | m2://F95BZ9QHS9 |
| Kind | definition |
| Writing | W0 stub |
| MSC | 68Q42, 68Q45 |
| Defines | Greibach normal form |
| Uses | Context-free grammar, Context-free language |
| Changed | 3 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.