Next: , Previous: , Up: End of parse   [Contents][Index]


9.1 Determining EOP from EOI

In many applications the EOP is always the end of input (EOI). That is, parsing ends at a known parse location. The length of the input may be known because it was fixed in advance; there may be an end of file (EOF) indication; there may be an end of string (EOS) indication; or the application may have some other means of knowing that is has hit the EOI.

If the EOI is the EOP, the following is typically the case:

How parse exhaustion on success at the EOI is handled will depend on the application. Here are a few of the many possible ways: