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 > Compilers > Re: Popularity ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 14 Topic 2372 of 2472
Post > Topic >>

Re: Popularity of compiler tools, was LRgen

by Tegiri Nenashi <TegiriNenashi@[EMAIL PROTECTED] > Apr 11, 2008 at 05:00 PM

On Apr 11, 9:52 am, idbax...@[EMAIL PROTECTED]
 wrote:
> The other limitations: no left recursion, no ambiguity, are all solved
> by good parser generators.  I highly recommend GLR, which is what we
> use for DMS.  None of the above limitations apply.

Isn't GLR exponential in the worst case? I settled on CYK. Three
nested loops, even a sloppy programmer like me can implement that!
Then there are optimization tricks to speed things up a little...

I also checked Earley, but [contrary to what literature suggests] I
was unable to make it competitive to CYK. CYK optimizations clearly
fail to apply to Earley, and unlike CYK where syntactically incorrect
input still can be processed into a forest I failed to figure out how
to do error recovery for Earley.

> > Within a wider perspective I feel a general failure of parser
> > technology to deliver a user friendly product. This is why we have
> > horrors of XML filling the void.- Hide quoted text -
>
> I continually am amazed that people get hung up on the parsers.  I
> guess they just never get past it.
>
> For any really interesting langauges, like poker, you have to ante up
> a parser, that isn't where the real problems are.  You need tree
> building, preprocessor sup****t, multiple compilation unit sup****t,
> name/type resolution, control/data flow analysis, semantic analysis
> based on that awful reference manual for that screwball dialect, ....
>
> And having spent a decade implementing integrated machinery to do all
> this, I don't see how anybody can justify rolling their own whatzit.

Again this is true for well packaged products, and I don't see them on
the market. The mature and best do***ented products like ANTLR suffer
from the above deficiencies, while GLR, Earley, or CYK based parser
engines are rare, experimental and likely be unavailable for
implementation language of my choice.
 




 14 Posts in Topic:
Re: Seeking recommendations for a Visual Parser to replace Visua
"Marcel Satchell&quo  2008-03-28 06:59:11 
Re: LRgen, was Seeking recommendations for a Visual Parser to re
"Paul B Mann" &  2008-03-31 02:35:38 
Re: LRgen, was Seeking recommendations for a Visual Parser to re
Hans-Peter Diettrich <  2008-04-01 10:32:26 
Popularity of compiler tools, was LRgen
anton@[EMAIL PROTECTED]   2008-04-06 15:25:04 
Re: Popularity of compiler tools, was LRgen
Jason Evans <joevans@[  2008-04-07 08:24:11 
Re: Popularity of compiler tools, was LRgen
Tegiri Nenashi <Tegiri  2008-04-08 13:13:38 
Re: Popularity of compiler tools, was LRgen
Hans-Peter Diettrich <  2008-04-11 15:57:04 
Re: Popularity of compiler tools, was LRgen
idbaxter@[EMAIL PROTECTED  2008-04-11 10:52:35 
Re: Popularity of compiler tools, was LRgen
Tegiri Nenashi <Tegiri  2008-04-11 17:00:09 
Re: Popularity of compiler tools, was LRgen
Walter Banks <walter@[  2008-04-11 09:28:14 
Re: Popularity of compiler tools, was LRgen
wclodius@[EMAIL PROTECTED  2008-04-11 22:09:16 
Re: parser performance, was Popularity of compiler tools, was LR
Ian Lance Taylor <ian@  2008-04-12 08:28:56 
Re: parser performance, was Popularity of compiler tools, was LR
Ian Lance Taylor <ian@  2008-04-12 13:06:06 
Re: parser performance, was Popularity of compiler tools, was LR
"Derek M. Jones"  2008-04-12 23:02:28 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Thu Jul 24 14:33:18 CDT 2008.