[antlr-interest] Clarification on documentation

Alexey Demakov demakov at ispras.ru
Tue Aug 23 04:18:19 PDT 2005


----- Original Message ----- 
From: "Ciaran Treanor" <ciaran.treanor at gmail.com>
To: <antlr-interest at antlr.org>
Sent: Tuesday, August 23, 2005 2:42 PM
Subject: [antlr-interest] Clarification on documentation


> Hi, the documentation for ANTLR 2.7.5 (Lexical Analysis with ANTLR)
> [http://www.antlr.org/doc/lexer.html#Distinguishing_between_lexer_rules]
> contains the following statement:
> 
> <quote>
> Instead, sufficient power is given to handle the two most common cases
> of ambiguity, namely "keywords vs. identifiers", and "common
> prefixes"; and for especially nasty cases you can use syntactic or
> semantic predicates.
> </quote>
> 
> Are you implying that "keywords vs. identifiers" and "common prefixes"
> can be handled without havinging to use syntactic or semantic
> predicates?

Of course:

http://www.antlr.org/doc/lexer.html#Keywords_and_literals
http://www.antlr.org/doc/lexer.html#Common_prefixes

Regards,
Alexey

-----
Alexey Demakov
TreeDL: Tree Description Language: http://treedl.sourceforge.net
RedVerst Group: http://www.unitesk.com




More information about the antlr-interest mailing list