1.0.0 • Published 5 years ago
@post-machine-js/machine v1.0.0
@post-machine-js/machine
Some basic objects to build your own post machine
Install
Using npm:
npm install @post-machine-js/machineor using yarn:
yarn add @post-machine-js/machineClasses
The following classes are exported from the library.
PostMachine
Tape
This class is reexported from the @turing-machine-js/machine library.
Constants
The following constants are exported from the library.
alphabet- the alphabet for the machine tapes. AnAlphabetclass instance implemented in@turing-machine-js/machinelibrary.blankSymbol- the blank symbol,(space)markSymbol- the mark symbol,*
Commands
The following commands are exported from the library.
Common commands
check(ix1,ix0)- if current tape section marked go toix1th instruction or go toix0th instruction otherwiseerase/erase(ix)- put the blank symbol into current tape section and go to thenext/ixth instructionleft/left(ix)- move the carriage to the left and go to thenext/ixth instructionmark/mark(ix)- put the mark symbol into current tape section and go to thenext/ixth instructionright/right(ix)- move the carriage to the right and go to thenext/ixth instructionstop- stop the machine
Additional commands
call(subroutineName)/call(subroutineName,ix)- execute a subroutine bysubroutineNamename and go to thenext/ixth instructionnoop/noop(ix)- do nothing and go to thenext/ixth instruction
Links
- Post–Turing machine on the Wikipedia
0.0.1-alpha.6
5 years ago
1.0.0
5 years ago
0.0.1-alpha.5
6 years ago
0.0.1-alpha.4
6 years ago
0.0.1-alpha.3
6 years ago
0.0.1-alpha.2
6 years ago
0.0.1-alpha.1
6 years ago
0.0.1-alpha.0
6 years ago