comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Error in draft 17 grammar
Date: Wed, 20 Feb 2019 17:40:28 -0600
Date: 2019-02-20T17:40:28-06:00	[thread overview]
Message-ID: <q4kohc$3pq$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: 3daa4a66-8471-4ed6-a2d3-d3a49c53252b@googlegroups.com

"Lucretia" <laguest9000@googlemail.com> wrote in message 
news:3daa4a66-8471-4ed6-a2d3-d3a49c53252b@googlegroups.com...
...
> I don't know what Scribe is, but it sounds ancient. Have you ever thought
>about updating to something else like ASCIIDoc(tor)?

We haven't used Scribe since Ada 95. For the Corrigendum, I built a tool (in 
Ada, of course) that creates Txt and HTML and RTF files. But it was designed 
to use the original source code, so the Scribe syntax and commands fo the 
most part remain. I happened to be looking at the code last night, and I see 
I've actually added three such pairs to the original ones. The latest 
problem was trying to put the Google Analytics snipet into the header 
files - it actually used all 6 of the surrounding characters, so I had to 
allow '%' as seventh set.

Since the tool is in Ada, it will be usable so long as Ada exists (and no 
one ought to care about the Ada standard *after* Ada exists!). Other tools 
can't deal with the paragraph numbers - especially our insertion scheme - 
and the handling of AARM text (which of course doesn't show when one is 
generating the Standard). Also, of course, there is just under 7 megabytes 
of source code for the AARM/RM. Changing all of that to some other tool 
would require a heck of a lot of work.

> Also, as you've started to add '[' and ']' to the grammar, any change of
> doing the same for ',' ';' '(' ')' '=>' etc? It'd make the grammar 
> clearer.

Doing that generally would be a significant amount of work (there are a lot 
of such productions), and there's probably better uses for that time (such 
as changing English into preconditions/postconditions for language-defined 
subprograms). The reason for quoting square brackets (and the vertical bar) 
is to avoid confusion with the characters that have a special meaning in the 
syntax. That's not true for anything else other than the curly brackets, 
which of course aren't used in the Ada syntax. There used to be a hack (no 
better description for it) to let vertical bar be used in the syntax, and 
we've now gotten rid of that.

So, while I certainly would never say never to anything, I doubt that it 
would be a priority.

                Randy.



      parent reply	other threads:[~2019-02-20 23:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-19 22:06 Error in draft 17 grammar Lucretia
2019-02-19 23:35 ` Randy Brukardt
2019-02-20  0:01   ` Lucretia
2019-02-20  9:43     ` Stéphane Rivière
2019-02-20  9:54       ` Lucretia
2019-02-20 23:40     ` Randy Brukardt [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox