Markov is a simple Markov algorithm (famously known as Normal algorithms) interpreter.
To execute the algorithm in the Developer Console, you must go to address https://alyldas.github.io/Markov/, open the Developer Console and execute the following commands in sequence:
var algorithm = new Markov.Algorithm();
algorithm.addStatement(Markov.Statement.compile(statement));
, where statement is "lhs -> rhs", as example.var runner = new Markov.Runner(algorithm, inputWord);
runner.run();
orrunner.step();
as long as 'runner.done' = false
During the execution, the property 'runner.context' changes.