{"id":19724127,"url":"https://github.com/rory660/turingscript","last_synced_at":"2026-04-30T13:31:46.997Z","repository":{"id":203950647,"uuid":"125720304","full_name":"rory660/TuringScript","owner":"rory660","description":"Language I made up to write Turing machines.","archived":false,"fork":false,"pushed_at":"2018-03-25T14:56:41.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T19:23:05.022Z","etag":null,"topics":["javascript","python3","turing-machine"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rory660.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-03-18T11:59:31.000Z","updated_at":"2018-05-13T16:17:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"a5c36fb4-48ab-4631-9ce6-2008a5fdb6e2","html_url":"https://github.com/rory660/TuringScript","commit_stats":null,"previous_names":["rory660/turingscript"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rory660/TuringScript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rory660%2FTuringScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rory660%2FTuringScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rory660%2FTuringScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rory660%2FTuringScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rory660","download_url":"https://codeload.github.com/rory660/TuringScript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rory660%2FTuringScript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32466333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","python3","turing-machine"],"created_at":"2024-11-11T23:24:36.614Z","updated_at":"2026-04-30T13:31:46.978Z","avatar_url":"https://github.com/rory660.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TuringScript\nLanguage I made up to write Turing machines.\n\n## How to use\nScripts can be ran by being passed as an argument to TuringVM.py (Python 3)\n\n**Flags:**\n\n- `-t` - Print a trace to stdout.\n\n## Explanation\nWithin TuringScript files, every state is defined, followed by the inital tape configuration (optional) and tape head position (also optional)\n\n**States are defined as:**\n```\n[state name][start flag]{\n[contents]\n}\n```\nwhere:\n\n- `[state name]` is a label that the state is identified by.\n\n- `[start flag]` is either nothing or an asterisk `*`. An asterisk indicates that the state is the start state of the machine.\n\n- `[contents]` is a list of instructions for the state.\n\nInstructions are defined within the scope of their parent state, and describe how the machine will act when reading characters in the given state.\n\n**Instructions are defined as:**\n```\n[read character]:[write character],[move direction],[new state]\n```\nwhere:\n\n- `[read character]` is the character that upon being read will cause the instruction to execute. Consists of a single character surrounded by quotation marks.\n\n- `[write character]` is the character that the machine will write upon execution of the instruction. Consists of a single character surrounded by quotation marks.\n\n- `[move direction]` is the direction that the 'tape head' of the machine will move upon execution of the instruction. 'Left' and 'right' are represented by `R` and `L`.\n\n- `[new state]` is the label of a state in the machine. To accept the string, `accept` can be used instead of a state label. \n\n**The initial configuration of the tape and tape head can be defined by including the following at the end of the script:**\n```\n[tape contents]\n[tape head position]\n```\nwhere:\n\n`[tape contents]` is a string of characters bounded by quotation marks, or nothing (indicating tape is empty).\n\n`[tape head position]` is the inital position of the 'tape head' on the tape, represented by an integer, with 0 being the first character in `[tape contents]`. If no value is supplied, then the inital position is set to 0.\n\n## Example Script\n```\nq0*{\n\"1\": \"1\", R, q0\n\"0\": \"0\", R, q0\n\" \": \" \", L, q1\n}\nq1{\n\"1\": \"0\", L, q1\n\"0\": \"1\", L, accept\n\" \": \"1\", R, accept\n}\n\"1010101010\"\n```\n\nThis script adds 1 to a binary number on the tape.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frory660%2Fturingscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frory660%2Fturingscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frory660%2Fturingscript/lists"}