Context-Free Grammar
Also known as: CFG, Formal Grammar
A formal system for defining the syntactic rules of a language, consisting of a set of production rules that describe how symbols can be combined to form valid expressions. In accessibility and assistive technology, context-free grammars are significant because they can be used to automatically generate accessible interfaces — for example, a voice-controlled programming environment can be created from a CFG specification of a programming language, or a structured data entry form can be generated from a grammar defining the data format. CFGs enable tools that understand language structure, allowing for syntax-directed editing, automatic code completion, and structural navigation that benefits users who cannot use conventional text input methods.
Category: Programming · Computer Science · Code Accessibility
Related: Syntax-Directed Editor · Voice Programming · Code Accessibility