quote:Original post by rohde
I have some questions about this book and since the author is in the house this is a magnificent opportunity
1. Your book is called "game" scripting - but can it be used as a general intro to compilers/intepreters as well (i.e. I''m not as interested in the game approach as a more general one).
2. What language do you use in implementation? C++?
1. Absolutely-- the general theme of the book is how this technology applies to game development, but scripting is scripting and compilers are compilers. You can take what you learn here and write a scripting system for a word processor just as easily, and the [large] chapters on developing assemblers, compilers and virtual machines are first and foremost about the general theory itself. I then bring it "back down" to game development later in the book.
2. C for the most part. There are occasional cues to C++ programmers on where to do their own thing, but it''s generally a good idea to stick to C in books, since class heirarchies tend to get a little unweildly for people who just want to learn how something works. Of course any large scale project should be at least somewhat object oriented, but in the case of books it''s usually just easier to see straight functions and structures to get the job done. Anyone proficient in C++ already will have no trouble OOPifying it themselves.