开发者

Write a programming language interpreter [duplicate]

This question开发者_JS百科 already has answers here: Closed 11 years ago.

Possible Duplicate:

References Needed for Implementing an Interpreter in C/C++

How do I write a programming language interpreter such as how PHP works, im not talking about compilers though, are there any simple examples that can get me started writing a programming language interpreter?


Have a look at boost.spirit - its a good place to start. (in particular - the writing parsers section of the docs)


By no means a trivial amount of work if you are talking about a full featured programming language but of course doable with parsers and lexical analyzer such as flex

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