Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Trees and Language::AttributeGrammar

by nothingmuch (Priest)
on Mar 06, 2006 at 17:56 UTC ( [id://534724]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Cons: $/.len            = { $/; $<head>.len + $<tail>.len }
    
  2. or download this
    use Data::Dumper;
    $Data::Dumper::Deparse = 1;
    warn Dumper($grammar->{engine}{cases}{Cons});
    
  3. or download this
    $_AG_ATTR->get($_AG_SELF)->get('len')->set(sub {
        $_AG_SELF;
        $_AG_N1->get('len', 'grammar line 4') + $_AG_N2->get('len', 'gramm
    +ar line 4');
    }
    
  4. or download this
    $_AG_ATTR->get($_AG_SELF)->get('len')->set(sub {
        $_AG_N1->get('len', 'grammar line 4') + $_AG_N2->get('len', 'gramm
    +ar line 4');
    }
    
  5. or download this
    'visit' => [
        sub {
    ...
    ... # snipped
            $_AG_ATTR->get($_AG_SELF)->get('len')->set(sub {
                $_AG_SELF;
    
  6. or download this
    sub children{
      return @{ $_[0]{_ll_cache} ||= [ list( @{ $_[0]->{_list} } ) ] };
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-20 05:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found