lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I believe the Lua script hosting code in the Apocolix 3D engine has this
feature, because the console enables you to type in Lua, then compile
it, and then finally run the compiled form.

Don't have the link handy, but check the project pages on Lua.org 

Hope it helps..

-----Original Message-----
From: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of Ando
Sonenblick
Sent: Tuesday, July 29, 2003 4:21 PM
To: Lua list
Subject: Text to byte code...

Gang,

Anyone ever extract out of luac.c the specific code need to on-the-fly
precompile a lua script (ie take a ptr to text and get back a buffer of
byte
compiled byte code)?

I'm trying to sift through luac.c but I'm not grokking it very quickly;
and
since surely someone must have done this before, I thought I'd ask
around
before reinventing the wheel....

Thx,
Ando

-----------------
SpriTec Software
www.spritec.com