Anonymous user
Execute a Markov algorithm: Difference between revisions
Removed mention of "stretch" goals; they're just input datasets that ensure correct implementation of the rules.
Underscore (talk | contribs) m (→{{header|Haskell}}: "putStrLn" -> "putStr") |
(Removed mention of "stretch" goals; they're just input datasets that ensure correct implementation of the rules.) |
||
Line 45:
'''Ruleset 3:'''<br>
<pre># BNF Syntax testing rules
A -> apple
Line 63:
'''Ruleset 4:'''<br>
<pre>
### Unary Multiplication Engine, for testing Markov Algorithm implementations
Line 503:
I bought a bag of apples from my brother.
</lang>
'''Discussion''': The J implementation correctly processes all the rulesets
=={{header|Perl}}==
Line 633:
assert replace(text1, extractreplacements(grammar2)) \
== 'I bought a bag of apples from T shop.'
assert replace(text2, extractreplacements(grammar3)) \
== 'I bought a bag of apples with my money from T shop.'
|