Add sample Perl 6 files

This commit is contained in:
Rob Hoelz
2013-10-29 08:49:23 +01:00
parent d66147a277
commit a375a063d5
3 changed files with 297 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
token pod_formatting_code {
$<code>=<[A..Z]>
'<' { $*POD_IN_FORMATTINGCODE := 1 }
$<content>=[ <!before '>'> <pod_string_character> ]+
'>' { $*POD_IN_FORMATTINGCODE := 0 }
}
token pod_string {
<pod_string_character>+
}
token something:sym«<» {
<!>
}
token name {
<!>
}
token comment:sym<#> {
'#' {} \N*
}