#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2017 lafrite # # Distributed under terms of the MIT license. r""" Abstracts tools for calculs manipulations :example: >>> t = Tree.from_str("2+3*4") >>> print(t) + > 2 > * | > 3 | > 4 >>> print(t.apply_on_last_level(compute)) + > 2 > 12 >>> tree2txt(t) '2 + 3 * 4' >>> tree2tex(t) '2 + 3 \\times 4' """ from .tree import Tree from .compute import compute from .renders import tree2txt, tree2tex # ----------------------------- # Reglages pour 'vim' # vim:set autoindent expandtab tabstop=4 shiftwidth=4: # cursor: 16 del