Evan Driscoll wrote:
> I solved that one, but I'm getting another compile error when I try to
> build it for my grammar:
>   if (psr->pParser->rec->errorCount > 0) {
> produces
>   'errorCount' : is not a member of 'ANTLR3_BASE_RECOGNIZER_struct'
> 
> I did some searching and came across this thread:
> http://www.antlr.org/pipermail/antlr-interest/2009-September/035916.html
> but that only had the resolution to the token source, not the error count.
> 
> I downloaded the examples like was suggested in Jim Idle's reply, but I
> looked in a couple directories with example code and didn't see any that
> actually checked for errors.

Okay, sorry about all the messages I'm sending out, but I took another
look. The treeparser example has errorCode used correctly. The correct
incantation is:
  psr->pParser->rec->state->errorCount

Evan


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.


Reply via email to