[antlr-interest] Where is mismatchRecover() in the Java target?
Terence Parr
parrt at cs.usfca.edu
Tue Jan 20 13:59:17 PST 2009
Ooops...things got changed. I updated comments and removed the unused
mismatch method. please override recoverFromMismatchedToken() as I do
here in the tree parser:
protected Object recoverFromMismatchedToken(IntStream input,
int ttype,
BitSet follow)
throws RecognitionException
{
throw new MismatchedTreeNodeException(ttype,
(TreeNodeStream)input);
}
Ter
On Jan 20, 2009, at 6:55 AM, Dennis Benzinger wrote:
> Hi!
>
> The API documentation for BaseRecognizer says that in order to turn
> off
> single token insertion or deletion recovery I need to override
> mismatchRecover()
> <http://www.antlr.org/api/Java/classorg_1_1antlr_1_1runtime_1_1_base_recognizer.html#6aabf9eec24d05b14993c953c027d9d0
> >.
> But didn't find any definition or invocation of this method in the
> Java
> runtime.
>
> In which class is this method defined?
>
>
> Thanks for your help,
> Dennis Benzinger
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
More information about the antlr-interest
mailing list