Formatted transput: format-text pseudo denotation not implemented?
chris hermansen
clhermansen@gmail.com
Fri May 8 01:56:14 GMT 2026
Hi Jose, everyone,
On Thu, May 7, 2026 at 2:10 PM Jose E. Marchesi <jemarch@gnu.org> wrote:
>
> Hi Chris.
>
> > Hello all,
> >
> > I'm guessing that the format-text pseudo denotation is not yet
> implemented;
> > am I correct?
> >
> > So that this declaration:
> >
> > Format f1 = $l, 1x, "Result", 1x, 2zd, "=", 1x, g (9.5)$
> >
> > fails with the message:
> >
> > error: construct beginning with an initialiser series starting in line 1
> > followed by %<=%> in line 97 and then %<$%> and %<l%> and %<,%> and %<1%>
> > and %<x%> and %<,%> etcetera is an invalid keyword
>
> Indeed, format texts have not been yet implemented.
>
Ok thanks, Jose.
Reading the RR p. 172, I see this text:
A "format" is a structured value (i.e., an internal object) of mode
'FORMAT', which mirrors the hierarchical structure of a format-text (which
is an external object).
I'm reading that as the compiler will itself convert format-text pseudo
denotations into structured values of mode Format; that is, the parsing of
the format-text and the translation into a format structure happens at
compile time. Is that correct?
If so, then I suppose we need the definition of mode Format and any related
modes before the compiler can implement the parsing and translation... does
that make sense?
--
Chris Hermansen · clhermansen "at" gmail "dot" com
C'est ma façon de parler.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/algol68/attachments/20260507/93106782/attachment.htm>
More information about the Algol68
mailing list