Compiling QAST fragments to js from nqp-js

The nqp-js backend works when compiled to javascript.

# save this as hello-world.nqp

use QAST::Compiler;

my $sc := nqp::createsc('TEST_SC');
nqp::scsetdesc($sc, "description");
my $qast :=
      "Hello ")),

my $compunit :=
my $compiler :=;

Run it like

make js-all
make js-bootstrap
./nqp-js hello-world.nqp | node

Leave a comment

About Paweł Murias

user-pic This is my JavaScript backend for Rakudo/NQP blog.