Path: utzoo!attcan!uunet!nuchat!sugar!peter From: peter@sugar.hackercorp.com (Peter da Silva) Newsgroups: comp.sys.amiga.tech Subject: Re: Dealing with multiple scripting languages (was: Elinating the 'rx' from AREXX) Message-ID: <4138@sugar.hackercorp.com> Date: 27 Aug 89 12:38:17 GMT References: <1746@cs-spool.calgary.UUCP> <1989Aug27.034146.27086@agate.uucp> Organization: Sugar Land Unix - Houston Lines: 28 In article <1989Aug27.034146.27086@agate.uucp>, mwm@eris.berkeley.edu (Mike (I'll think of something yet) Meyer) writes: > I swear, some people think Unix semantics are the solution to all > problems, even if these are problems that don't exist on Unix. Gad.. I swear, some people are more interested in shooting down an idea instead of trying to solve a problem. All scripting languages worth their salt have some sort of comment syntax. So, make some unique pattern that can be used to identify a script language, and allow it anywhere in the first couple of lines of the script (in the first couple of lines to allow for programs that use a seperate line to indicate a comment pseudo-op, or need some magic on line 1): ----- /* $$SCRIPT(RX $*) */ ----- .key whatever ; $$SCRIPT(EXECUTE $*) ----- # $$SCRIPT(BAWK -F: $*) ----- %{ /* $$SCRIPT(INSTANT-LEX $* S:MAIN.C) ----- -- Peter "Have you hugged your wolf today" da Silva `-_-' ...texbell!sugar!peter, or peter@sugar.hackercorp.com 'U` "before making up your mind, please read the book." -- sherry.mann "This is contrary to the spirit of rec.arts.sf-lovers" -- Jim Winer