Subject: bin/37222: The bmake parser should be more helpful to the developer
To: None <firstname.lastname@example.org, email@example.com>
From: None <rillig@NetBSD.org>
Date: 10/26/2007 10:30:00
>Synopsis: The bmake parser should be more helpful to the developer
>Arrival-Date: Fri Oct 26 10:30:00 +0000 2007
>Originator: Roland Illig
The bmake parser should help the developer by issuing warnings for the most common mistakes. Ideally, the examples below shouldn't be accepted at all by the parser.
# Nothing should be allowed between the function name and its argument.
.if empty or nonempty or whatever(foo)
# This isn't documented, so there should be at least a warning.
# The error message should be "unknown preprocessing directive "elseif"".
# Currently it is: Missing dependency operator
When trying to use an undefined variable in an empty(VARNAME:M*) conditional, the error message should reflect that. Currently it is "Malformed conditional", although the _form_ of the conditional is not mal at all.