Sven Van Echelpoel wrote:
[...]
  
It looks to me that this define actually should be:

#define ANTLR3_MIN_TOKEN_TYPE ANTLR3_TOKEN_UP + 1

or am I missing something?

Sven
      
Yes, it probably supposed to be that, but it isn't actually used 
anywhere any more. I have changed it though.
    
Well, I'm using it now or I wouldn't have noticed it :-) But maybe I
shouldn't and there's a better way of doing it. I'm trying to figure out
that the node returned by LT( 1 ) is a valid node (one of the nodes
created by my grammar). So I check that the type >=
ANTLR3_MIN_TOKEN_TYPE

Would that be correct?
  
Probably not. By definition the token types of the nodes can only be of the types you specify in the lexer or the parser, so unless you have your own code setting the types then there is no way that you can get an token type that isn't defined. What is it that you are trying to do?

Jim

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

Reply via email to