Execute a Markov algorithm: Difference between revisions
Content added Content deleted
m (link to WP) |
m (Ugh!) |
||
Line 2: | Line 2: | ||
{{task|Compilers and Interpreters}} |
{{task|Compilers and Interpreters}} |
||
Create an interpreter for a [[wp:Markov |
Create an interpreter for a [[wp:Markov algorithm|Markov Algorithm]]. Rules have the syntax: |
||
<comment> ::= # {<any character>} |
<comment> ::= # {<any character>} |
||
<rule> ::= <pattern> <whitespace> -> <whitespace> [.] <replacement> |
<rule> ::= <pattern> <whitespace> -> <whitespace> [.] <replacement> |