| java.lang.Object xtc.parser.Result xtc.parser.ParseError
ParseError | final public class ParseError extends Result (Code) | | An erroneous parse.
author: Robert Grimm version: $Revision: 1.25 $ |
Constructor Summary | |
public | ParseError(String msg, int index) Create a new parse error. |
DUMMY | final public static ParseError DUMMY(Code) | | The dummy parse error. The dummy parse error is used for
initializing a production's parse error and then threading the
most specific parse error through the production. It works like
a sentinel for managing linked lists, avoiding repeated tests for
a null value.
See Also: SemanticValue.error |
ParseError | public ParseError(String msg, int index)(Code) | | Create a new parse error.
Parameters: msg - The error message. Parameters: index - The index for the error location. |
hasValue | public boolean hasValue()(Code) | | |
hasValueIgnoreCase | public boolean hasValueIgnoreCase(String s)(Code) | | |
select | public ParseError select(String msg, int index)(Code) | | Select the more specific parse error. This method compares this
parse error with the specified index and returns a parse error
representing the longer parse (creating a new parse error with
the specified message and index if necessary).
Parameters: msg - The error message. Parameters: index - The index of the parse error. |
semanticValue | public T semanticValue()(Code) | | |
|
|