Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add docs to parsers category examples
  • Loading branch information
Paul Cochrane committed Aug 16, 2015
1 parent 3d6051b commit 9b98ee5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
13 changes: 11 additions & 2 deletions categories/parsers/CSSGrammar.pm
@@ -1,7 +1,16 @@
# This should be doing CSS2.1; hopefully CSS3 when that's ready (but that may be a while)

use v6;

=begin pod
=TITLE CSS2.1 Grammar
=AUTHOR David Warring
This should be doing CSS2.1; hopefully CSS3 when that's ready (but that may
be a while).
=end pod

grammar CSSGrammar {
# builtin: ident (we use cssident), alpha

Expand Down
11 changes: 10 additions & 1 deletion categories/parsers/Newick.pm
@@ -1,6 +1,15 @@
use v6;

#| Newick tree format. L<https://en.wikipedia.org/wiki/Newick_format>
=begin pod
=TITLE Newick tree format
=AUTHOR Lucien Grondin
See L<https://en.wikipedia.org/wiki/Newick_format>.
=end pod

grammar Newick {
rule TOP { '(' <subtree>** 2..3 % \, ');' }
rule subtree { <species> | '(' <subtree>** 2 % \, ')' }
Expand Down

0 comments on commit 9b98ee5

Please sign in to comment.