parser: print program name with error messages
parser: print program name with error messages

In yyerror(), prefix the line reporting the error with the program
name.  This makes the output consistent with the output of errx()
which reports memory allocation errors.

Note that this uses a GNU-only feature; if that's not desirable it's
easy to do this more portably.

Signed-off-by: Alex Elder <f429030cf5c0faf36fac3d102073b6e63a647baa@linaro.org>
Message-Id: <20211001232338.769309-18-f429030cf5c0faf36fac3d102073b6e63a647baa@linaro.org>
Signed-off-by: Bjorn Andersson <6e6fda072d932515099508d6d220572c68e9add5@linaro.org>

andersson/qmic