Execute a Markov algorithm: Difference between revisions
m
→{{header|Python}}: Undid revision 70161 (that was a "series out of control").
Underscore (talk | contribs) (→{{header|Python}}: Simplified control flow in 'replace'.) |
Underscore (talk | contribs) m (→{{header|Python}}: Undid revision 70161 (that was a "series out of control").) |
||
Line 281:
=={{header|Python}}==
The example uses a regexp to parse the syntax of the grammar. This regexp is multi-line
<lang python>import re
|