[antlr-interest] ANTLR 3.1: Help: Why do I get this warning

Jim Idle jimi at temporal-wave.com
Thu Aug 14 13:14:50 PDT 2008


On Thu, 2008-08-14 at 13:12 -0700, Jim Idle wrote:

> On Thu, 2008-08-14 at 21:42 +0200, Francis ANDRE wrote: 
> 
> > Jim
> > 
> > I have no ^ at all and ! is appearing only in fragment lexer rules where 
> > I presume this does not imply using AST because it is just removing 
> > character in the text of the build token!!!
> 
> 
> 1) The ! does imply rewrites, because it is a parser only rule.


Should have said 'adornment/instruction

> 2) ! does not work in 3.x parser


Should have said 'lexers'


> , you need to set the text yourself, or for hte very common case here,
> adjust the start and stop offset of the token.
> 
> 
> > 
> > fragment
> > ESCAPOS                :  '\''! '\'';
> 
> 
> Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080814/041b861a/attachment.html 


More information about the antlr-interest mailing list