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: 2.5.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.
As of 2.5.0 (November 2026). Dates and details for every release are in the changelog.
Leaf align: the leaves on one row, by lowering the words or whole subtrees\' keeps a straight apostrophe, \@ is an at sign, and \+ before digits is a plus signlsif to json (lsif still works until 3.0)Plane behind shear drawing the plane behind itLabel air: the same space above and below every labelsymmetrize, tidy_spacing and tidy_nest removed in favour of Tidy layout and H spacingDirection: btt\t aligns columns and #( … #) nests matricesrsyntaxtree --notation%: shade the whole subtree a node governs, in colour
with %@blue:@color:, left-to-right layout with Direction, and
an IPA virtual keyboardIf 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