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.9.1
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.9.1 (November 2026). Dates and details for every release are in the changelog.
+->1) sits at the end of the line, pointing at its node+=1 on two labels draws the path through the tree between them heavier, in the emphasis colour+>1"*"V spacing and Label air default to 1.0 and 0.2, and Color to Modern, so a tree sits closerLabel air, and branches to a single or middle child hang straight@red(...) colours part of a label: a word, a line, or the shapes in it — look @red(at) it, NP\n@gray(___*note*___)Tidy layout: High no longer squeezes a pair of branches far narrower than the ones below itMirror (RTL) cannot be combined with left-to-right; the toggle is greyed out thenConnector shape: Dashed bar: the lines down to the words dashed; with Leaf align, the look of some generative grammar literatureLeaf 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