Design of a script language could be separated into Two parts: VM(virtual machine) and Translator.
Try to run a script, firstly, a grammar translator parse natural language into BYTE CODE( or assembly), which could be executed on the VM.
Here are some instructions about constructing a script VM.
to be continued.
【比特币】Design of a simple Virtual Machine
原文:http://blog.csdn.net/hacode/article/details/52241836