#! /usr/bin/env false use v6.d; unit class URL::Grammar::Actions; method TOP ($/) { make { scheme => $/.made // Str, username => $/.made // Str, password => $/.made // Str, hostname => $/.made // Str, port => $/.made // Int, path => $/.made // [], query => $/.made // {}, fragment => $/.made // Str, } } method scheme ($/) { make ~$/ } method username ($/) { make ~$/ } method password ($/) { make ~$/ } method hostname ($/) { make ~$/ } method port ($/) { make +$/ } method path ($/) { make $/».Str } method query ($/) { make $/».made } method query-part ($/) { make $/.Str => $/.Str } method fragment ($/) { make ~$/ } =begin pod =NAME URL::Grammar::Actions =AUTHOR Patrick Spek =VERSION 0.1.0 =head1 Synopsis =head1 Description =head1 Examples =head1 See also =end pod # vim: ft=perl6 noet