lua-users home
lua-l archive

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


> But why don't we also provide some c level functions further like:
> 
>     *load_lua_code_to_ast*: return corresponding ast table (the ast
> described by
>     linked lua tables, and users could modify it as their wishes)
> 
>     *translate_ast_to_lua_code*: translate the ast table to lua source code
> again
> 
>     *execute_ast*: execute the ast directly

Because the Lua parser does not build a AST.