From 140959e4f170d732d990e69b9a0ca129b89e3ac4 Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Sun, 5 Jun 2016 21:39:47 -0400 Subject: First working test --- lib/old-IRC/Grammar/Actions.pm6 | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 lib/old-IRC/Grammar/Actions.pm6 (limited to 'lib/old-IRC/Grammar/Actions.pm6') diff --git a/lib/old-IRC/Grammar/Actions.pm6 b/lib/old-IRC/Grammar/Actions.pm6 deleted file mode 100644 index 234e392..0000000 --- a/lib/old-IRC/Grammar/Actions.pm6 +++ /dev/null @@ -1,26 +0,0 @@ -unit class IRC::Grammar::Actions; -method TOP ($/) { $/.make: $>>.made } -method message ($/) { - my $pref = $/; - my %args = command => ~$/; - for qw/nick user host/ { - $pref{$_}.defined or next; - %args{$_} = $pref{$_}.Str; - } - %args = ~$pref if $pref.defined; - - my $p = $/; - - for ^100 { # bail out after 100 iterations; we're stuck - if ( $p.defined ) { - %args.append: ~$p; - } - if ( $p.defined ) { - %args.append: ~$p; - last; - } - $p = $p; - } - - $/.make: %args; -} -- cgit v1.1