A object for simulate the tag system.

Implements

Constructors

  • Initialize machine with given arguments.

    Parameters

    • deleteNum: number

      An integer indicating how many of the first letters of the word are to be deleted. Must be > 0.

    • ruleSet: TagSystemRuleSet

      Rules that determine how the tag system moves.

    Returns TagSystem

Properties

deleteNum: number
letters: null | TagSystemLetter[] = null
stop: boolean = false

Methods

  • Proceeds with this system. This method must be called after TagSystem.start called, or get an error,

    Parameters

    • step: number = 1

      Non-negative integer indicating how many steps to advance this system.

    Returns void

    Remarks

    One "step" is a sequence of reading the first letter, adding a sequence of letters to the end of a word, and erasing m letters.

  • Returns string representation of this system.

    Returns string

    String representation of this system.

Generated using TypeDoc