Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Trees and Language::AttributeGrammar

by rg0now (Chaplain)
on Mar 06, 2006 at 21:01 UTC ( #534758=note: print w/ replies, xml ) Need Help??


in reply to Re: Trees and Language::AttributeGrammar
in thread Trees and Language::AttributeGrammar

Thanks for the nice response. Let's say I understand it...:-)

Something however tells me that both of your solutions take away something very important from the elegance of the code: in my opinion the efficiency lies in that we let the Cons stuff just emerge and go away on the fly.

My qustion is: do you have any better idea to represent trees and attribute grammars to manipulate them than mine? Once I adopted this "functional" approach I really do not want to go back to the "imperative" world...


Comment on Re^2: Trees and Language::AttributeGrammar
Download Code
Re^3: Trees and Language::AttributeGrammar
by nothingmuch (Priest) on Mar 06, 2006 at 22:02 UTC
    Haskell?

    Seriously though, post a bug on rt.cpan.org - luqui should know about this and fix it somehow...

    luqui also said he will add support for attributes over aggregate types (e.g. @<children>.foo) eventually, if he can find a nice way.

    -nuffin
    zz zZ Z Z #!perl
      The bug has finally been fixed in version 0.08. There is also syntax for aggregate types, though it is awkward: my @child_foos = `@<children>`.foo; Luke
        Thaks a lot! I have the Haskell solution almost ready, but, as this bug is now resolved, I can return to Perl, which I prefer from obvious reasons...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://534758]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (18)
As of 2015-07-01 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (17 votes), past polls