good day.
I have some questions about an errors-processing alogirthm in Antlr:
1) Antlr generates strange code. If no alternatives are right, it does the
following:
...
default:
CONSTRUCTEX();
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION;
EXCEPTION->message = (void *)"";
EXCEPTION->decisionNum = 34;
EXCEPTION->state = 0;
goto ruleattr_specEx;
}
- initializes exception... and CLEANS some information. Why?
2) after the finishing of processing nonterminal
rec->state->errors_count = 0 Why?? It has detected an error already.
--
Best regards,
Michael
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---