Re: [BangPypers] Do you think a more declarative RE syntax would make the world a better place ?

2010-08-18 Thread karthik
On Tue, Aug 10, 2010 at 10:58 AM, Vishal vsapr...@gmail.com wrote: On Mon, Aug 9, 2010 at 5:04 PM, Vishal vsapr...@gmail.com wrote: I am trying to create a python function that can take an plain english description of a regular expression and return the regular expression to the caller.

[BangPypers] Do you think a more declarative RE syntax would make the world a better place ?

2010-08-09 Thread Vishal
Hello fellas, I am trying to create a python function that can take an plain english description of a regular expression and return the regular expression to the caller. Currently I am thinking of the description in YAML format. So, we can store the description as a raw string variable, which is

Re: [BangPypers] Do you think a more declarative RE syntax would make the world a better place ?

2010-08-09 Thread Senthil Kumaran
On Mon, Aug 9, 2010 at 5:04 PM, Vishal vsapr...@gmail.com wrote: # a(b|c)d+e* re1 = - literal: 'a' - one_of: 'b,c' - one_or_more_of: 'd' - zero_or_more_of: 'e' It *could be* useful to new comers, but not very much. This will add to the cost of covering it to regex code and will cause

Re: [BangPypers] Do you think a more declarative RE syntax would make the world a better place ?

2010-08-09 Thread Vishal
On Mon, Aug 9, 2010 at 5:38 PM, Noufal Ibrahim nou...@gmail.com wrote: [...] Does anyone think something of this sort would be of wider use? Do you know already existing packages that can do it? What are the limitations that you see to this approach? Does anyone think, having the

Re: [BangPypers] Do you think a more declarative RE syntax would make the world a better place ?

2010-08-09 Thread Vishal
Here are a couple more regular expression analyzers: http://xenon.stanford.edu/~xusch/regexp/analyzer.html http://xenon.stanford.edu/~xusch/regexp/analyzer.htmla tool you can download to your pc: http://www.ultrapico.com/Expresso.htm On Mon, Aug 9, 2010 at 9:42 PM, Vishal vsapr...@gmail.com

Re: [BangPypers] Do you think a more declarative RE syntax would make the world a better place ?

2010-08-09 Thread Gora Mohanty
On Mon, 9 Aug 2010 17:04:16 +0530 Vishal vsapr...@gmail.com wrote: Hello fellas, I am trying to create a python function that can take an plain english description of a regular expression and return the regular expression to the caller. [...] - literal: 'a' - one_of: 'b,c' -

Re: [BangPypers] Do you think a more declarative RE syntax would make the world a better place ?

2010-08-09 Thread Dhananjay Nene
On Mon, Aug 9, 2010 at 5:04 PM, Vishal vsapr...@gmail.com wrote: Hello fellas, I am trying to create a python function that can take an plain english description of a regular expression and return the regular expression to the caller. Currently I am thinking of the description in YAML

Re: [BangPypers] Do you think a more declarative RE syntax would make the world a better place ?

2010-08-09 Thread Vishal
Thanks everybody for the insight that you have shared with me and the group. As of now, I am abandoning this weekend project, and have started looking for something else :)) BTW, in the process of designing the semantics of the YAML description, I had to read through the Python RE module docs a