comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: LALR parser question
Date: Tue, 30 Apr 2013 10:51:13 -0700 (PDT)
Date: 2013-04-30T10:51:13-07:00	[thread overview]
Message-ID: <a4a20b36-421c-4d21-bba8-083ba6371bca@googlegroups.com> (raw)
In-Reply-To: <op.wwc57ak0ule2fv@cardamome>

On Tuesday, April 30, 2013 11:15:00 AM UTC-6, Hibou57 (Yannick Duchêne) wrote:
> Le Tue, 30 Apr 2013 18:06:53 +0200, Shark8 a  
> 
> écrit:
> > hybrid  ascent-descent
> 
> That's a part of what I have in mind too :p But won't read the paper you  
> mention, because I don't want to be influenced by others ideas on that  
> topic, to avoid to unconsciously repeat what others already did.

:)
Yep, I haven't read it either but it looks quite interesting. And I can totally respect not wanting to copy others -- that was a main peeve of mine when in college, mentioning I was working on an OS and then being told "just get the Linux source."

> Since some time I'm thinking again I should try to do one applying the  
> idea I have in mind. The hybrid ascent-descent is indeed an option, while  
> I believe the ascent is the most natural.

I'm not sure about that; recursive decent is really natural for anyone who's done recursion -- See: http://compilers.iecc.com/crenshaw/

> I think the parser should read  
> as the humans read, and humans, the most of the time, start looking at the  
> tiny parts (the bottom) and goes bottom-up, and just occasionally go  
> top-down, and so just when there is a clear marker for this, like a  
> heading title in a text as an example and any other marker which only  
> appears at the top of a construct.

Really, I thought they read in a more top-down manner, with perhaps things front-loaded [i.e. forward-declared] as in sections and a TOC.

But that's why it's such an interesting field: there's a lot of ways to do it and a lot of them have different strengths and weaknesses.



  reply	other threads:[~2013-04-30 17:51 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-28 13:37 LALR parser question Stephen Leake
2013-04-28 14:43 ` Dmitry A. Kazakov
2013-04-30  1:19   ` Yannick Duchêne (Hibou57)
2013-04-30  2:03     ` John B. Matthews
2013-04-30  4:11       ` Yannick Duchêne (Hibou57)
2013-04-30 11:55         ` Peter C. Chapin
2013-04-30 13:14           ` john
2013-04-30 14:14             ` Dmitry A. Kazakov
2013-05-01 11:33             ` Peter C. Chapin
2013-04-30 16:06     ` Shark8
2013-04-30 17:15       ` Yannick Duchêne (Hibou57)
2013-04-30 17:51         ` Shark8 [this message]
2013-04-30 18:52           ` Yannick Duchêne (Hibou57)
2013-05-01 12:31         ` Stephen Leake
2013-05-01 13:57           ` Shark8
2013-04-30 21:18       ` Dmitry A. Kazakov
2013-04-30 22:09         ` Shark8
2013-05-02  1:49 ` Randy Brukardt
2013-05-02  2:39   ` Yannick Duchêne (Hibou57)
2013-05-02 21:57     ` Randy Brukardt
2013-05-06 18:25     ` Oliver Kellogg
2013-05-03  9:45   ` Stephen Leake
2013-05-03 22:57     ` Randy Brukardt
2013-05-06  9:45     ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox