From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/98533 Path: news.gmane.org!.POSTED!not-for-mail From: Antoine Cailliau Newsgroups: gmane.comp.tex.context Subject: t-bnf module with MKIV Date: Wed, 26 Jul 2017 13:28:05 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6001344737210956874==" X-Trace: blaine.gmane.org 1501068552 2101 195.159.176.226 (26 Jul 2017 11:29:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Jul 2017 11:29:12 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 26 13:29:04 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1daKUs-0008DB-9I for gctc-ntg-context-518@m.gmane.org; Wed, 26 Jul 2017 13:28:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CBA88104D82; Wed, 26 Jul 2017 13:28:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FsIEiZpqbbUR; Wed, 26 Jul 2017 13:28:42 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id E98DD104D88; Wed, 26 Jul 2017 13:28:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 37AD5104D88 for ; Wed, 26 Jul 2017 13:28:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4lRbYL3E26XU for ; Wed, 26 Jul 2017 13:28:37 +0200 (CEST) Original-Received: from mail-io0-f181.google.com (mail-io0-f181.google.com [209.85.223.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id B393F104D82 for ; Wed, 26 Jul 2017 13:28:27 +0200 (CEST) Original-Received: by mail-io0-f181.google.com with SMTP id l7so66853524iof.1 for ; Wed, 26 Jul 2017 04:28:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=WUKUY0c172XJAzTkR9K778tw5YE5g/fM68EolmaOMjE=; b=t9jtBeGx2qDKsrHZ1QeyP1PbYI/y0Eyx4odsKNFKam7MdpXRL3yOwoo/Q64n1iqpH3 iTmLwg1rfrQhGfQ366sFmJhlPqPoOix01Kr7mQTj89jjWqyxvP2UvpwStrCKdt8f6EY2 SfkHHHp7Y6jMMa+5oKBMo2zS0Z2XvtpiwAhq36QTFxSUjGl6m51tfo9liWzSJG7kNKfe fQgHLrLo+WYDgN7EY+BlvcyEwezJ1tTzmPhMZKowCTwQC1UaVAdDwoTCL0oHmwdt7A/M u/1miB/sEO3/rX0/BFRR+S5nzWDbzbOMepkWuQN0G8+a8IDUtS2wzIQiGLTfRaWFvdYr WLNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=WUKUY0c172XJAzTkR9K778tw5YE5g/fM68EolmaOMjE=; b=aBRGHcgDmjwO7qLzepHbj/LxJgrpInon2ftojEuumgImf2/y4U7L8am3s6uIt/UIX2 YTYPS58hdt/bO53A8WtBg8A3gQWjn6vuQuKCXPNVhK8dT0y5NU3EqECH5zaoGv6mN0Ot uThS6q8lXrUXkxBpgj4q8iFHHQXjs2WQk0Rkad6r5/4B5zwoCZGU9rbPW8DE+/Py6T8G HBm05NP36Kk0UJ/ZXkZWzNrdtIhRAPgr4ldQV7cL/X3GHAgNMqTYYC3fS9QXkM+tedS2 GaZ6siwHB1sbmqcSdaGY/hdf69Lxxax42b0FgBklhvXJiXE2kpffJmmWicW4utAMeXEm X/tw== X-Gm-Message-State: AIVw112pTnHo55odQut7mGsn2/TvL5EK0Hiwf9TLDwej4xpHGncThrO+ ASuCGCYXHvQx5bf71D+P75pjGCekFRnazUw= X-Received: by 10.107.55.198 with SMTP id e189mr683579ioa.34.1501068505612; Wed, 26 Jul 2017 04:28:25 -0700 (PDT) Original-Received: by 10.107.157.206 with HTTP; Wed, 26 Jul 2017 04:28:05 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:98533 Archived-At: --===============6001344737210956874== Content-Type: multipart/alternative; boundary="001a114acd8c0f8926055536bf8f" --001a114acd8c0f8926055536bf8f Content-Type: text/plain; charset="UTF-8" Hi, I'm trying to typeset a BNF grammar. The module t-bnf appears to not work with mkiv. http://ctan.math.washington.edu/tex-archive/macros/context/contrib/context-bnf/doc/context/third/bnf/t-bnf.pdf tex error > tex error on line 157 in file /Users/acailliau/context/tex/texmf-modules/tex/context/third/bnf/t-bnf.tex: ! Undefined control sequence \c!terminalstart =\tttf \syst_helpers_process_comma_item #1,#2->\if ,#1 ,\expandafter \syst_helpers_p... \c!terminalstart =\tttf , \c!terminalstop =, \c!nonterminalstart =\mathematics \syst_helpers_get_parameters ...cess_comma_item #1 ,],\_e_o_p_ l.157 \c!indentnext=\v!no] 147 \def\setupbnfgrammar% 148 {\dosingleargument\dosetupbnfgrammar} 149 150 \setupbnfgrammar 151 [\c!terminalstart=\tttf, 152 \c!terminalstop=, 153 \c!nonterminalstart=\mathematics{\langle}, 154 \c!nonterminalstop=\mathematics{\rangle}, 155 \c!is={ \mathematics{\longrightarrow}}, 156 \c!option=\mathematics{\vert}, 157 >> \c!indentnext=\v!no] 158 159 %D \macros 160 %D {BNF} 161 %D 162 %D We also define a useful abbreviation to be used for header texts and labels. 163 164 \logo[BNF]{bnf} 165 166 %D And we use it here: 167 Can anyone provides me clues on how to make it work ? Here is a minimal example: \usemodule[t-bnf] \starttext \startbnfgrammar[] : | "+" : "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" \stopbnfgrammar \stoptext Thanks in advance, Antoine --001a114acd8c0f8926055536bf8f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I'm trying to typeset a BNF gra= mmar. The module t-bnf appears to not work with mkiv.=C2=A0

