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

Re: implementation for Parsing Expression Grammar?

by Kay Schluehr <kay.schluehr@[EMAIL PROTECTED] > May 10, 2008 at 06:41 AM

On 10 Mai, 07:52, "xah...@[EMAIL PROTECTED]
" <xah...@[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.

Well formed XML cannot be fully specified within BNF as well because
it is context sensitive: in order to recognize a tag/endtag pair one
has to maintain a stack. That's not a big deal in practice if one
wants to write an XML parser but one can't use an arbitrary LL or LR
parser generator to produce a parse tree representing the XML.




 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 Fri May 16 0:48:52 CDT 2008.