rvirding/luerl — pull request #2 by Eonblast (2012-02-25 06:10:01+00:00)
Title: Your interface definition of 2/24

This branch is based on your delevop branch's current master, but in a separate branch.

This implements the interface as you proposed it on the mailing list today.

* The 'eval' functions will catch errors and return {ok,Result} | {error,Reason}.
* The 'do' and 'call' functions will not catch errors and return {Result,NewState}. Errors caught in the Lua code, with 'pcall' which does not exist yet, will of course not generate an error at the Erlang interface.
* We will initialise/cleanup the state with 'start'/'stop' in an Erlangy way.
* We will 'encode'/'decode' Lua data.
* And we will both 'load' and 'compile' Lua and load/compile(String) -> {ok,Form} | {error,Reason}.