From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49947 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: BNF grammar for ConTeXt (was: What happened with sectionworld?) Date: Thu, 30 Apr 2009 09:48:40 +0200 Message-ID: References: <1D0F418D-E66C-4A90-9616-8757CDB08058@fiee.net> <20090429143544.6abee462@KUBUNTU64> <9BBF59D0-1C94-46ED-96FE-0FD5964F57FC@gmail.com> <20090429174315.3d61cce0@KUBUNTU64> <20090429184654.740d27cf@KUBUNTU64> <20090429231641.693c8867@KUBUNTU64> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0765337966==" X-Trace: ger.gmane.org 1241077809 16974 80.91.229.12 (30 Apr 2009 07:50:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Apr 2009 07:50:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 30 09:50:02 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LzR1r-0005v6-I5 for gctc-ntg-context-518@m.gmane.org; Thu, 30 Apr 2009 09:49:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0E6631FDD2; Thu, 30 Apr 2009 09:49:59 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24836-03; Thu, 30 Apr 2009 09:48:58 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 683AE1FDCE; Thu, 30 Apr 2009 09:48:58 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 265281FDCE for ; Thu, 30 Apr 2009 09:48:55 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09393-03-5 for ; Thu, 30 Apr 2009 09:48:44 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by ronja.ntg.nl (Postfix) with ESMTP id 1038C1FDA2 for ; Thu, 30 Apr 2009 09:48:44 +0200 (CEST) Original-Received: from mail-ew0-f173.google.com (mail-ew0-f173.google.com [209.85.219.173]) by filter2-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n3U7mfZU007114 for ; Thu, 30 Apr 2009 09:48:41 +0200 Original-Received: by ewy21 with SMTP id 21so1727901ewy.2 for ; Thu, 30 Apr 2009 00:48:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=+faq+7SwJfkB9DK1YdnHk/fK6PnJhNNHcPI525uYKTU=; b=NbQJ9F79E/slZQgNkQtKWTFYdy6QFeHz5U2/BpV+JHRmGJ6deAotOKR+rV0dH79+0x /6Mp8upFLi04UuvwJASLgzO5tjYq2ND4ITvyv4qblzumwmFxFQLQRG5WiuMYy/TCgVX9 qx1CjW1soItHVOmhXOUrbWPPXYPFaGa7O5YY8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=wlY5149e4eQfXufIVTStbTsMCu3bPTVPlmgGzCfaQvCCZ2bgC+kSKwFAZbFeqmDLZe YmeI+eOJd9uW6bZ498cKvx7DFZ3+fbDW0sIjVZKkg0HNgku3aksOVer/umsoH2sNj4sN XfRYT4EmzkgCE1cE22I6zkyOwcUM0tHIgrMQU= Original-Received: by 10.216.39.194 with SMTP id d44mr330595web.116.1241077720977; Thu, 30 Apr 2009 00:48:40 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.219.173; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 217491064 - cd5b89556976 - 20090430 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:49947 Archived-At: --===============0765337966== Content-Type: multipart/alternative; boundary=0016365ee0bab291de0468c0ec4b --0016365ee0bab291de0468c0ec4b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit R. Bastian: > CONTEXT_SOURCE ::= PREAMBLE "\starttext" TEXT "\stoptext" | CONTEXT_SOURCE >>> TEXT ::= STARTSTOPS | SETUPS | DEFINES | OTHERS [ TEXT >> >> luigi: > To be general, i think >> MY_CONTEXT_SOURCE ::= MACRO* END >> > R. Bastian: > I dont understand the sense of "\end\starttext" sense==semantic "\end""\starttext" is a valid string for a hypothetical bnf grammar of ContTeXt which is not valid for your bnf ; "\end""\starttext""\stoptext" is in your bnf grammar and has the same semantic of "\end""\starttext" . The point is : a bnf for Context can be hard to define luigi: 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" >> > R. Bastian: > Exactly what I need : standard, minimal and light > Exactly what can be hard to define and capture in a bnf . wolfgang > > How could a BNF grammar help to learn ConTeXt, a bnf can help to build a syntax checker, a highlighter etc. Actually the only way to say that you have a valid ConTeXt string is running context on that string . The semantic is another story. -- luigi --0016365ee0bab291de0468c0ec4b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
R. Bastian:
CONTEXT_SOURCE ::= =3D PREAMBLE "\starttext" TEXT "\stoptext" | CONTEXT_SO= URCE
=C2=A0TEXT ::=3D STARTSTOPS | SETUPS | DEFINES | OTHERS [ TEXT
=
luigi:
=C2=A0 To be general, i think
=C2=A0 MY_CONTEXT_SOURCE ::=3D MACRO* END

R. Bast= ian:
I don= t understand the sense of "\end\starttext"
sens= e=3D=3Dsemantic

"\end""\starttext" is a valid string for a hypothet= ical=C2=A0 bnf grammar of ContTeXt
which is not valid for your bnf ;
"\end""\starttext"= "\stoptext" is in your bnf grammar
and has the same semantic = of=C2=A0 "\end""\starttext" .

The point is = : a bnf for Context can be hard to define


=C2=A0luigi:

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 &= quot;reference"

R. Bastian:
Exactly wha= t I need : standard, minimal and light

Exactly what can be hard to define and capture in a bnf .

wolfga= ng

How could a BNF grammar help to learn ConTeXt,
a bnf can h= elp to build a syntax checker, a highlighter etc.
Actually t= he only way to say that you have a valid ConTeXt string
is running cont= ext on that string .

The semantic is another story.

--
luigi

--0016365ee0bab291de0468c0ec4b-- --===============0765337966== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0765337966==--