How to handle unknown initializer functions in lua?

Posted by oofoe on Stack Overflow See other posts from Stack Overflow or by oofoe
Published on 2010-04-28T17:25:13Z Indexed on 2010/04/29 13:37 UTC
Read the original article Hit count: 293

Filed under:
|

I want to load data written in a variant of lua (eyeonScript). However, the data is peppered with references to initialization functions that are not in plain lua:

Redden = BrightnessContrast {
    Inputs = {
        Red = Input {
            Value = 0,
        },
    },
}

Standard lua gives "attempt to call a nil value" or "unexpected symbol" errors. Is there any way to catch these and pass it to some sort of generic initializer?

I want to wind up with a nested table data structure.

Thanks!

© Stack Overflow or respective owner

Related posts about lua

Related posts about parse