Re: [racket-users] I'd like clarification about scribble and pollen.

2019-08-28 Thread Jens Axel Søgaard
Den ons. 28. aug. 2019 kl. 20.45 skrev Hendrik Boom :

>
> 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?
>

Open your file in DrRacket. Click run. Now in the repl, evaluate  doc.

/Jens Axel

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CABefVgwQk-Z3%3DtHEGY2WSbP2-8B3GCKP70ZULZ1J618pAWZyNg%40mail.gmail.com.


[racket-users] I'd like clarification about scribble and pollen.

2019-08-28 Thread Hendrik Boom
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

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/20190828184519.5b3s2uh3c7esthfw%40topoi.pooq.com.