diff options
author | Zoffix Znet <cpan@zoffix.com> | 2015-12-05 14:52:45 -0500 |
---|---|---|
committer | Zoffix Znet <cpan@zoffix.com> | 2015-12-05 14:52:45 -0500 |
commit | ccbd5ff10ce1fa1a2025a540635bc1c939484098 (patch) | |
tree | ce8afe928d0241332f5c4470ca21a370a9061ad9 /lib/IRC/Grammar/Actions.pm6 | |
parent | f4e9d98cee046fcd70bc3bcca4b2555f38254b28 (diff) |
Barely-working grammar
Diffstat (limited to 'lib/IRC/Grammar/Actions.pm6')
-rw-r--r-- | lib/IRC/Grammar/Actions.pm6 | 6 |
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 } +} |