getParserErrorMessage abstract method
Retrieves the error message for a parser error.
lineNo
which line the error occurs. It starts from 0.position
Which position the error occurs. It starts from 0. Note:\n
is also counted.input
the substring that the error was detected.matched
the substring that was parsed successfully. It includesmatch
. So, past ismatched - match
.match
the latest matched token.
Implementation
String getParserErrorMessage(int lineNo, int position,
String input, String matched, String match,
List<String> expected, String unexpected);