groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] pic syntax blemishes


From: Ralph Corderoy
Subject: Re: [Groff] pic syntax blemishes
Date: Sun, 30 Apr 2017 19:28:57 +0100

Hi Doug,

> The convention of dropping irrelevant attributes may have been
> justified during the experimental days of pic's development, but seems
> cheesy now, nearly 40 years on.

I agree a "strict" parsing, considering all attributes relevant, that
disallows `box radius 3' would ease writing pictures with less puzzling
over how something's been parsed.

> The fact that 2d gets tokenized differently from 2nd is also
> disconcerting.

Dropping irrelevancies doesn't help `move 2d' being `move 2 d' because
nothing is irrelevant.  So the lexer would go for the longest match,
making `2d' the token, but then complain when it isn't a NUMBER, because
of the unused `d', nor an ORDINAL?

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]