Formal grammar
A formal grammar is a mathematical system of symbols and production rules that generates or specifies the strings belonging to a language.
Linked from 12 pages
Programming languageBroader topic: Grammars provide a precise way to specify a language's syntax.
Formal languageRelated: Grammars specify languages by deriving their member strings.
Formal linguisticsBroader topic: It makes the structural rules of a language explicit and testable.
ParserNarrower topic: A parser uses grammar rules to decide how tokens may be grouped.