jfun.parsec
Interface ParseError

All Superinterfaces:
java.io.Serializable

public interface ParseError
extends java.io.Serializable

Describes Parse error.

Author:
Ben Yu Nov 18, 2004

Method Summary
 java.lang.String getEncountered()
          Get the "...
 java.lang.String[] getExpecting()
          Get the "expecting ..." errors.
 int getIndex()
          Gets the index number in the original source.
 java.lang.String[] getMessages()
          Get the user error messages.
 java.lang.String[] getUnexpected()
          Get the "unexpected ..." error.
 

Method Detail

getIndex

int getIndex()
Gets the index number in the original source.

Returns:
the index number.

getEncountered

java.lang.String getEncountered()
Get the "... encountered" error.

Returns:
the actually encountered token when error happens.

getExpecting

java.lang.String[] getExpecting()
Get the "expecting ..." errors.

Returns:
all the expectings.

getUnexpected

java.lang.String[] getUnexpected()
Get the "unexpected ..." error.

Returns:
all the unexpected.

getMessages

java.lang.String[] getMessages()
Get the user error messages.

Returns:
all the user-provided message.