I'm pretty sure I saw something somewhere about a LV interpeter for something like this, but I really don't remember where. It was probably here or on the LAVA forums (most likely here). If you don't mind a not pure G solution, the DLL is probably the faster solution to implement, because you don't have to worry about covering all elements of the syntax. Either way, both options don't sound too complicated.
___________________
Try to take over the world!