From ba793ec6d1d4c66300f40cbced25f9ffd23ec792 Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Sun, 6 Dec 2015 15:05:29 -0500 Subject: Debug --- lib/IRC/Parser.pm6 | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 lib/IRC/Parser.pm6 (limited to 'lib/IRC/Parser.pm6') diff --git a/lib/IRC/Parser.pm6 b/lib/IRC/Parser.pm6 new file mode 100644 index 0000000..aa87fa7 --- /dev/null +++ b/lib/IRC/Parser.pm6 @@ -0,0 +1,7 @@ +use IRC::Grammar; +use IRC::Grammar::Actions; +unit class IRC::Parser:ver<1.001001>; + +sub parse-irc (Str:D $input) is export { + IRC::Grammar.parse($input, actions => IRC::Grammar::Actions).made // []; +} -- cgit v1.1