0

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?

1
  • Buy a book. The dragon book is old, but it starts from the very basics, without being in any way dumbed-down.
    – Marcin
    Jul 19, 2011 at 7:34

2 Answers 2

2

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

1

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.