[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Check enumerations
On Tue, Jan 17, 2006 at 03:54:42PM +0100, Tom Petch wrote:
> RFC4327 just got published with a mixture of false(1), false(2),
> true(1) and true(2) in the initial text and in DESCRIPTION clauses.
Looks like we need an errata which points out the problem and says
that the SYNTAX clause is always right and takes precedence over
DESCRIPTION clauses and examples.
> Any way any of the tools could catch that, for this or for other
> enumerations?
Let me see what you are looking for. You want a check were a defined
named number such as 'foo(42)' which appears literally in the text of
related description, reference, compliance, ... clauses in the form
'foo(X)' where X is a number not identical to 42 causes a warning.
This does not sound very complicated to implement and I can't think of
cases where this might trigger false positives.
One could in addition warn about cases where something like bar(42)
shows up - but this might have more likely false positives since
bar(42) might actually refer to a named number defined by some other
TC.
/js
--
Juergen Schoenwaelder International University Bremen
<http://www.eecs.iu-bremen.de/> P.O. Box 750 561, 28725 Bremen, Germany