Binary Tree to PSTricks is an application written in C++ that takes in binary trees in JSON format and outputs LaTeX documents where the binary tree is drawn using PSTricks.
Libraries used:
Usage: BinaryTreeToPSTricks -i input [-o output] [-n] [-w] [-t]
-i input: Input file
-o output: Output file, will output to console if not defined
-n: Indent PSTricks output according to tree depth
-w: Wrap with a minimal LaTeX document
-t: Output threads (for debugging purposes)
BTPST has been designed and tested with binary trees in mind, but also features untested support for N-trees. This is because the underlying system doesn't really care about the node child counts and all algorithms used in the project should work with N-trees as well.
BTPST has been developed an exercise for a course at the Technical University of Tampere and the developers offer no support or functioning guarantees for the code. Use at your own risk.