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?

Community
  • 1
  • 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 '11 at 07:34

2 Answers2

2

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

Tom
  • 5,219
  • 2
  • 29
  • 45
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

Murali VP
  • 6,198
  • 4
  • 28
  • 36