simtreelo: Load data organized in a tree.

[ data, gpl, library ] [ Propose Tags ]

This library loads a string or file into a Tree. The hierarchy is given solely by the indentation, meaning that the input is human-readable.


[Skip to Readme]
Versions [faq] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.1.0, 0.1.1.1, 0.1.1.2, 0.1.1.3, 0.1.1.4
Dependencies base (>=4.8 && <5), containers [details]
License GPL-3.0-only
Copyright (c) 2014-2018 Marcelo Garlet Millani
Author Marcelo Garlet Millani
Maintainer marcelogmillani@gmail.com
Category Data
Source repo head: git clone https://gitlab.com/mgmillani/simtreelo.git
Uploaded by mgmillani at Tue Oct 23 17:02:58 UTC 2018
Distributions NixOS:0.1.1.4
Downloads 4191 total (295 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2018-10-23 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for simtreelo-0.1.1.4

[back to package description]

Introduction

A library capable of loading a tree (a forest, actually) from a file. This tree is meant to be human-readable, with a free (as long as it is consistent) indentation style.

Simtree format

A Simtree must be organized in such a way that every child is one indentation deeper than its parent, and all siblings have the same indentation. The String used for indentation is inferred from the first indentation depth. The entire first line (except the newline character) represents the beginning of a comment.

Example file:

#
A
    B
    C
D
    E
        F
            G
H