PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] ERROR enum field
Date: Monday, 28 Sep 2020, 21:12:59


    > Message Posted By: Unknown
    >
    > Is there any input string that could throw the ERROR type while being
    > tokenized, or is the ERROR enum field just for us to use as a safety net
    > while writing/debugging?

Yes.  If you have implemented quoted strings, and if you
are tokening as you parse, you need a value to indicate
that you encountered an unterminated string.

--Stan-
PREV INDEX NEXT