Bill Lear wrote:
> On Tuesday, November 30, 2010 at 15:49:39 (-0800) Jim Idle writes:
>>REST_OF_LINE allows an empty token which will immediately match nothing and
>>continue to do so forever. You want +  not *. I think you might be doing
>>this wrong to be honest. I would probably not use ANTLR for this.
> 
> So, there is really no viable way to have Antlr read the rest of the
> line of input?

Use a different lexer that can utilize full regexps and has states.

As Jim wrote, you need to decide if the parser part is important
enough to use ANTLR. If that's the case, a different lexer will
probably help.

        Joachim

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod                          Email: [email protected]
Roedermark, Germany


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