Alex Elder b246e6d86f parser: introduce TOK_EOF
Define an explicit end-of-file token, TOK_EOF.  When EOF is reached,
input() returns 0.  Use a symbolic TOK_EOF value rather than 0 to
represent that condition.

Note that also implies '\0' is not a valid input character; add an
explicit check to disallow a NUL byte on input.

Signed-off-by: Alex Elder <elder@linaro.org>
Message-Id: <20211001232338.769309-11-elder@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2021-10-04 12:19:24 -05:00
2016-06-02 10:27:42 -07:00
2016-06-02 10:26:43 -07:00
2018-01-30 15:55:49 -08:00
2021-10-04 12:19:24 -05:00
2016-02-07 09:27:50 -08:00
Description
No description provided
BSD-3-Clause 96 KiB
Languages
C 99.4%
Makefile 0.6%