From 498c412f2ae0cfc4e8e5de602ddb047a5eb6c902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Corr=C3=AAa=20de=20Oliveira?= Date: Mon, 2 Sep 2024 01:54:01 +0100 Subject: [PATCH] docs(example): fix comments to show how the code should look like --- test-rewrite.raku | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test-rewrite.raku b/test-rewrite.raku index 7389525..8dfccd2 100644 --- a/test-rewrite.raku +++ b/test-rewrite.raku @@ -7,19 +7,21 @@ start { $supplier.emit: %(:type) } event Bla { + # patterm TOP { + # > + # } + use Pattern; my $pattern = Pattern.bless: :name, :source(')>'); $pattern.add-rule-call: 'event', \(:type), :store-key; ::?CLASS.^add_method: 'TOP', $pattern; say $pattern.list-steps; - - # method TOP { - # $.event: :type - # } } react { whenever Bla.parse($supplier.Supply) { .say + # TOP: 「」 - ()>) + # test => event: 「{type => t1}」 - (event(...)) } }