use strict;
use warnings;
use English qw( -no_match_vars );
-our $VERSION = '20220613';
+our $VERSION = '20230309';
use constant EMPTY_STRING => q{};
use constant SPACE => q{ };
_fh => undef,
_is_encoded_data => $is_encoded_data,
}, $class;
-}
+} ## end sub new
sub really_open_debug_file {
$fh->print(
"Use -dump-token-types (-dtt) to get a list of token type codes\n");
return;
-}
+} ## end sub really_open_debug_file
sub close_debug_file {
my $self = shift;
- my $fh = $self->{_fh};
if ( $self->{_debug_file_opened} ) {
if ( !eval { $self->{_fh}->close(); 1 } ) {
}
}
return;
-}
+} ## end sub close_debug_file
sub write_debug_entry {
my $rtoken_type = $line_of_tokens->{_rtoken_type};
my $rtokens = $line_of_tokens->{_rtokens};
my $rlevels = $line_of_tokens->{_rlevels};
- my $rblock_type = $line_of_tokens->{_rblock_type};
my $input_line_number = $line_of_tokens->{_line_number};
my $line_type = $line_of_tokens->{_line_type};
my $token_str = "$input_line_number: ";
my $reconstructed_original = "$input_line_number: ";
- my $block_str = "$input_line_number: ";
my $pattern = EMPTY_STRING;
my @next_char = ( '"', '"' );
$pattern .= $rtoken_type->[$j];
}
$reconstructed_original .= $rtokens->[$j];
- $block_str .= "($rblock_type->[$j])";
$num = length( $rtokens->[$j] );
my $type_str = $rtoken_type->[$j];
$fh->print("$token_str\n");
return;
-}
+} ## end sub write_debug_entry
1;