/Pmachine

Fork of the P-machine emulator, for UAntwerp’s Compilers course

Primary LanguageC++

P-machine interpreter

This is a fork of the P-machine interpreter used for the Compilers course at UAntwerp.

I’ve fixed exactly one bug, in the sro instruction’s implementation.

Instructions

Install flex and bison, then run make. The resulting binary is called Pmachine:

USAGE: Pmachine [filename] <-s [numeric value]> <-t [numeric value]> <-h>

     -s: stepsize
     -t: number of stackplaces to show (by default all)
     -h: show heap

Try echo 10 | ./Pmachine fibonacci.p, for example.