MicroScript is a minimalistic interpreter for a simple Turing-complete language, implemented in C. It supports basic operations such as tape manipulation, increment, decrement, loops, and simple I/O.
- Minimalistic Design: Implemented in C with a focus on simplicity and clarity.
- Basic Operations: Supports
>
,<
,+
,-
,[
,]
,_
, and|
commands. - Input/Output: Reads ASCII input into tape cells (
_
) and prints ASCII characters from tape cells (|
). - Debug Mode: Optional debug mode (
-DDEBUG=ON
) enables debug messages and verbose output.
-
Building MicroScript:
mkdir build cd build cmake -DDEBUG=ON .. cmake --build .
-
Running MicroScript:
./microscript script.txt
Replace
script.txt
with the path to your MicroScript code file. -
Debug Mode: Enable debug mode by defining
-DDEBUG=ON
during the build. This will include debug messages during execution. -
MicroScript Code Example:
script.txt: +++++++++++++++++++++++++++++++++| # Increment current cell to 33 and print as ASCII '!'
-
License: This project is licensed under the MIT License. See the LICENSE file for details.
- CMake 3.10 or higher
- C compiler (e.g., GCC, Clang)
Contributions are welcome! Please fork the repository, make your changes, and submit a pull request.