Mail Archives: djgpp/1999/06/07/16:52:11
>Does anyone know where I can get a good scripting tutorial?? I need to use
>external files to tell the program to run specific functions, and I am
>pretty sure I would need to know scripting for this. So for all those
>experts, where did you learn scripting?? Thanks
i wouldn't really consider "scripting" a thing in and of itself. creating
any sort of system that reads flexible user commands in the form of a
token/symbol relationship and acts on that information in a flowing manner
would really fall under compiler design.
if you want to get deep into the subject there is an excellent book call
"Compiler Analysis and Design", the so-called dragon book, which gives as
technical an overview of the main facets of this type of programming as any
source i've yet seen.
if you just want to write a scripting engine, then what you first must
realize is that what you are doing is writing an interpreted language.
there are various "hacky" ways of doing this, and then there's the "right"
way: download Flex and Bison, read the documentation, walk yourself through
the examples, make sure you understand the basic theory and the whole point
behind it, then write your lexer spec and your parser grammar.
-={C}=-
- Raw text -