fglock / Perlito

"Perlito" Perl programming language compiler
http://fglock.github.io/Perlito/
Other
414 stars 47 forks source link

throw(new p5_error("die", "Died: " + s)); error in node after successfully building expand-solitaire-multi-card-moves from branch #26

Closed shlomif closed 9 years ago

shlomif commented 9 years ago

Hi,

after running this script, where $git_repo points to https://github.com/shlomif/fc-solve - branch Games-Solitaire-Verify--for-Perlito--Get-Rid-of-Getopt-Long :

#!/bin/bash

git_repo="$HOME/progs/freecell/git"
gsv="$git_repo/fc-solve/cpan/Games-Solitaire-Verify"

inc()
{
    local path="$1"
    shift
    echo "-I" "$gsv/$path/lib"
}

perl -MCarp::Always perlito5.pl -Cjs -I src5/lib/ $(inc "Games-Solitaire-Verify") $(inc "POSIX--replacement") $(inc "Exception-Class--replacement") $(inc "Getopt-Long--replacement") $(inc "List-Util--replacement") $(inc "Class-XSAccessor--replacement")  "$gsv"/Games-Solitaire-Verify/script/expand-solitaire-multi-card-moves

I am getting this error:

shlomif@telaviv1:~/Download/unpack/perl/Perlito/Perlito$ node ~/e.js

/home/shlomif/e.js:1911
    throw(new p5_error("die", "Died: " + s));
          ^
Error: 

Can you try to investigate, please?

P.S: I tried using Emscripten and it worked but the generated code was far too slow - see http://www.shlomifish.org/microperl-web-repl-v1/repl.html so i'm trying Perlito again.

Regards,

-- Shlomi Fish

shlomif commented 9 years ago

This is fixed in commit af5319871bfe12d01e8f735d1bba422bf6e8818b . Now with a modified script that also preprocesses out the "use parent" statements. I am getting a different error. So I'm closing this bug for now.