← All terms

Syntax-Directed Editor

Also known as: Structure Editor, Syntax-Aware Editor

A code editor that understands the formal grammar of a programming language and uses this knowledge to guide editing operations. Unlike plain text editors, syntax-directed editors treat source code as a structured tree of language constructs rather than a sequence of characters. When a programmer enters a keyword like "if," the editor automatically generates the complete syntactic template (condition, then-branch, else-branch) with placeholder positions for the programmer to fill in. This approach is particularly valuable for voice-controlled programming because it reduces the number of commands needed, ensures syntactically correct output, and enables navigation by logical structure rather than by line or character position.

Category: Programming · Code Accessibility · Developer Tools · Alternative Input

Related: Voice Programming · Code Accessibility · Context-Free Grammar

Sources