Old lady swallowed a fly: Difference between revisions

Content added Content deleted
(→‎{{header|TXR}}: Minor mistake.)
Line 653:
The later verse does not contain one key piece of information we need to produce the prior verse: the animal-specific answer line for the prior animal. So we look this up by scanning a text which serves as a table.
 
The recursion terminates when itthe recognizessecond pattern matchcase formatches the first verse: the third line is "Perhaps she'll die". In this case the song is not lengthened any more, and a terminating flag variable is bound to true.
 
Note one detail: in the first verse we have "... don't know why she swallowed the fly". But in subsequent verses it is