Execute a Markov algorithm: Difference between revisions

Content added Content deleted
(→‎{{header|Python}}: Comment on flexibility and addition of latest ruleset.)
(rm superfluous "3 files" rule)
Line 9: Line 9:
<whitespace> ::= (<tab> | <space>) [<whitespace>]
<whitespace> ::= (<tab> | <space>) [<whitespace>]
There is one rule per line. If there is a . present before the <replacement>, then this is a terminating rule in which case the interpreter must halt execution. A ruleset consists of a sequence of rules, with optional comments.
There is one rule per line. If there is a . present before the <replacement>, then this is a terminating rule in which case the interpreter must halt execution. A ruleset consists of a sequence of rules, with optional comments.

In order to promote flexibility, the interpreter should load the set of rules from one file, take the string to operate on from a second file, and write the output to a third.


=Rulesets=
=Rulesets=