Skip to content

Commit 9b98ee5

Browse files
committed
Add docs to parsers category examples
1 parent 3d6051b commit 9b98ee5

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

categories/parsers/CSSGrammar.pm

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
# This should be doing CSS2.1; hopefully CSS3 when that's ready (but that may be a while)
2-
31
use v6;
42

3+
=begin pod
4+
5+
=TITLE CSS2.1 Grammar
6+
7+
=AUTHOR David Warring
8+
9+
This should be doing CSS2.1; hopefully CSS3 when that's ready (but that may
10+
be a while).
11+
12+
=end pod
13+
514
grammar CSSGrammar {
615
# builtin: ident (we use cssident), alpha
716

categories/parsers/Newick.pm

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
use v6;
22

3-
#| Newick tree format. L<https://en.wikipedia.org/wiki/Newick_format>
3+
=begin pod
4+
5+
=TITLE Newick tree format
6+
7+
=AUTHOR Lucien Grondin
8+
9+
See L<https://en.wikipedia.org/wiki/Newick_format>.
10+
11+
=end pod
12+
413
grammar Newick {
514
rule TOP { '(' <subtree>** 2..3 % \, ');' }
615
rule subtree { <species> | '(' <subtree>** 2 % \, ')' }

0 commit comments

Comments
 (0)