|  line  | 
 stmt  | 
 bran  | 
 cond  | 
 sub  | 
 pod  | 
 time  | 
 code  | 
| 
1
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 package Pistachio::Token::Transformer::Rule;  | 
| 
2
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 # ABSTRACT: express a token transformer rule as an object  | 
| 
3
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
    | 
| 
4
 | 
3
 | 
 
 | 
 
 | 
  
3
  
 | 
 
 | 
18
 | 
 use strict;  | 
| 
 
 | 
3
 | 
 
 | 
 
 | 
 
 | 
 
 | 
8
 | 
    | 
| 
 
 | 
3
 | 
 
 | 
 
 | 
 
 | 
 
 | 
112
 | 
    | 
| 
5
 | 
3
 | 
 
 | 
 
 | 
  
3
  
 | 
 
 | 
17
 | 
 use warnings;  | 
| 
 
 | 
3
 | 
 
 | 
 
 | 
 
 | 
 
 | 
6
 | 
    | 
| 
 
 | 
3
 | 
 
 | 
 
 | 
 
 | 
 
 | 
559
 | 
    | 
| 
6
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 our $VERSION = '0.10'; # VERSION  | 
| 
7
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
    | 
| 
8
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 # @param string $type    object type  | 
| 
9
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 # @param hash    object properties  | 
| 
10
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 # @return Pistachio::Token::Transformer::Rule  | 
| 
11
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 sub new {  | 
| 
12
 | 
391
 | 
 
 | 
 
 | 
  
391
  
 | 
  
0
  
 | 
576
 | 
     my $type = shift;  | 
| 
13
 | 
391
 | 
 
 | 
 
 | 
 
 | 
 
 | 
2058
 | 
     my $this = bless {@_}, $type;  | 
| 
14
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 }  | 
| 
15
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
    | 
| 
16
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 # Simple getters.  | 
| 
17
 | 
391
 | 
 
 | 
 
 | 
  
391
  
 | 
  
0
  
 | 
998
 | 
 sub type  { shift->{type} }  | 
| 
18
 | 
51
 | 
 
 | 
 
 | 
  
51
  
 | 
  
0
  
 | 
200
 | 
 sub prec  { shift->{prec} }  | 
| 
19
 | 
15
 | 
 
 | 
 
 | 
  
15
  
 | 
  
0
  
 | 
46
 | 
 sub succ  { shift->{succ} }  | 
| 
20
 | 
391
 | 
 
 | 
 
 | 
  
391
  
 | 
  
0
  
 | 
1116
 | 
 sub value { shift->{val} }  | 
| 
21
 | 
5
 | 
 
 | 
 
 | 
  
5
  
 | 
  
0
  
 | 
17
 | 
 sub into  { shift->{into} }  | 
| 
22
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
    | 
| 
23
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 1;  | 
| 
24
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
    | 
| 
25
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 
 | 
 __END__  |