A convenient Turing machine
npm install @post-machine-js/machine
!npm (scoped)
Some basic objects to build your own post machine
Using npm:
``sh`
npm install @post-machine-js/machine
or using yarn:
`sh`
yarn add @post-machine-js/machine
The following classes are exported from the library.
This class is reexported from the @turing-machine-js/machine library.
The following constants are exported from the library.
* alphabet - the alphabet for the machine tapes. An Alphabet class instance implemented in @turing-machine-js/machine library.blankSymbol
* - the blank symbol, (space)markSymbol
- the mark symbol,
The following commands are exported from the library.
* check(ix1,ix0) - if current tape section marked go to ix1th instruction or go to ix0th instruction otherwiseerase
* /erase(ix) - put the blank symbol into current tape section and go to the next/ixth instructionleft
* /left(ix) - move the carriage to the left and go to the next/ixth instructionmark
* /mark(ix) - put the mark symbol into current tape section and go to the next/ixth instructionright
* /right(ix) - move the carriage to the right and go to the next/ixth instructionstop
* - stop the machine
* call(subroutineName)/call(subroutineName,ix) - execute a subroutine by subroutineName name and go to the next/ixth instructionnoop
* /noop(ix) - do nothing and go to the next/ix`th instruction
- Post–Turing machine on the Wikipedia