NAME
Padre::Plugin::Parrot - Experimental Padre plugin that runs on Parrot
SYNOPSIS
After installation when you run Padre there should be a menu option Plugins/Parrot with several submenues.
About is just some short explanation
The other menu options will count the number of characters in the current document using the current Perl 5 interpreter or PASM running on top of Parrot. Later we add other implementations running on top of Parrot.
Parrot integration
This is an experimental feature.
Download Parrot (or check it out from its version control)
Configure PARROT_PATH to point to the root of parrot
Configure LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$PARROT_PATH/blib/lib/
Build Parrot
cd $PARROT_PATH
svn up
make realclean
perl Configure.pl
make
make test
Build languages
After building Parrot you can run
make languages
to build all the languages or cd to the directory of the individual languages and type make
.
- Perl 6 (Rakudo)
-
In order to be able to run code written in Perl 6, after building Parrot do the following:
cd languages/perl6 make
- Lua
-
cd languages/lua make
Currently Lua cannot be embedded. See https://trac.parrot.org/parrot/ticket/74
- PHP (Pipp)
-
cd languages/pipp make
- Pynie (Python)
- Cardinal (Ruby)
Build Parrot::Embed
cd ext/Parrot-Embed/
./Build realclean
perl Build.PL
./Build
./Build test
The test will give a warning like this, but will pass:
Parrot VM: Can't stat no file here, code 2.
error:imcc:syntax error, unexpected IDENTIFIER
in file 'EVAL_2' line 1
Now if you run Padre and enable Padre::Plugin::Parrot it will have an embedded Parrot interpreter that can run code written in PASM.
COPYRIGHT
Copyright 2008 Gabor Szabo. http://www.szabgab.com/
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.