On Mon, 2008-11-17 at 07:44 +1300, Gavin Lambert wrote:

> At 01:39 17/11/2008, William Rose wrote:
>  >What I'm finding is that the lexer starts matching the URL,
>  >gets to a point where it can't match the character, then



>               ;
> TEXT : (URL) => URL { $type = URL; }
>       | ~(COLON | SLASH | HYPHEN | ASTERISK | SPACE | TAB | CR | 
> LF)*
>       ;


Remember that lexer rules that can effectively match a zero length
string are meaningless. That * would have to be + :-)

To be honest I think that wiki syntax is so bad (I don't even find it
that helpful to marking things up), that a grammar to parser such a
thing is going to be so full of exceptions and hacks that it probably
isn't worth it. 

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:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address

Reply via email to