delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/07/16:52:11

From: "Christopher Nelson" <paradox AT gye DOT satnet DOT net>
To: <djgpp AT delorie DOT com>
Subject: Re: Scripts
Date: Mon, 7 Jun 1999 13:30:37 -0600
Message-ID: <01beb11c$39455bc0$bec2ddd0@thendren>
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Reply-To: djgpp AT delorie DOT com


>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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019