parser: use CHAR_MAX to define non-ASCII token id values
parser: use CHAR_MAX to define non-ASCII token id values

The first token id is given the value 256.  This ensures it is
outside the range of any valid character.

But we don't allow non-ASCII characters on input, so we can use 128
as the first non-character token id value.  Represent this as
(CHAR_MAX + 1), to make explicit the reason this value is chosen.

Give the enumerated type representing token ids a name.

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

andersson/qmic