开发者

Write a programming language interpreter [duplicate]

开发者 https://www.devze.com 2023-03-21 20:13 出处:网络
This question开发者_JS百科 already has answers here: Closed 11 years ago. Possible Duplicate: References Needed for Implementing an Interpreter in C/C++
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

精彩评论

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