parrotcode: Using Lua on Parrot | |
Contents | Language Implementations | Lua |
Using Lua on Parrot
Currently,
luac.pl
is a Lua 5.1 compiler written in Perl5 (with Parse::Yapp).
This compiler produces PIR code.
After building parrot
:
cd languages/lua
make
make test
With an original Lua
in your path, it's possible to check the test suite.
cd languages
perl -I../lib -Ilua/t lua/t/harness --use-lua
perl luac.pl example.lua
../../parrot --no-gc example.pir
Lua PMC have problems with the Parrot garbage collector. So, use the option --no-gc
.
All your Lua code must be in a single source file (users libraries are not supported).
Francois Perrad.
|