tex error       > tex=
 error on line 157 in file /Users/acailliau/context/tex/texmf-modules/tex/c=
ontext/third/bnf/t-bnf.tex: ! Undefined control sequence

 \c!terminalstart=20
                 =3D\tttf=20
\syst_helpers_process_comma_item #1,#2->\if ,#1
                                               ,\expandafter \syst_helpers_=
p...
 \c!terminalstart =3D\tttf , \c!terminalstop=20
                                          =3D, \c!nonterminalstart =3D\math=
ematics=20
\syst_helpers_get_parameters ...cess_comma_item #1
                                                  ,],\_e_o_p_=20
l.157    \c!indentnext=3D\v!no]
                          =20

147     \def\setupbnfgrammar%
148       {\dosingleargument\dosetupbnfgrammar}
149    =20
150     \setupbnfgrammar
151       [\c!terminalstart=3D\tttf,
152        \c!terminalstop=3D,
153        \c!nonterminalstart=3D\mathematics{\langle},
154        \c!nonterminalstop=3D\mathematics{\rangle},
155        \c!is=3D{ \mathematics{\longrightarrow}},
156        \c!option=3D\mathematics{\vert},
157 >>     \c!indentnext=3D\v!no]
158    =20
159     %D \macros
160     %D   {BNF}
161     %D
162     %D We also define a useful abbreviation to be used for header texts=
 and labels.
163    =20
164     \logo[BNF]{bnf}
165    =20
166     %D And we use it here:
167     

Can anyone provides m= e clues on how to make it work ?

Here is a minimal= example:=C2=A0

\usemodule[t-bnf]

\starttext

\startbnfgrammar[]
<exp>: <num> | <num> "+" &= lt;num>
= <num>: "1" | "2" | "3" | "4" = | "5" | "6" | "7" | "8" | "9&q= uot;
\stopb= nfgrammar
<= br>
\stopte= xt

Thanks in advance,

<= /div>
Antoine
--001a114acd8c0f8926055536bf8f-- --===============6001344737210956874== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============6001344737210956874==--