Content deleted Content added
Undid revision 365329889 by 96.253.162.5 (talk) |
Semifinalist (talk | contribs) →Algorithm: clarifying |
||
Line 11:
#Check the Rules in order from top to bottom to see whether any of the ''patterns'' can be found in the ''input'' string.
#If none is found, the algorithm stops.
#If one (or more) is found, use '''the first''' of them to replace the leftmost matching text in the ''input'' string with its ''replacement''
#If the applied rule was a terminating one, the algorithm stops.
#Return to step 1 and carry on.
|