Skip to content

TueHaulund/ROOPLC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ROOPLC

ROOPL to PISA compiler

Use the Pendulum VM to execute the PAL files

Building

Simply invoke GHC (7.10.3+) on /src/ROOPLC.hs

No Cabal files, sorry!

Running

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.

PendVM

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.

About

ROOPL to PISA compiler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published