[ANN] org.conman.parsers.url 2.0.1 released

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[ANN] org.conman.parsers.url 2.0.1 released

Sean Conner

  I just released org.conman.parsers.url 2.0.1 [1], a module to parse URLs into
an easy to use table.  Some examples:

        url = require "org.conman.parsers.url"
        x = url:match "https://example.com/cgi-bin/search?q=foo%20bar&lang=en#anchor-2"

        x =
        {
          scheme = "https",
          host = "example.com",
          port = 443,
          query = "q=foo%20bar&lang=en",
          fragment = "anchor-2",
          path = "/cgi-bin/search",
        }

        x = url:match "https://fred:password@...:4443/one/two/three.html"

        x =
        {
          scheme = "https",
          host = "example.com",
          path = "/one/two/three.html",
          port = 4443,
          user = "fred:password",
        }

  Available via LuaRocks: "luarocks install org.conman.parsers.url".

  -spc (Enjoy)

[1] Source code:

        https://github.com/spc476/LPeg-Parsers/blob/a69fb66dda023a17be72ba2f2655b6b17a60d8e5/url.lua

Reply | Threaded
Open this post in threaded view
|

Re: [ANN] org.conman.parsers.url 2.0.1 released

dyngeccetor8

On 12/12/2019 06.38, Sean Conner wrote:
>
>   I just released org.conman.parsers.url 2.0.1 [1], a module to parse URLs into
> an easy to use table.

Congratulations, Sean!

Is grammar based on RFC or ad hoc?

-- Martin

0x86E7D60B48ECD18F.asc (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] org.conman.parsers.url 2.0.1 released

Sean Conner
It was thus said that the Great dyngeccetor8 once stated:
>
> On 12/12/2019 06.38, Sean Conner wrote:
> >
> >   I just released org.conman.parsers.url 2.0.1 [1], a module to parse URLs into
> > an easy to use table.
>
> Congratulations, Sean!
>
> Is grammar based on RFC or ad hoc?

  It is based upon the grammar given by RFC-3986, the current standard for
URLs.

  -spc