| 1 | package Pugs::Compiler::Token; | ||||||||||
| 2 | |||||||||||
| 3 | 5 | our $VERSION = '0.28'; | |||||||||
| 4 | |||||||||||
| 5 | 5 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 5 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 5 | ▶ | use base 'Pugs::Compiler::Regex'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 2 | ▶ | sub compile { | ||||||||
|
Subroutine
compile: called CC=3 SCAR=11.4
Pod
documented
| |||||||||||
| 11 | 2 | my ( $class, $rule_source, $param ) = @_; | |||||||||
| 12 | 2 | ▶ | $param = ref $param ? { %$param } : {}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | $param->{ratchet} = 1 | ||||||||||
| 14 | 2 | ▶ | unless defined $param->{ratchet}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 2 | $class->SUPER::compile( $rule_source, $param ); | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 5 | 1; | |||||||||
| 19 | |||||||||||
| 20 | __END__ | ||||||||||