github.com/DropDemBits/rsprolog ↗
A Rust implementation of a Turing compiler + interpreter
Open this visualization on its own page →
Contributors
1
Lines of Code
1,317
From
2020-07-02
To
2020-11-11
About DropDemBits/rsprolog
Turse is a Rust-based interpreter and compiler for the Turing programming language, designed as a modern replacement for TProlog, the original interpreter for this largely abandoned language. The project implements both a compiler (currently the primary focus) and plans for a new interpreter, drawing on documentation from the OpenTuring project and community resources about the language's deep technical details.
The compiler supports a range of Turing language features including arrays, functions and procedures, pointers, sets, control flow statements, and input/output operations. The project also includes a language server protocol implementation and linting mode for development environments. However, the compiler remains incomplete—attempting to compile certain features like array types, set types, pointers, string concatenation, and character/string dereferencing will cause crashes rather than producing working output.
The creator describes this as a learning project driven by curiosity about compiler design, bytecode virtual machines, concurrency, and JIT compilation. They explicitly note that the project should not be expected to receive long-term maintenance, positioning it more as an educational exploration of language implementation than a production tool.