The clike-repl executable lets you experiment interactively with the small C-like language that targets the Pscal virtual machine.
From the repository root run:
cmake -B build
cmake --build build --target clike-replThis creates build/bin/clike-repl.
Launch the REPL:
build/bin/clike-replEach line you enter is wrapped in a minimal int main() function and executed immediately.
$ build/bin/clike-repl
clike> printf("hello world\n");
hello world
clike> 2 + 2;
4
clike> int a; a = 100; int b; b = 33; printf("%d\n", a + b);
133
clike>
clike> :quit
Use :quit to exit the session.