|
Re: Fusion-ifying proto parse trees: msg#00003parsers.spirit.devel
Joel de Guzman wrote:
It's crucial that I understand the context. Can you point me to the discussions? And... no, I didn't Ah, now we're getting to the crux of the matter. :-) Recall an earlier message, where you said: "Awesome! I can't even start to grok the possibilities this allows. Predictive parsing? LALR? Packrat? Re2C-like lexers? All those can be a set of *algorithms* working on the proto data-structure. Combine them at will!" So I write a set of algorithms that implements a backtracking NFA on top of proto (xpressive), someone else writes the LALR algorithms, and someone else the predictive parser, etc. And they all work together because they all interpret the same proto data structure. Now, imagine what happens when Spirit changes its data structure. Instead of seq<a,seq<b,seq<c,d>>>, Spirit uses spirit_seq<a,b,c,d>. But now all the other sets of algorithms that target the standard proto form don't work any more with Spirit. They don't "combine at will." Rather than reducing genericity, proto's standard form actually increases genericity because it is an accepted interface that everybody can program to. One plausible way is to allow the client to declare/define the If you go this route, you forfeit unification with Karma, xpressive, and a host of other yet-to-be-developed parsing strategies. Instead, let's make it trivial and efficient to get flattened views of the proto tree. With the new proto/Fusion integration, we have a way forward. And once Fusion supports segmented iteration, the whole issue becomes moot. That is where we should be directing our energies, not in the Balkanization of the proto data structures. -- Eric Niebler Boost Consulting www.boost-consulting.com ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: pseudo code for composite parse algorithms: 00003, Joel de Guzman |
|---|---|
| Next by Date: | Re: Fusion-ifying proto parse trees: 00003, Joel de Guzman |
| Previous by Thread: | Re: Fusion-ifying proto parse treesi: 00003, Joel de Guzman |
| Next by Thread: | Re: Fusion-ifying proto parse trees: 00003, Joel de Guzman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |