[comp.lang.scheme] Re^2: Scheme as the only extension language

major@pta.oz.au (Major) (09/08/90)

peter@ficc.ferranti.com (Peter da Silva) writes:

| ramsdell@mitre.org writes:
| > Taking this even further, is there anyone who asserts that
| > Scheme could be the right extension language for a TeX-like or a
| > PostScript-like system?  How would you integrate the text with Scheme
| > code?
|
| Use some escape character to indicate the beginning of scheme code. Read
| one symbol or list at that point and evaluate it. Discard the result if it's
| nil, otherwise treat it as replacement text. You would have stuff inserted
| in your text like @(date) or @(set! ux '"UNIX(TM)") or @ux.

Yes, the documentation of Kyoto Common LISP is written in a language
exactly like this. From memory, their escape character was \.


----
Happy hacking!

Major
major@pta.oz.au

stephen@estragon.uchicago.edu (Stephen P Spackman) (09/09/90)

In article <502@pyrmania.oz> major@pta.oz.au (Major) writes:
   peter@ficc.ferranti.com (Peter da Silva) writes:
   | ramsdell@mitre.org writes:
   | > Taking this even further, is there anyone who asserts that
   | > Scheme could be the right extension language for a TeX-like or a
   | > PostScript-like system?  How would you integrate the text with Scheme
   | > code?
   |
   | Use some escape character to indicate the beginning of scheme code. Read
   | one symbol or list at that point and evaluate it. Discard the result if it's
   | nil, otherwise treat it as replacement text. You would have stuff inserted
   | in your text like @(date) or @(set! ux '"UNIX(TM)") or @ux.

   Yes, the documentation of Kyoto Common LISP is written in a language
   exactly like this. From memory, their escape character was \.

What did they do for a TRAILING delimiter? It's all very well if the
expression is paranthesised, but if I had a symbol, \ae, say, how
could I use it? \aesthetics and f\oetus are unparsable.

stephen p spackman  stephen@estragon.uchicago.edu  312.702.3982