home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / pop / 184 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.3 KB

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