kontextfri
Kontextfri, a term used especially in Swedish and Norwegian, describes the concept of context-free in formal language theory. It is applied to grammars and languages that follow the principle that each production replaces a single nonterminal symbol with a string of terminals and/or nonterminals. Context-free grammars are foundational for describing the syntax of programming languages and many formal languages, offering a balance between expressive power and tractable analysis.
A context-free grammar (CFG) is defined as a four-tuple G = (V, Σ, R, S), where V is a
Parsing and analysis are central to the study of kontextfri grammars. Algorithms such as CKY (for grammars
Historically, the notion of context-free grammars was introduced in the mid-20th century as part of Chomsky’s