Miranda RunnerPrerequisites
Docker permissionsDocker needs to be available from the terminal used by VS Code. On Windows, the user may need to belong to the On Linux, the user may need to belong to the On macOS, Docker Desktop must be installed and running. ObjectiveMiranda Runner aims to provide an easy way to run Miranda code independently from the host machine configuration by using Docker. The extension follows a plug-and-play philosophy: the "plug" step is the initial setup, where the extension is installed and Docker is made available; the "play" step is running Miranda code directly from VS Code using the editor's Play button. When a Demo
Problem SolvedThe Miranda compiler source code is written in C and relies on UNIX system calls that are not available or fully compatible on every operating system, such as Windows. This creates an adoption barrier, because running a Miranda program should be simple, without requiring users to manually compile the compiler or configure a compatible UNIX-like environment. Miranda Runner solves this problem by using Docker. The extension builds and runs Miranda inside a container, avoiding host-specific compilation issues. When the user runs a Miranda source file from VS Code, the extension sends an execution request to the Docker container, provides the source file, and displays the result in the VS Code Output panel. ExamplesCreate the following files in the same directory:
Then open
|