PseudoEngine2
An interpreter for IGCSE/A level pseudocode
Install / Use
/learn @SingularityT3/PseudoEngine2README
PseudoEngine 2
A pseudocode interpreter designed to be compatible with the Cambridge IGCSE and A level pseudocode syntax

The REPL
The REPL stands for Read Execute Print Loop. It's an interactive interface where you can type pseudocode statements one by one. Each statement is immediately run, and the result or any errors are shown right away. This is helpful for quickly testing small pieces of code and experimenting with syntax without needing to create a full file.
> OUTPUT "Hello World!"
Hello World!
> 5 + 2 * 3
11
> LEFT("ABCD", 2)
"AB"
> x <- 1 / 0
Runtime Error in file <stdin>:
Division by 0
Traceback:
Program, line 1, column 9
Usage
Launching the REPL
Lanuch the program directly by double clicking the executable
OR
Run it in the terminal with no arguments
Running files in the REPL
The REPL can be used to run files using RUNFILE <file>.
For example, here is a simple hello world program stored in the file hello.pseudo
OUTPUT "Hello World!"
You can run it like this:
> RUNFILE hello.pseudo
==> Running file 'hello.pseudo'
Hello World!
==> Program exited successfully
>
Tip: For
RUNFILEto work easily, place your.pseudofile in the same folder as thePseudoEngine2executable. Otherwise, you'll need to provide the full path to your file (e.g.,RUNFILE /path/to/your/hello.pseudo).
Running files directly from the terminal
You can also run a pseudocode file directly when you launch PseudoEngine2 from the terminal.
Navigate to where your PseudoEngine2 executable is, and provide the path to your pseudocode file as an argument:
Windows:
PseudoEngine2.exe <filepath/your_program.pseudo>
Linux/Unix:
./PseudoEngine2 <filepath/your_program.pseudo>
Make sure you replace PseudoEngine2 with the actual name of the executable or rename the executable
Example programs
See examples
Building from source
Make sure cmake and a c++ compiler is installed, then clone the repository and inside its folder run the following commands:
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
The executable will be generated inside the build folder
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
