- newick_parser :: NameHack -> Parser TempTree
- parseNewick :: LabelTable -> NameHack -> String -> ByteString -> (LabelTable, [NewickTree DefDecor])
- parseNewicks :: NameHack -> [(String, ByteString)] -> (LabelTable, [FullTree DefDecor])
- parseNewickFiles :: NameHack -> [String] -> IO (LabelTable, [FullTree DefDecor])
- unitTests :: Test
This parser ASSUMES that whitespace has been prefiltered from the input.
Parse a bytestring into a NewickTree with branch lengths. The first argument is file from which the data came and is just for better error messages.
If the single bytestring contains more than one tree, then a number is appended to the tree names.
A version which takes in-memory trees as ByteStrings.
Parse a list of trees, starting with an empty map of labels and accumulating a final map.