home *** CD-ROM | disk | FTP | other *** search
- From: kers@hplb.hpl.hp.com (Chris Dollin)
- Date: Mon, 4 Jan 1993 09:40:43 GMT
- Subject: Re: Syntax Misdesign
- Message-ID: <KERS.93Jan4094043@cdollin.hpl.hp.com>
- Organization: Hewlett-Packard Laboratories, Bristol, UK.
- Path: sparky!uunet!wupost!cs.utexas.edu!sdd.hp.com!hpscit.sc.hp.com!hplextra!otter.hpl.hp.com!hpltoad!cdollin!kers
- Newsgroups: comp.lang.pop
- References: <116670032@otter.hpl.hp.com> <116670040@otter.hpl.hp.com>
- Sender: news@hplb.hpl.hp.com (Usenet News Administrator)
- Lines: 17
- In-Reply-To: sfk@otter.hpl.hp.com's message of Fri, 1 Jan 1993 17:00:15 GMT
- Nntp-Posting-Host: cdollin.hpl.hp.com
-
-
- I spotted only two mistakes in Steve's rendition of the Pepper quote
- syntax.
-
- One is that there is no special treatment of ``('' following ``^''
- (or ``^^''); or, indeed, for *any* of the meta-symbols. If you want to
- hat a big expression, use ``%''s instead.
-
- The other is that ``~'' is a meta-symbol which requires the next item
- to be a numeric literal and arranges for its negaive to be PUSHQ'ed.
- This is because Pepper has no negative numeric literals; ``~'' is its
- negate operator. (The expression ``-5'' will likely cause a stack
- error when ``-'' goes looking for the left operand.)
- --
-
- Regards, Kers.
- "If anything anyone licks, they'll find it all ready in sticks."
-