Skip to content

philwills/scalax-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the URLParser I hacked together during my talk at Scala Exchange 2014 on why you should use parser combinators rather than regular expressions.

To give it a whirl, fire up the console from SBT and run

new URLParser("http://localhost:9000/blah/bleh?foo=bar&fox=baz%20bee#frag").URL.run()

This is in no way a fully standards compliant URL parser, but hopefully gives an idea of how a moderately complex grammar can be constructed relatively painlessly, with Parboiled2.

About

URL Parser live-coded during ScalaX 2014 talk

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages