出典:Wiktionary
出典:『Wiktionary』 (2025/08/15 21:55 UTC 版)
formal grammar (plural formal grammars)
出典:Wikipedia
出典:『Wikipedia』 (2011/06/23 21:24 UTC 版)
A formal grammar (sometimes simply called a grammar) is a set of formation rules for strings in a formal language. The rules describe how to form strings from the language's alphabet that are valid according to the language's syntax. A grammar does not describe the meaning of the strings or what can be done with them in whatever context—only their form.