DropDemBits/rsprolog

Created Dec 28, 2020 · View the DropDemBits/rsprolog repository page

A Rust implementation of a Turing compiler + interpreter

Want this for your repo?

Render a free sample of any GitHub repo in seconds.

Visualize your own →

Contributors

1

Lines of Code

1,317

From

Jul 2, 2020

To

Nov 11, 2020

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.

Share this video