-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest.p6
54 lines (33 loc) · 835 Bytes
/
test.p6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# test.p6 --- temporary testing file for Pod parser
use v6;
use lib "lib/";
use Grammar;
use Actions;
use World;
my $*W = Earth.new;
# TEMP TEST
my $testpod = q:to/NOTPOD/;
=begin pod :!autotoc
= :autotoc<a b> :imconfused :!ok
=config L<> :okthen
=TITLE The First of May
=AUTHOR B, R & M Gibb
=config R<> :abcd
Hello there L<ALL OK >
Everybody
Another para
AND SOME CODE C««
GLORIOUS»» CODE
HELLO SAILOR
=encoding iso8859-1
=config code :allow<B I>
And now some code B<here> and I<here>.
V<>=alias FOOBAR quuxy
And one more para
Hanging indent!!~~
=end pod
=config head1 :like<head73>
=encoding aosdf aoish ao
sdifao sodk
NOTPOD
say Pod6::Grammar.parse($testpod, :actions(Pod6::Actions)).ast;