views:

337

answers:

2

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  A: 

check The implementation of Lua 5.0

Javier
A: 

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.

Dour High Arch