This is very rough, since we haven't worked out a great way to
integrate XS and Parrot. But you can try it. It's nice and small:

 % wc -l newasm Packfile.xs Packfile.pm Makefile.PL lib/Parrot/Assembler/Utils.pm 
    188 newasm
     94 Packfile.xs
    108 Packfile.pm
     12 Makefile.PL
     46 lib/Parrot/Assembler/Utils.pm
    448 total

That's right, the actual assembler is 188 lines and 46 lines of utility
functions; the rest is XS glue for packfile.

Here's how to play with it:

    1) CVS update and build Parrot
    2) "make packout.o"
    3) Untar the attached tarball into your Parrot directory
    4) perl Makefile.PL
    5) make (this will do weird things, but eventually will produce
    blib/arch/auto/Parrot/Packfile/whatever)
    6) perl newasm examples/assembly/mops.pasm > mops.pbc

-- 
Do you associate ST JOHN'S with addiction to ASIA FILE?
    - Henry Braun is Oxford Zippy

Attachment: testasm.tar.gz
Description: Binary data

Reply via email to