CFG
CFG is an acronym that can denote more than one concept in computing. The two most common interpretations are context-free grammar, a formalism used to define programming languages and other formal languages, and a control flow graph, a representation of possible execution paths in a program. Both concepts are central to language design and program analysis, but they address different aspects of computation.
In context-free grammar (CFG), a grammar consists of a set of nonterminal symbols, a set of terminal
In contrast, a control flow graph (CFG) represents the flow of control within a procedure or program.
In practice, the intended meaning of CFG is usually inferred from context. Context-free grammars are foundational