Skip to content

Commit

Permalink
[parsers] Newick tree format (used in bioinformatics)
Browse files Browse the repository at this point in the history
  • Loading branch information
grondilu committed Dec 7, 2012
1 parent dd782ef commit 343cb99
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions parsers/Newick.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#| Newick tree format. L<https://en.wikipedia.org/wiki/Newick_format>
grammar Newick {
rule TOP { <node> ';' }
token node {
<name>
| '(' ~ ')' <node>+ % ',' <name>?
}
token name { <.ident>+ }
}

# vim: ft=perl6

0 comments on commit 343cb99

Please sign in to comment.