lua-users home
lua-l archive

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

>From Thu Aug 19 03:16:53 1999
>From: Adolf Mathias <>

>Certainly you can use tables to represent expressions, but you can't
>simply eval
>them like in Scheme and instead have to cast them into code again,
>which, according to my knowledge of Lua, involves either the path back
>over text, or a new evaluator of these 'table expressions'.
>But please tell me if I'm wrong. I'd love to learn more about Lua...

You're right.
I wasn't suggesting that you use Lua code as your cromossomes -- this would
indeed need to be done in text form.
I was suggesting a Scheme-like representation for expressions using Lua tables.
And yes, this needs a new evaluator. But it should be simple to write.