Skip to content

Markov is a simple Markov algorithm (famously known as Normal algorithms) interpreter.

Notifications You must be signed in to change notification settings

alyldas/Markov-old

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Markov

Markov is a simple Markov algorithm (famously known as Normal algorithms) interpreter.

Example of use

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:

  1. var algorithm = new Markov.Algorithm();
  2. algorithm.addStatement(Markov.Statement.compile(statement));, where statement is "lhs -> rhs", as example.
  3. var runner = new Markov.Runner(algorithm, inputWord);
  4. runner.run(); or runner.step(); as long as 'runner.done' = false

During the execution, the property 'runner.context' changes.

About

Markov is a simple Markov algorithm (famously known as Normal algorithms) interpreter.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published