ROOPL to PISA compiler
Use the Pendulum VM to execute the PAL files
Simply invoke GHC (7.10.3+) on /src/ROOPLC.hs
No Cabal files, sorry!
The compiler reads input from stdin until it reaches EOF, it then compiles the code and prints the output to stdout, errors are printed to stderr.
On UNIX/Linux:
cat ./test/Fibonacci.rpl | ./src/ROOPLC > ./test/Fibonacci.pal
On Windows:
type .\test\Fibonacci.rpl | .\src\ROOPLC.exe > .\test\Fibonacci.pal
NOTE: Both PowerShell and cmd.exe will output UTF-16 LE w/ BOM by default, which is incompatible with PendVM.
NOTE: PendVM only allocates 16 bytes for each instruction label, but ROOPLC does not limit itself to 16 characters per label.
I have rehosted PendVM here on GitHub, this version has 32 bytes for instruction labels which should be plenty and it will also compile correctly on Windows with MinGW32.