Simple Interpreted Language Design & Implementation [closed]

喜你入骨 提交于 2019-12-10 00:10:46

问题


I need some resources for implementing a simple virtual machine and interpreted language. Something that is pratical is most useful. I have read the Virtual Machine Implementation book and found that it is quite old and doesn't represent the vms I see today. Also if someone know of a fairly simplistic language that would be great as well.


回答1:


check The implementation of Lua 5.0




回答2:


You don't say if this is for a new project, to work with an existing project, for learning, or what target environment, language, and OS you're using.

If you want to learn about implementing your own VM and scripting language, get the book Game Scripting Mastery. Despite its title, it is actually about implementing your own virtual machine and scripting language. The source code is for Win32, but the concepts can be applied to .Net or Linux.

As a bonus, when you're done you will have a playable, scriptable, 2D adventure game.



来源:https://stackoverflow.com/questions/369940/simple-interpreted-language-design-implementation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!