One of the things I've been working on in KindaPerl6 is making it CPAN
ready, first by rewriting its custom Makefile as a Makefile.PL and
then by making various small fixes. Yesterday I wrote a unified
frontend to it (kp6(1)) and made `make install' work and released in
on CPAN as version 0.001.
Since KindaPerl6 is still in active and unstable development `make
test' does not run successfully at the moment. So the CPAN install has
to be forced:
cpan -f -i KindaPerl6
That should install KindaPerl6 along with its kp6 frontend, the hello
world example is then:
$ echo 'say "hello" ~ "world"' | kp6 | PERL5LIB=$(kp6 -lib) perl
helloworld
The PERL5LIB part is required so that the Perl 5 backend can find its
runtime libraries.
If you want to check out the AST of the program just do:
$ echo 'say "hello" ~ "world"' | kp6 -ast | perltidy
And to try another backend such as the Common Lisp one try one of the
emitter options:
$ echo 'say "hello" ~ "world"' | kp6 -lisp
There's no user friendly way to run the generated lisp code yet but
hopefully future releases will allow for passing options to specific
emitters. I'm hoping to make a user-friendly way to generate
stand-alone executables with sbcl from the command line for instance.
congrats! :D
Posted by: agentzh | 2007.10.04 at 04:30 PM
Found 18 old builds, restored the state of 18
Running install for module 'KindaPerl6'
Running make for A/AV/AVAR/KindaPerl6-0.001.tar.gz
Has already been unwrapped into directory C:\Perl\cpan\build\KindaPerl6-0.001-
onA5xs
CPAN.pm: Going to build A/AV/AVAR/KindaPerl6-0.001.tar.gz
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
makefile(661) : fatal error U1000: syntax error : ')' missing in macro invocatio
n
Stop.
AVAR/KindaPerl6-0.001.tar.gz
"C:\Program Files\Microsoft Visual Studio\VC98\bin\nmake.EXE" -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Posted by: xiaoyafeng | 2007.10.09 at 11:52 AM