simtreelo: Loader for 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]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 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 && <=4.10), containers [details]
License GPL-3.0-only
Copyright (c) 2014, 2015 Marcelo Garlet Millani
Author Marcelo Garlet Millani
Maintainer marcelogmillani@gmail.com
Category Data
Source repo head: darcs get http://hub.darcs.net/mgmillani/Simtreelo
Uploaded by mgmillani at 2016-07-18T12:39:40Z
Distributions NixOS:0.1.1.4
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 6290 total (29 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-07-18 [all 1 reports]

Readme for simtreelo-0.1.1.1

[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