ruleSet:=parseRuleSet("# This rules file is extracted from Wikipedia:", "# http://en.wikipedia.org/wiki/Markov_Algorithm", "A\t->\tapple", "B -> bag", "S -> shop", "T -> the", "the shop -> my brother", "a never used -> .terminating rule"); ruleSet.println(); markov("I bought a B of As from T S.",ruleSet).println();