| parrotcode: Using Lua on Parrot | |
| Contents | Language Implementations | Lua |

Using Lua on Parrot

lua.pbc is the Lua interpreter.

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

../../parrot --no-gc lua.pbc example.lua
or in interactive mode :
../../parrot --no-gc lua.pbc

Lua PMC have problems with the Parrot garbage collector. So, use the option --no-gc.
Currently, the command line options accepted by lua.pbc come from HLLCompiler and are not compatible with the original lua ones.


Francois Perrad.
|
|
|