ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: What happened with sectionworld?
Date: Wed, 29 Apr 2009 20:00:07 +0200	[thread overview]
Message-ID: <fe8d59da0904291100l459b274blb7976addd1210785@mail.gmail.com> (raw)
In-Reply-To: <20090429184654.740d27cf@KUBUNTU64>


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

On Wed, Apr 29, 2009 at 6:46 PM, R. Bastian <rbastian@free.fr> wrote:

> On Wed, 29 Apr 2009 17:55:05 +0200
> luigi scarso <luigi.scarso@gmail.com> scribit:
>
> > >
> > >
> > > May be that ConTeXt is not a 'context free language'  ;-)
> > > than it will be difficult to express something in a BNF grammar
> > > http://en.wikipedia.org/wiki/Backus-Naur_form.
> > >
> > hmm.
> > Context is a macro package in TeX language which is Turing Complete.
> >
> >
> > > But if (ConTeXt == formal_language), it should be possible to
> > > develop TEXT, NUMBER, DIMENSION, REFERENCE, etc
> > > and also to add examples for "[optional user data]".
> > >
> > hmm
> > I'm not sure that ConTeXt == TeX (but it seems YES) ,
> > I'm nor sure that TeX is a context free language too,
> > in the sense that I never see a BNF grammar of TeX .
> (chap.24-26 of the Texbook are embryos of a grammar, but they are not
> usable
> like the grammar of Pascal or Python)
> > I suspect that TeX is not a cfl .
> >
> > Anyway,
> > lpeg can make the thing easier
> >
> > --
> > luigi
>


>
> I think that something user-friendly could be do in a cooperative wiki (in
> the between, i found
> http://texshow.contextgarden.net/) beginning with
>
> CONTEXT_SOURCE ::= PREAMBLE "\starttext" TEXT "\stoptext" | CONTEXT_SOURCE
> TEXT ::= STARTSTOPS | SETUPS | DEFINES | OTHERS [ TEXT
>
> and so on.
>
Consider that one can always make some dirty tricks in PREAMBLE to render
useless
"\starttext"
or "\stoptext"

To be general, i think
MY_CONTEXT_SOURCE ::= MACRO* END

For example , let's try
$>context test
where
test.tex ::="\end"
or
test.tex ::="FOO\end"

Are there any errors ? No
Is test.tex  in {CONTEXT_SOURCE } ? No
Is test.tex in {MY_CONTEXT_SOURCE} Yes
so MY_CONTEXT_SOURCE includes CONTEXT_SOURCE
(of course
test.tex ::="\end""\starttext""\stoptext" is also in {CONTEXT_SOURCE }
)

I think that a bnf or lpeg grammar is really useful for a sort of
standard-ConTeXt
or minimal-ConTeXt or light-ConTeXt
ie a ConTeXt to use as "reference"
but can be a bit hard to define

-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 3219 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
___________________________________________________________________________________

  reply	other threads:[~2009-04-29 18:00 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-28 17:42 Henning Hraban Ramm
2009-04-28 18:53 ` Wolfgang Schuster
2009-04-28 21:25   ` Henning Hraban Ramm
2009-04-29  8:24     ` Hans Hagen
2009-04-29 10:24       ` Wolfgang Schuster
2009-04-29 12:35         ` R. Bastian
2009-04-29 12:54           ` Wolfgang Schuster
2009-04-29 15:07             ` Idris Samawi Hamid ادريس سماوي حامد
2009-04-29 15:43               ` R. Bastian
2009-04-29 15:55                 ` luigi scarso
2009-04-29 16:46                   ` R. Bastian
2009-04-29 18:00                     ` luigi scarso [this message]
2009-04-29 21:16                       ` R. Bastian
2009-04-29 21:24                         ` BNF grammar for ConTeXt (was: What happened with sectionworld?) Wolfgang Schuster
2009-04-30  7:48                           ` luigi scarso
2009-04-30  8:16                             ` R. Bastian
2009-04-30  8:57                               ` luigi scarso
2009-04-30 10:05                                 ` R. Bastian
2009-04-30 10:12                                   ` luigi scarso
2009-04-30 20:03                                     ` R. Bastian
2009-04-29 15:57                 ` footnote numbers size in heads Horacio Suarez
2009-04-29 21:17                   ` Wolfgang Schuster
2009-04-29 18:14               ` What happened with sectionworld? Wolfgang Schuster
2009-04-29 18:23                 ` Idris Samawi Hamid ادريس سماوي حامد
2009-04-29 18:27                   ` Hans Hagen
2009-04-29 18:31                   ` Wolfgang Schuster
2009-04-29 18:34                     ` Wolfgang Schuster
2009-04-29 18:40                     ` Idris Samawi Hamid ادريس سماوي حامد
2009-04-29 13:12         ` Hans Hagen
2009-04-29 13:53   ` Mohamed Bana
2009-04-29 15:11     ` Henning Hraban Ramm
2009-04-29 21:07       ` Wolfgang Schuster
2009-04-30 15:40         ` Henning Hraban Ramm
2009-04-30 17:06           ` Wolfgang Schuster
2009-04-30 18:33             ` Henning Hraban Ramm
2009-04-30 18:46               ` Wolfgang Schuster
     [not found] <mailman.508.1241031213.3589.ntg-context@ntg.nl>
2009-04-29 19:01 ` Vyatcheslav Yatskovsky
2009-04-29 19:05   ` Wolfgang Schuster
2009-04-29 19:13     ` Otared Kavian
2009-04-29 19:15       ` Wolfgang Schuster

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=fe8d59da0904291100l459b274blb7976addd1210785@mail.gmail.com \
    --to=luigi.scarso@gmail.com \
    --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).