-
-
Notifications
You must be signed in to change notification settings - Fork 373
/
Pod.pm
53 lines (42 loc) · 861 Bytes
/
Pod.pm
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
my package Pod {
class Block {
has %.config;
has @.content;
}
class Block::Para is Block {
}
class Block::Named is Block {
has $.name;
}
class Block::Comment is Block { }
class Block::Code is Block {
has @.allowed;
}
class Block::Declarator is Block {
has $.WHEREFORE;
method set_docee($d) {
$!WHEREFORE = $d
}
method Stringy {
~@.content
}
}
class Block::Table is Block {
has $.caption;
has @.headers; # optional, may be empty
}
class FormattingCode is Block {
has $.type;
}
class Heading is Block {
has $.level;
}
class Item is Block {
has $.level;
}
class Config {
has $.type;
has %.config;
}
}
# vim: ft=perl6