[snip snip]
I understand that the most straighforward approach
(but not necessarely the simplest and easy to implement)
is to write my own parser (i am using Lpeg for my other things)
However, I would like to know if there is a way for me to
use Lua's load string,
then get access to byte-compiled code and then translate the
bytecompile
code into whatever I need
Wouldn't this be simpler for me to do (as then Lua takes care of lexing,
parsing, etc)
Are there any examples of this (or even the first approach)?
May be there are other suggestions?