- From: James M Snell <jasnell@gmail.com>
- Date: Fri, 09 Nov 2007 20:14:53 -0800
- To: Joe Gregorio <joe@bitworking.org>
- CC: URI <uri@w3.org>
Btw, my take on the updated syntax ABNF http://www.snellspace.com/public/uritemplate2.txt - James Joe Gregorio wrote: > One of the things I never made clear is that this proposal clears up > all the escaping issues and makes writing a parser very easy. > My working code uses the BNF to ensure that the BNF is correct, but > a simple implementation could get away with just splits, for example, in Python: > >>>> "-op|arg|var1=def,var2=def2".split("|") > ['-op', 'arg', 'var1=def,var2=def2'] >>>> _[2].split(",") > ['var1=def', 'var2=def2'] >>>> [x.split("=") for x in _ if "=" in x] > [['var1', 'def'], ['var2', 'def2']] > > -joe > > On Nov 5, 2007 12:32 PM, Joe Gregorio <joe@bitworking.org> wrote: >> Based on everyone's feedback I've updated my proposal >> and updated the URI Template explainer service to reflect that proposal. >> Expansions are now of the form: >
Received on Saturday, 10 November 2007 04:15:06 UTC