| |
| | Formal grammar - Wikipedia, the free encyclopedia |
 | | The two main categories of formal grammar are that of generative grammars, which are sets of rules for how strings in a language can be generated, and that of analytic grammars, which are sets of rules for how a string can be analyzed to determine whether it is a member of the language. |
 | | In regular grammars, the left hand side is again only a single nonterminal symbol, but now the right-hand side is also restricted: It may be nothing, or a single terminal symbol, or a single terminal symbol followed by a nonterminal symbol, but nothing else. |
 | | Although, in practice, regular grammars are commonly expressed using regular expressions, some forms of regular expression used in practice do not strictly generate the regular languages and do not show linear recognitional performance due to those deviations. |
| en.wikipedia.org /wiki/Formal_grammar (1628 words) |
|