https://github.com/sanelli/turing
Collection of Turing machine emulators for various languages (Go, C#, Python, C++, Pascal, Ada, C, D)
https://github.com/sanelli/turing
ada c cpp csharp dlang golang pascal python turing-machine turing-machine-simulator
Last synced: 2 months ago
JSON representation
Collection of Turing machine emulators for various languages (Go, C#, Python, C++, Pascal, Ada, C, D)
- Host: GitHub
- URL: https://github.com/sanelli/turing
- Owner: sanelli
- License: mit
- Created: 2024-03-22T08:40:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-26T19:05:36.000Z (over 1 year ago)
- Last Synced: 2025-01-26T20:19:13.034Z (over 1 year ago)
- Topics: ada, c, cpp, csharp, dlang, golang, pascal, python, turing-machine, turing-machine-simulator
- Language: Pascal
- Homepage:
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# turing
Collection of [Turing machine](https://en.wikipedia.org/wiki/Turing_machine) interpreters written in various languages.
## Prerequisities
Prerequisites can be validated by running the `Check.ps1` script, possibly with a list of languages to validate. If the parameter `-Languages` is not provided then all supported languages are cheked. In case of failures will provide a set of links to follow to help with the installation.
```powershell
./Scripts/Check.ps1
./Scripts/Check.ps1 -Languages:$("csharp", "python", "cpp")
```
### [C#](https://github.com/sanelli/turing/tree/main/csharp)
- [dotnet](https://dotnet.microsoft.com) 8
### [Python](https://github.com/sanelli/turing/tree/main/python)
- [python](https://www.python.org) 3.11.5
### [C++](https://github.com/sanelli/turing/tree/main/cpp)
- [CMake](https://cmake.org) 3.27
- C++ 20 compiler (the script does not validate this as too many variations exists)
### [Go](https://github.com/sanelli/turing/tree/main/go)
- [Go](https://go.dev) 1.21.3
### [Pascal](https://github.com/sanelli/turing/tree/main/pascal)
- [Free pascal](https://www.freepascal.org) 3.2
### [Ada](https://github.com/sanelli/turing/tree/main/ada)
- [Alire](https://alire.ada.dev) 2.0
### [C](https://github.com/sanelli/turing/tree/main/c)
- [CMake](https://cmake.org) 3.27
- C17 compiler (the Check.ps1 does not validate this)
### [D](https://github.com/sanelli/brainfuck/tree/main/d)
- [Dub](https://dub.pm) 1.37.0
- [dmd](https://dlang.org) 2.108.1
### [Rust](https://github.com/sanelli/brainfuck/tree/main/rust)
- [cargo](https://www.rust-lang.org) 1.84.0
- [rustc](https://www.rust-lang.org) 1.84.0
## Compile and test
```powershell
./Scripts/Build.ps1 # Build all the executable
./Scripts/Substitute.ps1 # Execute the substitute turing machine sample
./Scripts/Test.ps1 # Run all the tests
```
Each script accepts a `-Language` parameter with a list of languages:
```powershell
./Scripts/Build.ps1 -Languages:$("csharp", "python", "cpp")
./Scripts/Substitute.ps1 -Languages:$("csharp", "cpp")
./Scripts/Test.ps1 -Languages:$("cpp")
```
## Screenshots