RSyntaxTree
Syntax tree generator made with Ruby
Please see the documentation and examples.
These display settings are saved in this browser and restored on your next visit. The text you type is never stored.
RSyntaxTreeSyntax tree generator made with Ruby
These display settings are saved in this browser and restored on your next visit. The text you type is never stored.
RSyntaxTree Version: 1.9.0
RSyntaxTree is a graphical syntax tree generator written in the Ruby programming language.
Documentation of the input text syntax and markups of RSyntaxTree is available in English and Japanese. See also Example Gallery for different types of sample input and result syntree images.
A command-line version of RSyntaxTree is available on GitHub. A web user interface for RSyntaxTree is also available; you can run RSyntaxTree with a web UI locally on your computer using Docker.
The original version of RSyntaxTree was inspired by phpSyntaxTree by André Esenbach.
\t aligns columns down a label and #( … #) nests one matrix inside another, for the feature structures of HPSG, SBCG and LFG [August 2026]Hyphen option: read a hyphen as a hyphen rather than as underline markup, for feature names such as HEAD-DTR [August 2026]Gray lines colour scheme: labels stay black, connectors and movement paths go grey, for diagrams whose links outnumber their labels [August 2026]% syntax: shade the whole subtree a node governs [June 2026]Direction option: Top to Bottom / Left to Right) [April 2026]@color: syntax (named colors and hex colors) [January 2026]IPA (International Phonetic Alphabet) virtual keyboard added [June 2025]\[ and \] [October 2024]Line width option added [February 2023]Traditional color option added [February 2023]Hide default connectors option added [February 2023]Noto Sans Mono font option added [January 2023]¥ symbol can be used in place of the backslash \ to escape certain characters [November 2022]Polyline connector option [February 2022]auto, bar, none) [January 2022]_text_) and superscript (__text__) specification is possible (e.g. DP_i_ → DPi, T__0__ → T0) [December 2021]\n can be used inside terminal nodes [December 2021][A [B] [C]]) [November 2021]<> notation (e.g. Modal<>AUX) [June 2018]margin to the image [February 2018]Connector height option [March 2018]If you use RSyntaxTree in your research or teaching materials, please cite it. You can use the following BibTeX entry (adjust version to the one shown at the top of this page):
@software{hasebe_rsyntaxtree,
author = {Hasebe, Yoichiro},
title = {RSyntaxTree: A graphical syntax tree image generator},
url = {https://yohasebe.com/rsyntaxtree},
doi = {10.5281/zenodo.21916150},
version = {1.9.0},
year = {2026}
}
RSyntaxTree tag on yohasebe.com