| 1 | package Perl6::Variables; | ||||||||||||||||||||
| 2 | 1 | $VERSION = '0.01'; | |||||||||||||||||||
| 3 | 1 | ▶ | use Filter::Simple; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | 1 | my $ident = qr/ [_a-z] \w* (?: :: [_a-z] \w* )* /ix; | |||||||||||||||||||
| 6 | 1 | my $listlikely = qr/ (?: \.\. | => | , | qw | \@ $ident \b [^[] ) /x; | |||||||||||||||||||
| 7 | 1 | my $alist = qr/ [^]]* $listlikely /x; | |||||||||||||||||||
| 8 | 1 | my $hlist = qr/ [^}]* $listlikely /x; | |||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | 1 | ▶ | FILTER { | ||||||||||||||||||
|
Subroutine
__ANON__: called CC=19 SCAR=29.4
| |||||||||||||||||||||
| 11 | 1 | $DB::single=1; | |||||||||||||||||||
| 12 | 1 | my $text = ""; | |||||||||||||||||||
| 13 | 1 | pos = 0; | |||||||||||||||||||
| 14 | 1 | ▶ | while (pos($_)<length($_)) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 15 | 72 | ▶ | m/\G \$ ($ident) \.? \[ (?=$alist) /sxgc and | ||||||||||||||||||
|
Branch: 1 branch
Condition100%2/2
/\G \$ ($ident) \.? \[ (?=$alist) /cgsx and $text .= "\@{\$$1}["
MC/DC100%1/1
/\G \$ ($ident) \.? \[ (?=$alist) /cgsx and $text .= "\@{\$$1}["
/\G \$ ($ident) \.? \[ (?=$alist) /cgsx
Truth table100%2/2
A
A= /\G \$ ($ident) \.? \[ (?=$alist) /cgsx
| |||||||||||||||||||||
| 16 | $text .= qq/\@{\$$1}[/ and next; | ||||||||||||||||||||
| 17 | 70 | ▶ | m/\G \$ ($ident) \.? \[ (?!$alist) /sxgc and | ||||||||||||||||||
|
Branch: 1 branch
Condition100%2/2
/\G \$ ($ident) \.? \[ (?!$alist) /cgsx and $text .= "\$$1->["
MC/DC100%1/1
/\G \$ ($ident) \.? \[ (?!$alist) /cgsx and $text .= "\$$1->["
/\G \$ ($ident) \.? \[ (?!$alist) /cgsx
Truth table100%2/2
A
A= /\G \$ ($ident) \.? \[ (?!$alist) /cgsx
| |||||||||||||||||||||
| 18 | $text .= qq/\$$1\->[/ and next; | ||||||||||||||||||||
| 19 | 69 | ▶ | m/\G \$ ($ident) \.? \{ (?=$hlist) /sxgc and | ||||||||||||||||||
|
Branch: 1 branch
Condition100%2/2
/\G \$ ($ident) \.? \{ (?=$hlist) /cgsx and $text .= "\@{\$$1}{"
MC/DC100%1/1
/\G \$ ($ident) \.? \{ (?=$hlist) /cgsx and $text .= "\@{\$$1}{"
/\G \$ ($ident) \.? \{ (?=$hlist) /cgsx
Truth table100%2/2
A
A= /\G \$ ($ident) \.? \{ (?=$hlist) /cgsx
| |||||||||||||||||||||
| 20 | $text .= qq/\@{\$$1}{/ and next; | ||||||||||||||||||||
| 21 | 66 | ▶ | m/\G \$ ($ident) \.? \{ (?!$hlist) /sxgc and | ||||||||||||||||||
|
Branch: 1 branch
Condition100%2/2
/\G \$ ($ident) \.? \{ (?!$hlist) /cgsx and $text .= "\$$1->{"
MC/DC100%1/1
/\G \$ ($ident) \.? \{ (?!$hlist) /cgsx and $text .= "\$$1->{"
/\G \$ ($ident) \.? \{ (?!$hlist) /cgsx
Truth table100%2/2
A
A= /\G \$ ($ident) \.? \{ (?!$hlist) /cgsx
| |||||||||||||||||||||
| 22 | $text .= qq/\$$1\->{/ and next; | ||||||||||||||||||||
| 23 | 65 | ▶ | m/\G \@ ($ident) \[ (?=$alist) /sxgc and | ||||||||||||||||||
|
Branch: 1 branch
Condition100%2/2
/\G \@ ($ident) \[ (?=$alist) /cgsx and $text .= "\@$1["
MC/DC100%1/1
/\G \@ ($ident) \[ (?=$alist) /cgsx and $text .= "\@$1["
/\G \@ ($ident) \[ (?=$alist) /cgsx
Truth table100%2/2
A
A= /\G \@ ($ident) \[ (?=$alist) /cgsx
| |||||||||||||||||||||
| 24 | $text .= qq/\@$1\[/ and next; | ||||||||||||||||||||
| 25 | 63 | ▶ | m/\G \@ ($ident) \[ (?!$alist) /sxgc and | ||||||||||||||||||
|
Branch: 1 branch
Condition100%2/2
/\G \@ ($ident) \[ (?!$alist) /cgsx and $text .= "\$$1["
MC/DC100%1/1
/\G \@ ($ident) \[ (?!$alist) /cgsx and $text .= "\$$1["
/\G \@ ($ident) \[ (?!$alist) /cgsx
Truth table100%2/2
A
A= /\G \@ ($ident) \[ (?!$alist) /cgsx
| |||||||||||||||||||||
| 26 | $text .= qq/\$$1\[/ and next; | ||||||||||||||||||||
| 27 | 61 | ▶ | m/\G \% ($ident) \{ (?=$hlist) /sxgc and | ||||||||||||||||||
|
Branch: 1 branch
Condition100%2/2
/\G \% ($ident) \{ (?=$hlist) /cgsx and $text .= "\@$1{"
MC/DC100%1/1
/\G \% ($ident) \{ (?=$hlist) /cgsx and $text .= "\@$1{"
/\G \% ($ident) \{ (?=$hlist) /cgsx
Truth table100%2/2
A
A= /\G \% ($ident) \{ (?=$hlist) /cgsx
| |||||||||||||||||||||
| 28 | $text .= qq/\@$1\{/ and next; | ||||||||||||||||||||
| 29 | 58 | ▶ | m/\G \% ($ident) \{ (?!$hlist) /sxgc and | ||||||||||||||||||
|
Branch: 1 branch
Condition100%2/2
/\G \% ($ident) \{ (?!$hlist) /cgsx and $text .= "\$$1{"
MC/DC100%1/1
/\G \% ($ident) \{ (?!$hlist) /cgsx and $text .= "\$$1{"
/\G \% ($ident) \{ (?!$hlist) /cgsx
Truth table100%2/2
A
A= /\G \% ($ident) \{ (?!$hlist) /cgsx
| |||||||||||||||||||||
| 30 | $text .= qq/\$$1\{/ and next; | ||||||||||||||||||||
| 31 | 57 | ▶ | m/\G ([^\$\@%]+|.) /xgcs and | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 32 | $text .= $1; | ||||||||||||||||||||
| 33 | } | ||||||||||||||||||||
| 34 | 1 | $_ = $text . substr($_,pos); | |||||||||||||||||||
| 35 | 1 | }; | |||||||||||||||||||
| 36 | |||||||||||||||||||||
| 37 | __END__ | ||||||||||||||||||||