delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/08/20:45:22

From: "Sean Middleditch" <sean DOT middleditch AT iname DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <01beb11c$39455bc0$bec2ddd0 AT thendren>
Subject: Re: Scripts
Date: Mon, 7 Jun 1999 21:17:12 -0400
Lines: 42
Organization: AwesomePlay Productions
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: usr04-070.provide.net
Message-ID: <375c7225.0@news.provide.net>
X-Trace: 7 Jun 1999 21:30:13 -0400, usr04-070.provide.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Christopher Nelson <paradox AT gye DOT satnet DOT net> wrote in message
news:01beb11c$39455bc0$bec2ddd0 AT thendren...
>
>
> >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}=-
>

I actually found it to be easier to just write my own lexical parser and
such.  The time it would take to learn Bison and Flex would take longer than
to just write your own anyhows.

Sean Middleditch


- Raw text -


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