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.
时间: 2024-10-26 12:01:40