Adaptive grammar
In formal language theory and compiler design, an adaptive grammar is a type of formal grammar whose production rules can be modified during the process of parsing a sentence or generating language strings. Unlike conventional grammars that operate with a fixed set of rules, adaptive grammars dynamically add, remove, or alter their rules based on the input being processed or the current state of the grammar.