Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 593 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 593 Bytes

treearbo

is a python implementation of a parser for the tree format

This is the WIP (work in progress) to provide python support for the tree format of the $mol frontend framework. Use it like this:

from treearbo import string_to_tree, tree_to_string

tree_string = r"""user
	name \Jin
	age 35
	hobby
		\kendo
		\dance
		\role play
"""

tree = string_to_tree(tree_string)

assert tree_string == tree_to_string(tree)