[antlr-interest] Token Ranges in TreeParser: possible
    aanno 
    extern.thomas.pasch at volkswagen.de
       
    Fri Mar  1 10:55:21 PST 2002
    
    
  
Hello,
I tried the following: I fixed the token types with *TokenTypes.txt 
in a TreeParser. Everything just works fine except when I tried to 
use a TOKEN RANGE (ie. (TOKEN_1 .. TOKEN_2)). There is no complaint 
from ANTLR 2.7.1, but its generated code can't be compiled by javac. 
There 
is a line like:
match(TOKEN_1, TOKEN_2);
there match(..) is not a method of TreeParser.
This are my questions:
1. Is it possible to have token ranges at all or are ranges limited 
to lexers?
2. Is there a way to define the method match(..) so that the token 
range just works fine?
3. Is it the same for not matches like in (~TOKEN_1).
By the way, apart from this problem, I think ANTLR is a great tool.
Cheers,
Thomas
 
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
    
    
More information about the antlr-interest
mailing list