Permalink
Newer
Older
100644 20 lines (18 sloc) 338 Bytes
@sorear
Nov 13, 2010
1
# vim: ft=perl6
2
use MONKEY_TYPING;
@sorear
Nov 13, 2010
3
4
grammar G {
5
token ws {
6
[
7
| \h+ <![\#\s\\]> { }
8
| <?before \w> <?after \w> :::
9
{ }
10
<.sorry: "Whitespace is required between alphanumeric tokens"> # must \s+ between words
11
]
12
||
13
[
14
| <.unsp>
15
| <.vws> <.heredoc>
16
| <.unv>
17
]*
18
}
19
}