Talk About Network

Google


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 > Lisp > Re: implementat...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 12 Topic 12453 of 13579
Post > Topic >>

Re: implementation for Parsing Expression Grammar?

by George Neuner <gneuner2/@[EMAIL PROTECTED] > May 10, 2008 at 09:26 PM

On Fri, 9 May 2008 22:52:30 -0700 (PDT), "xahlee@[EMAIL PROTECTED]
"
<xahlee@[EMAIL PROTECTED]
> wrote:

>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)

What's your point?  The limitations of regular expressions are well
known.

>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).

PEG has its own problems - it's very easy with PEG to create subtly
ambiguous grammars for which quite legal looking input is rejected.
And there are no good tools to analyze a PEG and warn you of subtle
problems.

Chris Clark (YACC++) has posted at length about the merits, problems
and limitations of various parse techniques - including PEG - in
comp.compilers.  Before you consider doing anything with PEG I suggest
you look up his posts and read the related threads.


>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/

George
--
for email reply remove "/" from address
 




 12 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?
C S S <css@[EMAIL PROT  2008-05-10 23:27:23 
Re: implementation for Parsing Expression Grammar?
D Herring <dherring@[E  2008-05-10 19:58:03 
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 
Re: implementation for Parsing Expression Grammar?
usenet2.3.CalRobert@[EMAI  2008-05-11 16:00:39 
Re: implementation for Parsing Expression Grammar?
George Neuner <gneuner  2008-05-12 03:00:48 
Re: implementation for Parsing Expression Grammar?
=?UTF-8?Q?Stanis=C5=82aw?  2008-05-12 11:29:04 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Tue Oct 7 8:00:36 CDT 2008.