Hendrik Boom
unread,Aug 28, 2019, 2:45:22 PM8/28/19Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Racket Users
There are a few things not clear to me about scribble.
Scribble programs start with a line
#lang scribble
This invokes a different language from the regular Racket, with its own
syntax and a suite of new standard functions.
Most of the input text seems to be translated to a list of strings,
and @ signs initiate special processing, resulting in a Racket
S-expression.
There is even a documented trick that enables a user to
discover the s-expression resulting from a particular @-expression.
But this trick does not show the s-expression resulting from an entire
#lang scribble file. Is there a way to see that? Or have I got the wrong
idea entirely?
I have the impression that the s-expressions resulting from @-expresssions
are evaluated immediately and that the resulting values are spliced into the
long list of strings. Is this correct? I'd be interested in being able to
see those s-expressions both before and after evaluation.
I read somewhere that there is information about spacing and indentation
attached to the converted input. At what point in the process is this
available, and how can it be accessed? Is it available to the function
called by an @-command? Can one also access source code position
information to use in error messages?
====
Now about pollen.
Pollen seems to share ahte same @-notation as scribble, but lacks the
extensive library of functions and other processing that defines the
translations to HTML or LaTeX, to that the user gets to put this together
himself but gains the ability to produce anything he wants instead of these
output file formats.
Is this a fair summary?
-- hendrik