Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Functional > implementation ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 2841 of 2842
Post > Topic >>

implementation for Parsing Expression Grammar?

by "xahlee@[EMAIL PROTECTED] " <xahlee@[EMAIL PROTECTED] > May 9, 2008 at 10:52 PM

In the past weeks i've been thinking over the problem on the practical
problems of regex in its matching power. For example, often it can't
be used to match anything of nested nature, even the most simple
nesting. It can't be used to match any simple grammar expressed by
BNF. Some rather very regular and simple languages such as XML, or
even url, email address, are not specified as a regex. (there exist
regex that are pages long that tried to match email address though)

I wrote out a more elaborate account of my thoughts here:
 http://xahlee.org/cmaci/notation/pattern_matching_vs_pattern_spec.html

----------------

After days of researching this problem, looking into parsers and its
theories etc, today i found the answer!!

What i was looking for is called Parsing Expression Grammar (PEG).

See
http://en.wikipedia.org/wiki/Parsing_expression_grammar

It seems to me it's already in Perl6, and there's also a
implementation in Haskell. Is the perl6 PEG is in a usable state?

Thanks.

  Xah
  xah@[EMAIL PROTECTED]
 http://xahlee.org/

=E2=98=84




 7 Posts in Topic:
implementation for Parsing Expression Grammar?
"xahlee@[EMAIL PROTE  2008-05-09 22:52:30 
Re: implementation for Parsing Expression Grammar?
=?UTF-8?B?TGFycyBSdW5lIE7  2008-05-10 12:36:38 
Re: implementation for Parsing Expression Grammar?
Barb Knox <see@[EMAIL   2008-05-11 11:25:43 
Re: implementation for Parsing Expression Grammar?
Kay Schluehr <kay.schl  2008-05-10 06:41:36 
Re: implementation for Parsing Expression Grammar?
George Neuner <gneuner  2008-05-10 21:26:54 
Re: implementation for Parsing Expression Grammar?
"xahlee@[EMAIL PROTE  2008-05-11 09:36:08 
Re: implementation for Parsing Expression Grammar?
George Neuner <gneuner  2008-05-12 01:59:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 4:22:40 CDT 2008.