Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quasiyoke/turing_machine
https://github.com/quasiyoke/turing_machine
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/quasiyoke/turing_machine
- Owner: quasiyoke
- Created: 2012-10-14T17:17:24.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-23T13:28:11.000Z (over 11 years ago)
- Last Synced: 2023-03-23T00:34:58.321Z (over 1 year ago)
- Language: C
- Size: 136 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Yet another Turing machine
Building:
```
$ make
```## Command-line arguments
Program has the following arguments syntax:
```
turing_machine -f ACTION_TABLE_FILE -n ITERATIONS_COUNT [OPTIONS]
```
Where options are:
* ```-f``` Path to action table file.
* ```-n``` How much cycles will machine do.
* ```-o``` Start tape offset. 0 (zero) by default.
* ```-s``` Initial state. 0 (zero) by default.
* ```-t``` Initial tape content. Use . (dot) for spaces. Tape will be read from stdin if not specified.
* ```-v``` Verbose mode.## Examples
Runs rotating animation:
```
$ bin/turing_machine -f tables/animation -n100 -t. -v
```Runs copying algorithm:
```
$ bin/turing_machine -f tables/copying -n100 -o10 -t.IIII -v
```Runs conjunction of binary numbers:
```
$ bin/turing_machine -f tables/conjunction -n200 -o10 -t.1100.1010 -v
```