Skip to content

Commit d54dd12

Browse files
committed
suppress missing action package warnings
1 parent a025490 commit d54dd12

File tree

2 files changed

+33
-6
lines changed

2 files changed

+33
-6
lines changed

Actions.pm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ sub AUTOLOAD {
2222
my $r = hoistast($match);
2323
(my $class = $AUTOLOAD) =~ s/^Actions/VAST/;
2424
$class =~ s/__S_\d\d\d/__S_/ and $r->{_specific} = 1;
25-
if ($class =~ /::(infix|prefix|postfix|postcircumfix|dotty|regex_infix)__S_/) {
25+
if ($class =~ /::((?:p5)?)(infix|prefix|postfix|postcircumfix|dotty|regex_infix)__S_/) {
2626
$r->{_op} = $class;
27-
$class =~ s/::(infix|prefix|postfix|postcircumfix|dotty|regex_infix)__S_/::SYM_$1__S_/;
27+
$class =~ s/::((?:p5)?)(infix|prefix|postfix|postcircumfix|dotty|regex_infix)__S_/::SYM_$1$2__S_/;
2828
}
2929
gen_class($class);
3030
bless $r, $class unless ref($r) =~ /^VAST/;
@@ -236,7 +236,7 @@ sub LIST {
236236
my $class =
237237
$match->{delims}[0]{_ast}{infix}{_op} //
238238
$match->{delims}[0]{_ast}{regex_infix}{_op} //
239-
warn ref($match);
239+
exit warn ::Dump($match);
240240
gen_class($class, $base);
241241
$r = bless $r, $class;
242242
$match->{'_ast'} = $r;
@@ -267,7 +267,7 @@ sub POSTFIX {
267267
$match->{_ast}{postop}{postfix}{_op} //
268268
$match->{_ast}{postop}{postcircumfix}{_op} //
269269
$match->{_ast}{dotty}{_op} //
270-
warn ref($match);
270+
exit warn ::Dump($match);
271271
}
272272

273273
gen_class($class, $base);
@@ -301,7 +301,7 @@ sub PREFIX {
301301
$match->{_ast}{prefix}{_op} //
302302
$match->{_ast}{prefix_postfix_meta_operator}{_op} //
303303
$match->{_ast}{prefix_circumfix_meta_operator}{_op} //
304-
warn ref($match);
304+
exit warn ::Dump($match);
305305
}
306306

307307
gen_class($class,$base);
@@ -340,7 +340,7 @@ sub INFIX {
340340
$class =
341341
$match->{_ast}{infix}{_op} //
342342
$match->{_ast}{regex_infix}{_op} //
343-
warn ref($match);
343+
exit warn ::Dump($match);
344344
}
345345

346346
gen_class($class, $base);

viv

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,10 @@ TEMPLATE
644644
}
645645

646646

647+
{ package VAST::Assignment; our @ISA = 'VAST::Base';
648+
}
649+
650+
647651
{ package VAST::Autoincrement; our @ISA = 'VAST::Base';
648652
}
649653

@@ -652,6 +656,10 @@ TEMPLATE
652656
}
653657

654658

659+
{ package VAST::babble; our @ISA = 'VAST::Base';
660+
}
661+
662+
655663
{ package VAST::backslash; our @ISA = 'VAST::Base';
656664
}
657665

@@ -709,6 +717,10 @@ TEMPLATE
709717
}
710718

711719

720+
{ package VAST::Binding; our @ISA = 'VAST::Base';
721+
}
722+
723+
712724
{ package VAST::block; our @ISA = 'VAST::Base';
713725
}
714726

@@ -780,6 +792,13 @@ TEMPLATE
780792
}
781793

782794

795+
{ package VAST::Comma_operator; our @ISA = 'VAST::Base';
796+
}
797+
798+
799+
{ package VAST::Comparison; our @ISA = ('VAST::Base', 'VAST::InfixCall');
800+
}
801+
783802

784803
{ package VAST::comp_unit; our @ISA = 'VAST::Base';
785804
sub emit_p5 { my $self = shift;
@@ -1531,6 +1550,10 @@ BODY
15311550
}
15321551

15331552

1553+
{ package VAST::Not_operator; our @ISA = 'VAST::Base';
1554+
}
1555+
1556+
15341557

15351558
{ package VAST::nulltermish; our @ISA = 'VAST::Base';
15361559
}
@@ -2109,6 +2132,10 @@ TEXT
21092132
}
21102133

21112134

2135+
{ package VAST::Range; our @ISA = 'VAST::Base';
2136+
}
2137+
2138+
21122139
{ package VAST::regex_block; our @ISA = 'VAST::Base';
21132140
}
21142141

0 commit comments

Comments
 (0)