Looping variable of a regular grammar (source code)

= Looping variable of a regular grammar

A variable $A$ is looping when $A\Rightarrow^*wA$ for some terminal word $w$ through a nonempty derivation.