Online PL/0 Interpreter & Debugger
Web IDE, P-code compiler, and visual debugger for compiler construction education
Development environment and interpreter for the educational PL/0 language designed by Niklaus Wirth. Used as a reference target platform in compiler courses, it includes a compiler from PL/0 source to stack-based P-code, an interactive debugger, and runtime call stack visualization.
PL/0 program stepping with call stack and variable visualization
Project Overview & Context
When constructing compilers, students need to verify that their generated P-code behaves correctly. This environment allows running and stepping through instructions, inspecting activation records on the stack, examining static and dynamic procedure links, and debugging programs using directives embedded in comments.
Key Features & Capabilities
Step Debugger
Stepping at both source code and P-code instruction levels with breakpoint support.
Call Stack Visualization
Display of procedure frames, local variables, base registers, and static and dynamic call chains.
Debug Directives
Support for assertions and inspections embedded in comments (#assert, #dump, memory watches).
Headless CLI Runner
Command-line runner for automated testing and batch execution of student submissions in CI/CD pipelines.
Execution Profiler
Tracks instruction counts, peak call stack depth, and memory consumption.
Educational Value & Pedagogical Context
PL/0 is a minimalist procedural language used to teach semantic analysis, intermediate code generation, and runtime memory layout during procedure calls. The web-based tool eliminates local compiler setup and provides immediate testing in the browser.
Supervised Theses & Student Authors
Developed and extended through student software projects at the Department of Computer Science and Engineering, UWB, supervised by Richard Lipka:
