ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Matthijs Kooijman <matthijs@stdin.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Example of passing unexpanded text between	\startfoo ... \stopfoo into Lua?
Date: Fri, 19 Jun 2009 11:49:12 +0200	[thread overview]
Message-ID: <20090619094912.GN1611@katherina.student.utwente.nl> (raw)
In-Reply-To: <f5d0b64b0906180921h298a881fr4d831c56a2fc3f8@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 718 bytes --]

Hi Kevin,

> A colleague and I are experimenting with strategies to implement a literate
> programming module for ConTeXt, and we'd like to have something like
Im not exactly sure what you're trying to achieve, but perhaps you could do
this using a prettyprinter? A pretty printer gets passed each line in the
\startfoo \stopfoo block and can change the line in any way it wants
(including removing it). IIRC there is some minimal general preprocessing
done, something with whitespace I think.

> \startcodeblock[language=c,file=foo.c, etc.][blockname]
> // This is the main routine...
> int main()
> {
>    return 0;
> }
> \stopcodeblock
Perhaps you could say a bit about what the above should output?

Gr.

Matthijs

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2009-06-19  9:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-18 16:21 Kevin D. Robbins
2009-06-18 16:53 ` Wolfgang Schuster
2009-06-30 15:02   ` Kevin D. Robbins
2009-06-19  9:49 ` Matthijs Kooijman [this message]
2009-06-30 15:13   ` Kevin D. Robbins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090619094912.GN1611@katherina.student.utwente.nl \
    --to=matthijs@stdin.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).