Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 26 lines (20 sloc) 0.585 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
# For type bits
$include_const 'call_bits.pasm';

# Rosella classes (headers load PBC)
$include 'Rosella/Core.winxed';
$include 'Rosella/Test.winxed';

# PACT classes
$include 'PACT/Packfile.winxed';
$include 'PACT/Packfile/Decompile.winxed';

# Load PACT (Decompile loads Packfile)
$load 'PACT/Packfile/Decompile.pbc';

function compile(string pir) {
    var imcc = compreg('PIR');
    var view = imcc.compile(pir);
    var pack = new 'Packfile'(view);
    return pack;
}

function decompile(var packfile) {
    :PACT.Packfile.Decompile decomp(packfile);
    return decomp.pact;
}
Something went wrong with that request. Please try again.