The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
use t::ParserTest;
__END__

===
--- code
enum E <>
--- expected
(statements (enum (ident "E") (list)))

===
--- code
enum < ook! ook. ook? >;
--- expected
(statements (enum (nop) (list (string "ook!") (string "ook.") (string "ook?"))))

===
--- code
my enum A (a => 'foo', b => 'bar');
--- expected
(statements (my (enum (ident "A") (list (pair (ident "a") (string "foo")) (pair (ident "b") (string "bar"))))) (nop))