[antlr-interest] Newby - How to use Parser/Lexer in Code?
    Laurie Harper 
    laurie at holoweb.net
       
    Tue May 29 13:03:32 PDT 2007
    
    
  
Harris, Tobin wrote:
>>> custom :// user : pass @ someserver : 1000 / folder ? query = blah
>>>
>>> [snip]
>> 	If all you are doing is find the URL as above, ANTLR is very
> much the wrong 
>> thing to use.
> 
> Hi Timothy
> 
> Thanks for this, I did suspect weather ANTLR would be considered
> overkill. What would be the right tool to use? 
> 
> I considered RegEx, but expressions get unmaintainable quite quickly. I
> also considered manually splitting/parsing the input, but though there
> must be a better way?
If you were using Java I'd just say, "Use the existing java.net.URL or 
java.net.URI classes." I'm sure C# must have equivalents.
L.
    
    
More information about the antlr-interest
mailing list