-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetErrorMessage()This call is idempotent.ParseTree<Node>parse()This method returns the parse tree.booleanparseOk()This call is idempotent.
-
-
-
Method Detail
-
parse
ParseTree<Node> parse()
This method returns the parse tree. It is idempotent.- Returns:
- a
ParseTree<Node>capturing the result of a complete parse attempt.
-
parseOk
boolean parseOk()
This call is idempotent.- Returns:
trueif the parse completed successfully, otherwisefalse, in which case the termination message is set.
-
getErrorMessage
java.lang.String getErrorMessage()
This call is idempotent.- Returns:
- a string with a reason for termination. Only valid if
parseOk()returnsfalse.
-
-