[antlr-interest] Typo in comments in C runtime... and Where is mismatchRecover() ??
Ruslan Zasukhin
ruslan_zasukhin at valentina-db.com
Thu Oct 20 07:02:22 PDT 2011
Hi Jim,
For your info:
FILE antlr3baserecognizer.c
/// The exception that was passed in, in the java implementation is
/// sorted in the recognizer exception stack in the C version. To 'throw' it
we set the
/// error flag and rules cascade back when this is set.
///
static void *
recoverFromMismatchedToken (pANTLR3_BASE_RECOGNIZER recognizer,
ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow)
sorted in the recognizer
^^^^^^^^^^
I think should be stored ...
======================
Also functions match() and mismatch() have comments,
Where is said that
override mismatchRecover() and have it call
/// plain mismatch(), which does not recover
But Greep search over ANTLR 3.4 sources find only 3 mentions of this
mismatchRecover
And they all are in the comments.
antlr3baserecognizer.c: /// recovery, override mismatchRecover() and have it
call
antlr3baserecognizer.c: /// differently. Override and call
mismatchRecover(input, ttype, follow)
antlr3baserecognizer.c: /// single token insertion and deletion. Override
mismatchRecover
There is no such function.
So where it is? Comments are wrong?
I try now find way disable recover for our Valentina SQL parser...
Have re-read book section. But there only Java code ..
Have check C target docs nothing about recover ...
Have try search email list so far nothing useful found...
I think C target docs should have example code ...
Because very different to Java ... No exceptions ...
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
More information about the antlr-interest
mailing list