aboutsummaryrefslogtreecommitdiff
path: root/lib/IRC/Grammar/Actions.pm6
diff options
context:
space:
mode:
authorZoffix Znet <cpan@zoffix.com>2015-12-05 14:52:45 -0500
committerZoffix Znet <cpan@zoffix.com>2015-12-05 14:52:45 -0500
commitccbd5ff10ce1fa1a2025a540635bc1c939484098 (patch)
treece8afe928d0241332f5c4470ca21a370a9061ad9 /lib/IRC/Grammar/Actions.pm6
parentf4e9d98cee046fcd70bc3bcca4b2555f38254b28 (diff)
Barely-working grammar
Diffstat (limited to 'lib/IRC/Grammar/Actions.pm6')
-rw-r--r--lib/IRC/Grammar/Actions.pm66
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/IRC/Grammar/Actions.pm6 b/lib/IRC/Grammar/Actions.pm6
new file mode 100644
index 0000000..039f11e
--- /dev/null
+++ b/lib/IRC/Grammar/Actions.pm6
@@ -0,0 +1,6 @@
+class IRC::Grammar::Actions {
+ method class ($/) { $/.make: ~$/ }
+ method rules ($/) { $/.make: ~$/ }
+ method pair ($/) { $/.make: $<class>.made => $<rules>.made }
+ method TOP ($/) { $/.make: $<pair>ยป.made }
+}